12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-12-25 09:56:58
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
修改配置文件:[root@MySQL-S mysql]# vim /etc/my.cnf2.在 [mysqld] 这个模块添加以下内容。skip-grant-tables3.重启 MySQL。[root@MySQL-S mysql]# ./support-files/mysql.
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
[root@MySQL-S mysql]# vim /etc/my.cnf
2.在 [mysqld] 这个模块添加以下内容。
skip-grant-tables
3.重启 MySQL。
[root@MySQL-S mysql]# ./support-files/mysql.server restart
4.用空密码进入,回车。
[root@MySQL-S mysql]# mysql
mysql> alter user 'root'@'localhost' identified by '123456';
6.刷新:
mysql>flush privileges;
或:
update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19