| Author |
need help configuring MySQL
|
aliasger talib
Ranch Hand
Joined: Aug 19, 2002
Posts: 37
|
|
hi there, i want to use MySQL as my database for my aplication which runs with Tomcat 4.04. the database has been created but i cant seem to get y tomcat running. ive updated the server.xml file accordingly for my tomcat. this what i added : <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost:3306/dbo?user=alit;password=wrox" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="roles" roleNameCol="role" /> it gives me an exception on start up of tomcat saying that it cant open the database connection: Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: org.gjt.mm.mysql.Driver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: org.gjt.mm.mysql.Driver anything im doing wrong here? im really stuck people. need help ASAP. cheers, ali
|
 |
Jeremy Maddera
Greenhorn
Joined: May 02, 2002
Posts: 16
|
|
You connection URL should look like this: connectionURL="jdbc:mysql://localhost:3306/dbo?user=alit&password=wrox"
|
 |
 |
|
|
subject: need help configuring MySQL
|
|
|