LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2008, 08:13 PM   #1
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Rep: Reputation: 31
Cannot connect to mysql server


I've just installed a mysql gui - windows app run using wine.
It starts up fine, but when I try to connect to a database I get the error
Quote:
Error No.2003
Can't connect to Mysql server on 'localhost' (10061)
(the gui is SQLyog Community Edition)
I believe the mysql permissions have been taken care of. I can log into Mysql and access the database from the konsole.

What am I missing?

Gary
 
Old 11-26-2008, 01:37 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
It could be that your mysql is only listening to the unix socket, check to see if it is listening to TCP on the localhost. But why are u using sqlyog when mysql provide a similar tool that works on linux.
 
Old 11-26-2008, 01:42 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You may have the same tools with the mysql-gui-tools package. For adninistration, mysql-administrator is very good. Also check if the firewall on either the client or server is blocking traffic. Also check if the mysql service is running on the server.

Last edited by jschiwal; 11-26-2008 at 01:43 AM.
 
Old 11-26-2008, 06:56 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
You can open up a terminal and type "mysql" to open the command line client, if this errors the error message should supply better information, if not then this might be a bit of a tricky one.
 
Old 11-26-2008, 07:03 AM   #5
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
@r3sistance now why would he do that ? He has already stated in the ticket that he can connect from the console.
 
Old 11-26-2008, 10:16 AM   #6
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by datopdog View Post
But why are u using sqlyog when mysql provide a similar tool that works on linux.
I took a look at that, and it looked like it would take a master rocket scientist to install it

Quote:
Originally Posted by jschiwal
Also check if the firewall on either the client or server is blocking traffic. Also check if the mysql service is running on the server.
Mysql Client and server are both running on the same host. Since I can access from console, what does the firewall have to do with it?

Quote:
Originally Posted by r3sistance
You can open up a terminal and type "mysql" to open the command line client, if this errors the error message should supply better information, if not then this might be a bit of a tricky one.
If you will read my original post, you will see that I stated that I had NO trouble accessing mysql from a console

Last edited by garyg007; 11-26-2008 at 10:22 AM.
 
Old 11-27-2008, 02:36 AM   #7
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Have you checked if your server is binding to TCP ?
 
Old 11-28-2008, 09:37 AM   #8
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by datopdog View Post
Have you checked if your server is binding to TCP ?
How do I do that?


However, I am in the process of removing all reference of mysql from my system and am going to start over installing mysql.

I tried to install mysql-qui-tools, and ran into a bit of a mess. Some of the pre-reqs were available as slackbuilds and some were not. Mysql is not available as slackbuild. Where a slackbuild was not available I installed from source - using "checkinstall" to create a slackware package. Some worked some did not. So what I ended up with was a lot of stuff that had been installed from slackbuilds, and source and some of the source using checkinstall and some using "make install" When I got done I ended up not being able to access mysql from either the mysql-guy or from command prompt.

Gary
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Software 3 06-28-2007 11:46 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration