Solved

Is there a command to see if mysql is reachable LAN,WIndows

Posted on 2016-08-24
3
78 Views
Last Modified: 2016-09-05
I am in a LAN and i have a program wat need to make a connection to an SQL server but it does not work
Is there a command in a windows 7 system without MySQL if the MySQL server(on Windows 7) is reachable  

Thanks Danny
0
Comment
Question by:Danny Kon
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Andy M earned 500 total points
ID: 41768758
It would be best using a mysql command to test the connection as you should be able to get more detailed error messages, but some of the more simple tests possible would be:

Try pinging the machine the SQl instance is located on.

Ensure MySQL is running on the specified port 3306 i.e. it has not been modified.

Ensure that the either PC is not blocking inbound connections on that port. If it is, add a firewall exception to allow connections on port 3306. (Or if a test environment and the network is secure, you could disable the Windows firewall altogether to rule that out as a problem).

I'm not aware of any other command that can be run from a base Windows system to test mysql connectivity.
0
 
LVL 6

Author Comment

by:Danny Kon
ID: 41769212
Andy,
"
It would be best using a mysql command to test the connection as you should be able to get more detailed error messages"

Can I run this commands without installing a version of MySQL?

I ping the system and is giving reply also there is an exception on the firewall port 3306 and i grant all privileges on the MySQL DB
But i dont get any connection to the MySql DB

Thx for helping

Danny
0
 
LVL 13

Expert Comment

by:Andy M
ID: 41777995
I believe you'd need to install mysql to gain access to the commands needed. The only other way I can think of doing it is via php scripting but for that to work you'd need to install a web hosting environment with PHP which will be just as time consuming.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 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