Recently in one of the server mysql was running but in netstat output port was not listening due to which users are not able to connect database in the server.
But able to login to mysql prompt without any issues
Resolution:
Step 1: Login to the server using putty
Step 2: Edit my.cnf file
Step 3: Make sure line skip-networking is commented (or remove line) and add following line
But able to login to mysql prompt without any issues
Resolution:
Step 1: Login to the server using putty
Step 2: Edit my.cnf file
- If you are using Debian Linux file is located at /etc/mysql/my.cnf location
- If you are using Red Hat Linux/Fedora/Centos Linux file is located at /etc/my.cnf location
- If you are using FreeBSD you need to create a file /var/db/mysql/my.cnf
Step 3: Make sure line skip-networking is commented (or remove line) and add following line
bind-address=YOUR-SERVER-IP
- bind-address : IP address to bind to.
- skip-networking : Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should be removed from my.cnf or put it in comment state.
No comments:
Post a Comment