sudo adduser linuxidc
.....
sudo vim /etc/sudoers
Modify the file as follows:
# User privilege specification
root ALL=(ALL) ALL
linuxidc ALL=(ALL) ALL
Install the operating system first,
uninstall delete mysql
1.sudo apt-get autoremove --purge mysql-server-5.6 (need to modify the version number)
2.sudo apt-get remove mysql-common
3.sudo apt-get autoremove
clean up residual data
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
4.
sudo apt-get update
//Update the software list Download the latest version of Mysql for Ubuntu Linux
on the Mysql official website.
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar
The command to decompress the file is: tar -xvf mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar.
After decompression, there are a total of 12 deb packages, 7 of which are installed,
use sudo dpkg -i [package name]
The commands are installed one by one, because there is a dependency between packages and packages, there is a sequence of installations here.
sudo dpkg -i mysql-common_5.7.20-1ubuntu14.04_amd64.deb
sudo dpkg -i libmysqlclient20_5.7.20-1ubuntu14.04_amd64.deb
sudo dpkg -i libmysqlclient-dev_5.7.20-1ubuntu14.04_amd64.deb
sudo dpkg -i libmysqld-dev_5 .7.20-1ubuntu14.04_amd64.deb
sudo apt-get install libaio1
sudo dpkg -i mysql-community-client_5.7.20-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-client_5.7.20-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-community-source_5.7.20-1ubuntu14.04_amd64.deb
sudo apt-get install libmecab2
sudo dpkg -i mysql-community-server_5.7.20-1ubuntu14.04_amd64.deb
mysql -uroot -p
Install MySQL in Ubuntu environment
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326218696&siteId=291194637
Recommended
Ranking