sudo adduser linuxidc
.....
sudo vim /etc/sudoers
修改文件如下:
# User privilege specification
root ALL=(ALL) ALL
linuxidc ALL=(ALL) ALL
先安装好操作系统
卸载删除mysql
1.sudo apt-get autoremove --purge mysql-server-5.6 (需要修改版本号)
2.sudo apt-get remove mysql-common
3.sudo apt-get autoremove
清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
4.[b]sudo apt-get update[/b] //更新下软件列表
在Mysql官网上下载最新版的Ubuntu Linux专用的Mysql。
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar
解压文件 命令为:tar -xvf mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar.
解压开来后,一共有12个deb包,安装了7个,
用sudo dpkg -i [包名]
命令逐个安装,因为包与包中间存在依赖关系,这里安装有个先后顺序。
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
.....
sudo vim /etc/sudoers
修改文件如下:
# User privilege specification
root ALL=(ALL) ALL
linuxidc ALL=(ALL) ALL
先安装好操作系统
卸载删除mysql
1.sudo apt-get autoremove --purge mysql-server-5.6 (需要修改版本号)
2.sudo apt-get remove mysql-common
3.sudo apt-get autoremove
清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
4.[b]sudo apt-get update[/b] //更新下软件列表
在Mysql官网上下载最新版的Ubuntu Linux专用的Mysql。
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar
解压文件 命令为:tar -xvf mysql-server_5.7.20-1ubuntu14.04_amd64.deb-bundle.tar.
解压开来后,一共有12个deb包,安装了7个,
用sudo dpkg -i [包名]
命令逐个安装,因为包与包中间存在依赖关系,这里安装有个先后顺序。
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