1、登陆mysql mysql -uroot -p 2、创建无密码用户 mysql> create user gateway@'localhost' identified by '';3、授权 mysql> grant all privileges on *.* to gateway@'localhost';或者 mysql> grant all privileges on db01.* to gateway@'localhost';4、mysql -ugateway -p回车即可登陆 ...
mysql不用密码登录
1、登陆mysql
mysql -uroot -p
2、创建无密码用户
mysql> create user gateway@'localhost' identified by '';
3、授权
mysql> grant all privileges on *.* to gateway@'localhost';
或者
mysql> grant all privileges on db01.* to gateway@'localhost';
4、mysql -ugateway -p回车即可登陆2015-08-27
各色然后呢热身会飞的任何事呢然2015-08-27