添加国内更新镜像源,参考链接:https://blog.csdn.net/inslow/article/details/54177191
卸载旧版mysql,参考链接:https://blog.csdn.net/zhwyj1019/article/details/80274269
安装mysql8.0,参考链接:https://hostadvice.com/how-to/how-to-install-mysql-8-0-and-create-a-database-on-a-centos-7-linux-vps-or-dedicated-server
创建新用户Users,以及用户权限管理,参考链接:https://hostadvice.com/how-to/how-to-create-new-mysql-users-accounts-and-manage-mysql-privileges/
use mysql;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'username'@'localhost';
flush privileges;
mysql8 :客户端连接caching-sha2-password问题
Good Luck !