on 12-11-2008 9:46 AM
Hi,
I am creating JDBC mySQL Connection error.
The error messsage is
Incorrect name parameter jdbc:mysql://10.114.16.70:3306/kaushikb root,pass in naming operation.
The whole code is written in a method named retrieveData() in the component controller.
where root is the username and pass is the password and kaushikb is the database name.
I am entering the tablename as: emptable.
Regards
Kaushik Banerjee
Hi,
Following is sample code, are you doing the same?
String url = "jdbc:mysql://localhost:3306/mysql";
Connection con = DriverManager.getConnection(url,"root", "");
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Download the driver from the following url and put it as part of your classpath.
http://dev.mysql.com/downloads/connector/j/3.1.html
I would recommend you to use the DataSources which you can configure in Visual Admin.
Regards
Ayyapparaj
Resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think problem is with URL
check this link
http://www.datanucleus.org/products/accessplatform_1_0/rdbms/support.html
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
26 | |
10 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.