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-11-29 09:49:53
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
如果 MySQL 正在运行,首先:killall-TERMmysqld。运行mysqld_safe--skip-grant-tables&如果此时不想被远程连接:mysqld_safe –skip-grant-tables –skip-networking &使用mysql
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
如果 MySQL 正在运行,首先:
killall-TERMmysqld。
运行
mysqld_safe--skip-grant-tables&
如果此时不想被远程连接:mysqld_safe –skip-grant-tables –skip-networking &
使用mysql连接server
更改密码:
updatemysql.usersetauthentication_string=password('123qwe')whereuser='root'andHost='localhost';
*特别提醒注意的一点是,新版的mysql数据库下的user表中已经没有Password字段了
而是将加密后的用户密码存储于authentication_string字段
mysql>flushprivileges;mysql>quit;
修改完毕。重启
killall-TERMmysqld。mysqld_safe&
然后mysql就可以连接了
但是此时操作似乎功能不完全,还要alter user…
alteruser'root'@'localhost'identifiedby'123';
网文说酱紫也可以:
setpasswordfor'root'@'localhost'=password('123');cpmysql.server/etc/init.d/mysqlchmod+x/etc/init.d/mysqlchkconfig--addmysql
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