更改mysql登录权限

1. service  mysqld  service

2. mysql -u  root  -p

3.use mysql

4.show  talbes

5.select user  ,passwd ,host from user

6.delete from user  where password ='';

7.select user,passwd,host from user;

8.update  user   set host ="%";

posted @ 2016-12-30 17:28  BideYao  阅读(364)  评论(0编辑  收藏  举报