mysql 安装+状态+修改mysql 的密码
1.建议不要用命令安装,我失败了,我下次不用命令了
下载地址:https://pan.baidu.com/s/1slJAgqh
安装教程:https://www.jianshu.com/p/fd3aae701db9
2.mysql 状态停止、重启、查看
https://blog.csdn.net/ishadian/article/details/107804229
cd /usr/local/mysql/support-files/
顾名思义:
sudo mysql.server stop
sudo mysql.server restart
sudo mysql.server status
3.修改mysql 登入的密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';
4.参考
忘记mysql密码,如何重新设置密码:https://blog.csdn.net/li_haijiang/article/details/79368870
客户端使用root身份和密码,无法登录mysql:https://www.jianshu.com/p/6b4fa7b87547