LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-06-2006, 09:45 AM   #1
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Rep: Reputation: 30
mysql: can't connect from remote since restarted!


Hi!
I had set up remote mysql access to my server:
Code:
grant all on *.* to 'root'@'10.1.10.190';
and set mysql to bind on my ip address in my.cnf:
Code:
bind-address = x.x.x.x
I restarted the mysql, and everything worked fine for a week, but after I restarted the server, the remote access doesn't work anymore. It's strange that if I do port scan from localhost on the server, there aren't mysql returned, but if I do mysql -u root,then it connects from localhost.
Code:
Interesting ports on localhost (127.0.0.1):
(The 1667 ports scanned but not shown below are in state: closed)
PORT   STATE SERVICE
80/tcp open  http

Nmap finished: 1 IP address (1 host up) scanned in 0.100 seconds
this is the error I'm getting:
Code:
ERROR 2003 (HY000): Can't connect to MySQL server on 'somesite.com' (111)
Any suggestions please? Thank you!

**EDIT** Never mind, I found the solution:
GRANT ALL ON *.* TO root@'10.1.10.190' IDENTIFIED BY 'PASSWORD';

Last edited by Shioni; 12-06-2006 at 11:27 AM.
 
Old 12-06-2006, 11:26 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Perhaps the no-networking option was invoked with MySQL by default during the restart, which by default turns off remote networking access.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 12:08 AM
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


All times are GMT -5. The time now is 07:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration