Solved

Open port 3306 on Solaris for MySQL

Posted on 2011-03-15
6
1,103 Views
Last Modified: 2012-05-11
I have a Solaris 10 Virtaul Server running under VMWare.  The system has MySQL installed on it and runs fine.  However when we try to connect on Port 3306 it refuses connection, there is no firewalling in place on the machine attempting connection and the Solaris system is not firewalled at all,  yet still we cannot complete this ODBC connection on Port 3306.  We can ping the machine and telnet to port 23 with no issue.
0
Comment
Question by:Alan Taylor
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:upanwar
ID: 35136491
show us.

netstat -an | grep 3306

or If you have lsof then show us.

# lsof -i |grep :3306
0
 

Author Comment

by:Alan Taylor
ID: 35136698
Thanks for the quick response upanwar.....please see below for result of netstat command:

127.0.0.1.3306         *.*      0        0       49152       0      Listen

Thanks again for your help.
0
 
LVL 12

Expert Comment

by:upanwar
ID: 35136752
As per the given output mysql is listening on Localhost, that is the reason you are not able to connect it from remote machine.

Please follow this to enable remote connection to your mysql server.

http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:Alan Taylor
ID: 35150688
Thanks for the response upanwar, I took a good look at this and have made some limited progress.  I would be grateful if you have any further advice regarding the points I have raised below.

Thanks again

Alan

The port has been changed (now 32782) and you can now telnet over to the solaris box.
When running the ODBC driver, ‘snoop’ shows the connection being made.
But nothing is then fed back as though the Solaris box is not looking for / picking up this connection?
Are there any services that should be running to pick this connection up and if so how can we test them?
0
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 35153505
It seems that now your server is listening on network interface so Its getting the connection but have you grant the permission to your dalabase to connect remotly.

I would suggest the GUI tool to connect mysql database remotly and query your database. You may aware some GUI tool and I have also found for you.

Install one of these tool on your windows box, connect your database and query.

http://dev.mysql.com/downloads/workbench/

http://www.databasejournal.com/features/mysql/article.php/3880961/Top-10-MySQL-GUI-Tools.htm
0
 

Author Closing Comment

by:Alan Taylor
ID: 35885400
After installing as per the solution a secondary file was found which required amendment.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
The better OS Architecture 13 89
mysql qry 1 22
Why is my $_POST not going to results page 10 36
Enable SPF on IMSVA 6 19
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

756 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