Solved

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

Posted on 2016-08-24
3
90 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
[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
  • 2
3 Comments
 
LVL 14

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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
what should i learn? javascript or typescript? 3 67
WMIC Output Formatting 1 84
Get data from two MySQL tables 6 66
powershell script error 2 34
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
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…

734 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