Stan Levine

Greenhorn
+ Follow
since Jan 21, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stan Levine

I am new to Linux. I installed Redhat Linux 7.0.My main file system
/dev/hda5, mounted on /, is at 98% use(2236716 1K blocks used out of
24192560, according to command df). Is there any way to increase this (the
disk holds 7 GIG) without losing any data or having to re-install
everything? Thanks for any help. Stan
19 years ago
Thank you, Mike. Actually, I finally figured that out myself. But thanks, anyway. Stan
19 years ago
I am trying to install Tomcat 4.0.1 on a Redhat Linux 7.0 box. I am up to the part where I have to download a binary distribution of JAXP 1.1 from http://java.sun.com/xml/download.html. I have downloaded this and it turns out to be a .ps (postscript) file. It dowsn't look like a binary file. Next I'm supposed to unpack it and move a resulting "xalan.jar" file to another location. I am unfamiliar with .ps files. I looked at the above web site and can not find a binary download. Has anybody else had this problem? Thanks, Stan
19 years ago
I installed Redhat Linux 7.0 and now I'm trying to install the SDK 1.3. I downloaded the Linux version RPM shell script, but it is a .bin file and fails with unrecognized package when I issue the Linux command rpm -ivh filename. So then I downloaded the GNUZIP Tar shell script, but that gave me the same file name.(but the file lengths are different). I'm new to Linux. How do I install either of these versions?
19 years ago
Hi, I'm at a similar stage. I just installed Linux 7.0, which came with apache. I am going to download and install the Java SDK and Tomcat. My question is: Does it matter what directory these products are installed in? The apache ServerRoot is /etc/httpd (I think). Can the jdk and tomcat go anywhere, or do they have to have any particular relationship to apache? Also, when I boot up Linux, apache is already running. How do I stop and start it? Thanks, Stan
19 years ago
I have 2 PCs. One runs Windows Me and the other has Linux 7.0. I have a printer (Canon S400) on my Windows Me PC that is not supported by Linux 7.0, so I want to connect my 2 PCs and print to the Windows Me printer from Linux. Can this be done? I have been reading about SAMBA, but this seems to support a Windows client and a Linux Print Server, or a Linux client and a Linux Print Server. Before I installed Linux, the Linux PC had Windows 98, and I was able to share files between the 2 PCs, using Ethernet cards, the appropriate cable, and the appropriate Windows system settings (which someonw did for me). Can a similar thing be done for Linux and Windows Me? Thanks.
19 years ago
I purchased and installed Red Hat Linux 7.0. It included the Apache Web Server. I would like to know:
1) how can I find out what version of apache is included with Linux 7.0
2) How can I find out if it is the source code version or a binary version.
Thanks.
19 years ago
Thanks very much for you thorough explanations. They have been helpful.
Thank you, Frank. So it's the application that runs on port 80 using the HTTP protocol. That's what I suspected. So are you implying that if I access an FTP application on a web server(port 21) via a browser(by typing in the FTP URL) that it's not on the world wide web? I've seen URLs that start with FTP, and other URLs. These servers are not on the world wide web? Then what are they? Thanks, Stan
Can someone explain the difference between the Internet and the World Wide Web? Thank you
localhost:3306 but you have to first start the server program by running mysqld.exe
Craig, I recently had a similar problem which was solved. See my POST on May 15. Stan Levine
Bodie Minster, Thanks very much. You hit it exactly! I went into Windows Explorer,did a cd c:\mysql\bin and ran every .exe until one worked(meaning until I could then logon to mysql).(It was mysqld.exe, by the way). Then I ran the java program and it worked too. Great satisfaction when you are able to break through! In retrospect I now remember trying to run these .exes the other day, when I was able to logon. I was just trying to bring up mysql from Windows Explorer, and when a window opened and closed immediately, I didn't know that I had stumbled into starting the server mysql program. Thanks a lot. Stan
Thanks for responding and of course I'm not insulted. I appreciate all the help I can get. Your question raises another problem I had. First of all, when you say "start the DB Engine", I guess you mean issue cd c:\mysql\bin and issue the command "mysql -u userid =h localhost -p" and then give the password when prompted. I did this on day 1 and: 1) gave myself an ID and permissions and 2) built a database. The next day and also today the same command failed when I entered my password. So when the java program was running, no mysql session was logged on. So does that mean that no server was running? mysql must be started when a program tries to connect? By the way, I installed mysql on my PC (which is not a server), and I'm running on my PC. Is that a problem? Next question, I'm running on localhost, but what port am I running on, and does matter? In case I just have the wrong password, do you know how I can fix it? Thanks, Stan
I installed mysql, and am having a problem creating a Connection object. Below is the code and the runtime error I received. The driver load works. The getConnection does not. I would appreciate some guidance. Thanks, Stan
import java.sql.*;
class PetDB
{
public static void main (String[] args)
{
String database = "jdbc:mysql://localhost/test";
Object o = null;
Connection con = null;
try
{
o = Class.forName("org.gjt.mm.mysql.Driver").newInstance();
}
catch (Exception e)
{
System.err.println("Unable to load driver.");
e.printStackTrace();
}
System.out.println("Object o:" + o);
try
{
con = DriverManager.getConnection(database);
}
catch (SQLException sqle)
{
System.out.println("Caught SQLException when invoking DriverManager.getConnection()");
System.out.println("SQLException: " + sqle.getMessage());
System.out.println("SQLState: " + sqle.getSQLState());
System.out.println("VendorError: " + sqle.getErrorCode());
sqle.printStackTrace();
}
System.out.println("Connection con:" + con);
}
________________________________________________________________
Caught SQLException when invoking DriverManager.getConnection()
SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL
server running on the machine/port you are trying to connect to? (java.net.Conn
ectException)
SQLState: 08S01
VendorError: 0
java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is ther
e a MySQL server running on the machine/port you are trying to connect to? (java
.net.ConnectException)
at org.gjt.mm.mysql.Connection.<init>(Connection.java:239)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at PetDB.main(PetDB.java:22)
Connection con:null