1、定位配置文件:mysqld --verbose --help |grep -A 1 'Default options'

3、重启MySQL:service mysql restart

5、修改密码:ALTER USER 'root'@'localhost' IDENTIFIED BY 'Data-Insights123';

时间:2024-10-18 16:31:32
1、定位配置文件:mysqld --verbose --help |grep -A 1 'Default options'
3、重启MySQL:service mysql restart
5、修改密码:ALTER USER 'root'@'localhost' IDENTIFIED BY 'Data-Insights123';