赞
踩
https://blog.csdn.net/syrchina/article/details/121440549
sudo apt-get autoremove --purge mysql-server
sudo apt-get remove mysql-common
sudo rm -rf /etc/mysql/ /var/lib/mysql
dpkg -l | grep ^rc| awk '{print $2}' | sudo xargs dpkg -P
sudo apt autoremove
sudo apt autoclean
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
参考:
https://blog.csdn.net/weixin_44215249/article/details/120482604
//查看思否运行远程
SELECT user,host,authentication_string,plugin FROM mysql.user;
// 创建用户 并运行远程连接
CREATE USER 'root'@'%' IDENTIFIED BY 'root';
grant all on *.* to 'root'@'%';
flush privileges;
quit;
UPDATE mysql.user SET `plugin`='mysql_native_password' WHERE `user`='root';
flush privileges;
quit;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。