Solved

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

Posted on 2016-08-24
3
53 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now