wood burning stoves 2.0*
The moose likes JDBC and the fly likes MySQL - Cant connect to server 127.0.0.1 (10051) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySQL - Cant connect to server 127.0.0.1 (10051)" Watch "MySQL - Cant connect to server 127.0.0.1 (10051)" New topic
Author

MySQL - Cant connect to server 127.0.0.1 (10051)

Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
I tried to manage a DB connection and now I get this error. How do I get rid of it ? Do you find MySql confusing and less user friendly as compared to MS-SQL ?


Back to square one.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Are you able to connect to mySQL directly?


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
Mohana Rao Sv wrote:Are you able to connect to mySQL directly?


I am a complete newbie to databases and sql. I am learning it to do jdbc stuff. So, I am not able to understand the meaning of your question. Please tell me how this mysql works. I tried MS-SQL and it was much easier. But most tutorials use this complicated mysql, that is why i am forced to use it.

Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
Run mysql command from the command line and check if it connects to the database properly.
What operating system are you using ? WIndows, unix ?
Check if the database server is started, if not - start it.

Here is an example form my pc - I am using linux:

Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
Resolved! Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MySQL - Cant connect to server 127.0.0.1 (10051)
 
Similar Threads
mac + mysql for a java guy
hello everyone,how can i use jsp connect mysql?
Backup
CMP JBoss MySQL
Tomcat startup problems (MySQL driver)