Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-08-24
3
Medium Priority
?
111 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 14

Accepted Solution

by:
Andy M earned 2000 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 14

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

782 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