标签:
1.查看ubuntu下装了什么软件:
dpkg -l
2.删除mariadb:
apt-get autoremove --purge mariadb-server-10.0
apt-get remove mariadb-server
apt-get autoremove mariadb-server
apt-get remove mysql-common
3.安装mysql
apt-get install mysql-server
4.更新密码
update user set password=password(‘new_password‘) where user=‘root‘
flush privileges;
5.启动mysql
sudo /etc/init.d/mysql restart
6.外部连接:
grant all on *.* to root@"%" identified by "root";
flush privileges;
标签:
原文地址:http://www.cnblogs.com/a963383404/p/5903686.html