Solved

Open port 3306 on Solaris for MySQL

Posted on 2011-03-15
6
1,085 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:alanjkt
  • 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:alanjkt
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:alanjkt
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:alanjkt
ID: 35885400
After installing as per the solution a secondary file was found which required amendment.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 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

12 Experts available now in Live!

Get 1:1 Help Now