1. Use following command to install mysql server.
sudo apt-get install mysql-server.
During installation process, it prompts for password.
2. After installation, mysql server runs automatically. To check whether mysql server is running or not, Use the following command.
sudo netstat -tap | grep mysql
3. If the server is not running correctly, you can type the following command to start it:
sudo service mysql restart
Note: Configuration file for mysql server is located in "/etc/mysql/my.cnf".
sudo apt-get install mysql-server.
During installation process, it prompts for password.
2. After installation, mysql server runs automatically. To check whether mysql server is running or not, Use the following command.
sudo netstat -tap | grep mysql
root@hk-Inspiron-N5010:~# sudo netstat -tap | grep mysql tcp 0 0 localhost:mysql *:* LISTEN 8258/mysqld
3. If the server is not running correctly, you can type the following command to start it:
sudo service mysql restart
Note: Configuration file for mysql server is located in "/etc/mysql/my.cnf".
No comments:
Post a Comment