参考文章:https://blog.csdn.net/tiesmilovr/article/details/79763978
mysql 重新安装之后,以前的密码还存在,说明某些文件里保存了原来设置的密码,把这个文件删掉就可以了。
find / -name mysql -type d
一定要注意,删文件夹之前切记先关掉mysql服务!
rm -rf /var/lib/mysql
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号