• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL - Cant connect to server 127.0.0.1 (10051)

 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you able to connect to mySQL directly?
 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 423
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolved! Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic