Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-14-2012, 05:59 AM
|
#1
|
Member
Registered: Apr 2012
Posts: 75
Rep: 
|
why dont i see the port listening?
i have started mysql server
i can use the mysql terminal monitor
but yet i cant find out the port 3306 when i type the command netstat -ntpl
i have read the my.cnfand the port used is 3306
why dont i see the port listening?
|
|
|
08-14-2012, 06:03 AM
|
#2
|
Member
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Rep: 
|
Post the Output for below command and check whether port is listening on port number 3306 (mysql)
arun@arun-desktop:~$ netstat -apn | grep "mysql"
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
unix 2 [ ACC ] STREAM LISTENING 6921 - /var/run/mysqld/mysqld.sock
arun@arun-desktop:~$ netstat -apn | grep :3306
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
arun@arun-desktop:~$
|
|
1 members found this post helpful.
|
08-14-2012, 06:03 AM
|
#3
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Are you executing netstat -ntpl as root or as normal user? You should do this as root, running it as normal user will not show all, only those associated with that specific user.
|
|
1 members found this post helpful.
|
08-14-2012, 06:10 AM
|
#4
|
Member
Registered: Apr 2012
Posts: 75
Original Poster
Rep: 
|
is it because skip-networking is enabled in my.cnf?
---------- Post added 08-14-12 at 06:11 AM ----------
Quote:
Originally Posted by druuna
Are you executing netstat -ntpl as root or as normal user? You should do this as root, running it as normal user will not show all, only those associated with that specific user.
|
yes i am executing metstat -ntpl as the user root
but still i cannot find the port
is it because of skip networking?
|
|
|
08-14-2012, 06:12 AM
|
#5
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
I guess so:
Quote:
--skip-networking
Do not listen for TCP/IP connections at all. All interaction with mysqld must be made using named pipes or shared memory (on Windows) or Unix socket files (on Unix). This option is highly recommended for systems where only local clients are permitted. See Section 8.9.8, “DNS Lookup Optimization and the Host Cache”.
|
Source: http://dev.mysql.com/doc/refman/5.1/...r-options.html
|
|
1 members found this post helpful.
|
08-14-2012, 06:18 AM
|
#6
|
Member
Registered: Apr 2012
Posts: 75
Original Poster
Rep: 
|
thanks a lot it was because of skip networking

|
|
|
All times are GMT -5. The time now is 09:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|