Ubuntu server install mysql database

.<span style="font-size:24px;">1.下载wget http://dev.mysql.com/get/mysql-apt-config_0.3.5-1ubuntu14.04_all.deb

2.sudo dpkg -i mysql-apt-config_w.x.y-zubuntu14.04_all.deb

3. Dialog apply

4.  apt-get update

5.  sudo apt-get install mysql-server

  During the process: password:mysql   

6. After the installation is complete:  
Check whether the mysql service is enabled: sudo service mysql status
Stop: sudo service mysql stop
Start: sudo service mysql start

mysql remote connection
/etc/mysql/my.cnf</span>
<span style="font-size:24px;">Do the following</span>
<span style="font-size:24px;">vim </span><pre name="code" class="html"><span style="font-size:24px;">/etc/mysql/my.cnf</span>
Restart the service after #bind-address = 127.0.0.1: service mysql stop; service mysql start;
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325623053&siteId=291194637