三门峡高端网站建设,生态文明建设,科技部部长用梅西解释chatgpt,厦门网络推广公司很简单#xff0c;我们跳过验证#xff0c;直接进去修改就好
修改配置文件
vim /etc/my.cnf在[mysqld]下直接添加配置
skip-grant-tables如图#xff1a; 保存#xff0c;退出即可。
重启服务
service mysqld restart进入MySQL
#(直接点击回车#xff0c;密码为空)…很简单我们跳过验证直接进去修改就好
修改配置文件
vim /etc/my.cnf在[mysqld]下直接添加配置
skip-grant-tables如图 保存退出即可。
重启服务
service mysqld restart进入MySQL
#(直接点击回车密码为空)
mysql -uroot -p
选择数据库
use mysql修改密码
update user set authentication_stringpassword(123456) where userroot;刷新配置
flush privileges;无脑合集
use mysql;
update user set authentication_stringpassword(123456) where userroot;
flush privileges;至此再次重启服务即可
service mysqld restart