Problem regarding Java Database connectivity(JDBC) with mysql..!? i downloaded the connector/j from mysql website....nd added its path to CLASSPATH variable as indicated in the docs of the driver...now,i get problems in making connection...wen i call DriverManager.getConnection() method...i dnt knw what to pass as its arguements..according to the docs of the driver ...it shud b the url,username and password...its ok abt username nd psswrd...bt what the url shud be...i have tried entering evything after "jdbc:mysql:.............."...the path of the database on the filesystem,the name of the databse etc..bt nothings wrking...plz help...
m using Ubuntu... |