To test the port on which MySQL is running
#sudo netstat -nlp | grep -i mysql
It will give output like
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4959/mysqld
unix 2 [ ACC ] STREAM LISTENING 133857 4959/mysqld /var/lib/mysql/mysql.sock
The above MySQL is running on 3306 port
#sudo netstat -nlp | grep -i mysql
It will give output like
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4959/mysqld
unix 2 [ ACC ] STREAM LISTENING 133857 4959/mysqld /var/lib/mysql/mysql.sock
The above MySQL is running on 3306 port
No comments:
Post a Comment
Please share your views and comments below.
Thank You.