redhat6.4安装MySQL-server-5.5.28-1.linux2.6.x86_64.rpm (2)

mysql> grant all privileges on *.* to \'root\'@\'@\' with grant option; ERROR 1105 (HY000): Malformed hostname (illegal symbol: \'@\') mysql> grant all privileges on *.* to \'root\'@\'%\' with grant option; Query OK, 0 rows affected (0.00 sec)

mysql> exit 

Bye 

[root@localhost ~]# service mysql restart 

Shutting down MySQL.. SUCCESS!  

Starting MySQL.. SUCCESS!  

重启mysql即可远程登陆。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zwgxps.html