LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why dont i see the port listening? (https://www.linuxquestions.org/questions/linux-newbie-8/why-dont-i-see-the-port-listening-4175421999/)

figure20012 08-14-2012 05:59 AM

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?

jsaravana87 08-14-2012 06:03 AM

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:~$

druuna 08-14-2012 06:03 AM

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.

figure20012 08-14-2012 06:10 AM

is it because skip-networking is enabled in my.cnf?

---------- Post added 08-14-12 at 06:11 AM ----------

Quote:

Originally Posted by druuna (Post 4753829)
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?

druuna 08-14-2012 06:12 AM

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

figure20012 08-14-2012 06:18 AM

thanks a lot it was because of skip networking
:)


All times are GMT -5. The time now is 07:06 AM.