mysql> grant usage on *.* to root@"%" identified by '2240881';
Query OK, 0 rows affected (0.00 sec)
##本地mysql -uroot -p 的 用这个
mysql> grant usage on *.* to root@"localhost" identified by '2240881';
SET PASSWORD FOR root@"%" = PASSWORD('2240881');
网上说了很多,但很多试过都不行呀
http://www.php100.com/html/webkaifa/database/Mysql/2009/1111/3505.html