Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open port 3306 on Solaris for MySQL

Posted on 2011-03-15
6
Medium Priority
?
1,116 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
[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
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

722 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