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:
- the jdbc driver not loaded @ all.
- 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
Post a Comment