Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Connecting a Remote MySQL Server

Posted on 2004-10-21
9
Medium Priority
?
646 Views
Last Modified: 2013-12-09

i have installed a mysql server on IP2, and i want to connect from IP1 to the mysql server on IP2, but it doesn't work.
what commands do i have to type in mysql on IP2 to grant access IP1

---
$ mysql -h ***IP2*** -u root -p
Enter password:
ERROR 2003: Can't connect to MySQL server on '***IP2***' (60)
---

Thanks in advance
0
Comment
Question by:ColinWebdesign
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 12373032
1) can you ping
2) do you see mysql server in netstat -an
0
 

Author Comment

by:ColinWebdesign
ID: 12378595
1) cannot ping, but is blocked (bridging firewall between)
2) no cannot see

but when i try to connect to the mysql server, i start a tcpdump on the mysql server and i can see that IP1 IS trying to connect:
09:57:47.735996 **IP1**.20015 > **IP2**.3306: S 684609730:684609730(0) win 16384 <mss 1460,nop,nop,sackOK,nop,wscale 0,nop,nop,timestamp 1080552892 0> (DF)
09:57:47.736062 **IP2**.3306 > **IP1**.20015: S 2030520059:2030520059(0) ack 684609731 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 558258865 1080552892> (DF)
09:57:50.730132 **IP2**.3306 > **IP1**.20015: S 2030520059:2030520059(0) ack 684609731 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 558259165 1080552892> (DF)
09:57:53.730843 **IP1**.20015 > **IP2**.3306: S 684609730:684609730(0) win 16384 <mss 1460,nop,nop,sackOK,nop,wscale 0,nop,nop,timestamp 1080552904 0> (DF)

but no result:

ERROR 2003: Can't connect to MySQL server on '***IP2***' (60)
0
 
LVL 62

Expert Comment

by:gheist
ID: 12378775
1) then you sabotage network troubleshooting
2) then you do not run mysqld listening on network interface
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ColinWebdesign
ID: 12380283
1) What do you mean ?
2) How can i check that the mysql server i listening on a Sock or a NIC ???
0
 
LVL 62

Accepted Solution

by:
gheist earned 100 total points
ID: 12382256
1) if you cannot confirm general network connectivity, you cannot determine cause of any network problem whatsoever.
2) sockstat -4l
0
 

Author Comment

by:ColinWebdesign
ID: 12664342
solved...
no route to host... solved with 'route add' my fault
0
 
LVL 62

Expert Comment

by:gheist
ID: 12666776
Err 60 is "operation timed out", not "no route to host"
Ping would have revealed the real problem.
0
 

Author Comment

by:ColinWebdesign
ID: 12668247
i didn't said "no route to host", there wasn't a route to host i meant
0
 

Author Comment

by:ColinWebdesign
ID: 12679365
Close this thread please...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question