java - SQLException: No suitable driver found for jdbc:mysql://localhost:3306/dbname -


i've inherited project (and have absolutly no experience of java) , i'm rather stuck.

we have server running redhat, needed update 1 of jar files. copied updated file , restarted service file. process has worked on our other server did on 1 comes below in log file.

exception: com.mysql.jdbc.driver sqlexception: no suitable driver found jdbc:mysql://localhost:3306/dbanme 

the jar files uploaded folder in root of website , within jar folder lib folder mysql-connector-java-5.1.6-bin.jar located.

does know missing i'm newbie linux aswell.

thanks in advance

java.sql.sqlexception: no suitable driver found

this exception can have 2 causes:

  1. the jdbc driver not loaded @ all.
  2. url not match of loaded jdbc drivers.

since driver seems loaded , url not valid on machine:

jdbc:mysql://localhost:3306/dbname

do have mysql running , listening on port 3306 on machine. make sure hte schema dbname there.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -