那为什么我用root用户,并且是正确的密码却进不去呢?
而且user表也看不到了
没刷新权限吧?
原帖由 zenkill 于 2007-2-14 21:01 发表
是啊,没刷新权限:(
重新安装都不行,
查了mysql帮助文档,重新设置root的密码,居然还是没用,
更改root的密码怎么也得有权限才可以,我每次都是access denied!
准备重装FC了
ps:不刷新权限,威力这么大?
--skip-grant-tables
原帖由 gogo407 于 2007-2-15 00:07 发表
没必要重新安装FC吧,看下手册
忽略权限bin/safe_mysqld --skip-grant-tables &
直接输入mysql
应该可以进去,并得到你想要的权限,再修改密码,刷新权限表就好拉
1.Stop mysqld and restart it with the --skip-grant-tables --user=root options
(Windows users omit the --user=root portion).
2.Connect to the mysqld server with this command:
3.Issue the following statements in the mysql client:
mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd')
-> WHERE User='root';
shell> mysql -u root
原帖由 Namelessxp 于 2007-2-15 12:03 发表
update user set password='test' where user='root'
汗一个,MySQL弱智到用明文存储用户密码?
update user set password=password('test') where user='root';
flush privileges;
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |