Re: java connector/J5.1 mysql
Posted by: Willem de korte
Date: February 17, 2018 04:09PM

Thanks for your reply

I modyfied my script with your suggestions

conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/?user=shorty&password=asdfgh456");

I put the LoadDriver, MakeConnection, javac, java, mysql-connector-java-5.1.44-bin into one map en succesfully compiled them.

But I have the same thing (no suitable driver found for jdbc:mysql://localhost:3306/?user=shorty&password=asdfgh456 )

Are you sure the LoadDriver file is accurate ?

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

// Notice, do not import com.mysql.jdbc.*
// or you will have problems!

public class LoadDriver {
public static void main(String[] args) {
try {
// The newInstance() call is a work around for some
// broken Java implementations

} catch (Exception ex) {
// handle the error

Or is there the requirement to start the MySQL server (manually) before
proceding to the Java programming ?

Options: ReplyQuote

Written By
February 10, 2018 03:08PM
February 12, 2018 12:14PM
Re: java connector/J5.1 mysql
February 17, 2018 04:09PM
February 19, 2018 01:16PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.