无密码root帐号登陆
/usr/bin/mysql -uroot -p
#在下面的要求你输入密码的时候,你不用管,直接回车键一敲就过去了
mysql> use mysql;
mysql> update user set password=password("guxxxxxahyVh") where user='root' and host='localhost';
mysql> flush privileges;
无密码root帐号登陆
/usr/bin/mysql -uroot -p
#在下面的要求你输入密码的时候,你不用管,直接回车键一敲就过去了
mysql> use mysql;
mysql> update user set password=password("guxxxxxahyVh") where user='root' and host='localhost';
mysql> flush privileges;