Solved

Open port 3306 on Solaris for MySQL

Posted on 2011-03-15
6
1,099 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

778 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