Jump to content

Mysql Connection Error


mgamboa

Recommended Posts

 hi i'm newbie in this i try to use ireport in mac with sugarcrm i'm using MAMP pro with mysql and apache i download the i reports version 3.7.1 when try to make the connection this is the information i used

i don't know what i need to do

the configuration for the connection is

JDBC Driver MySQL (com.mysql.jdbc.Driver)

JDVC URL  jdbc:mysql://localhost/sugarcrm

User root

Password test

press the button to tests and show me the following error and i don't know what i need to do more please help if try to connect with phpmyadmin or mysql administrator from windows pc works perfect

 

 

 

Code:


Post Edited by mariogamboa at 03/30/2010 18:14
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

What happens when you connect from iReport running on Windows? (Is it a PC/Mac issue?)

The default url would be this:
jdbc:mysql://localhost:3306/sugarcrm

Does that give the same result?

Are you sure localhost is well defined there? Does using the host name give the same result?

Link to comment
Share on other sites

try this

 

Connection conn = null;

String url = "jdbc:mysql://localhost:3306/";

String dbName = "put_your_database_name_here";

String driver = "com.mysql.jdbc.Driver";

String userName = "root";

String password = "test";

 

I hope you have defined localhost well after mdahlman's advice. Else it could be mysql issue. Just try to test with other simple connection. If it displays connected successfully then it's ok, else there is certainly issue with mysql.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...