Ubuntu 14.04 install mysql

First you need to download mysql

The download address is: https://www.mysql.com/downloads/

After downloading, it is a tar file,

Here is the version 5.7.19 used mysql-server_5.7.19-1ubuntu14.04_amd64.deb-bundle.tar

 

Unzip the tar file on the server first #tar -xvf file

After unzipping:

Unzip the package writes
libmysqlclient20_5.7.19-1ubuntu14.04_amd64.deb
libmysqlclient-dev_5.7.19-1ubuntu14.04_amd64.deb
libmysqld-dev_5.7.19-1ubuntu14.04_amd64.deb
mysql-client_5.7.19-1ubuntu14.04_amd64.deb
mysql-common_5.7.19-1ubuntu14.04_amd64.deb
mysql-community-client_5.7.19-1ubuntu14.04_amd64.deb
mysql-community-server_5.7.19-1ubuntu14.04_amd64.deb
mysql-community-source_5.7.19-1ubuntu14.04_amd64.deb
mysql-community-test_5.7.19-1ubuntu14.04_amd64.deb
mysql-server_5.7.19-1ubuntu14.04_amd64.deb
mysql-testsuite_5.7.19-1ubuntu14.04_amd64.deb

 

The command reads
sudo dpkg -i mysql-common_5.7.19-1ubuntu14.04_amd64.deb libmysqlclient20_5.7.19-1ubuntu14.04_amd64.deb libmysqlclient-dev_5.7.19-1ubuntu14.04_amd64.deb libmysqld-dev_5.7.19-1ubuntu14.04_amd64.deb mysql-community-client_5.7.19-1ubuntu14.04_amd64.deb mysql-client_5.7.19-1ubuntu14.04_amd64.deb mysql-community-server_5.7.19-1ubuntu14.04_amd64.deb

 The installation may have incomplete dependencies, you can use sudo apt-get -f install

 

Enter the password of mysql, you can;

Check if the installation is successful:

service mysql start

If you need a remote link, you need to change the mysqld.cnf file in the /etc/mysql/mysql.conf.d directory first 

Just comment out # bind-address= 127.0.0.1;

Then give root permission to remote link; username: user name; password: password

grant all on *.* to username@"%" Identified by "password";
flush privileges;

 

Guess you like

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