mysql server remote connect in linux

mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.9-beta
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>

解决方法:
mysql>grant all on *.* to root@'%' identified by 'yourpassword';
mysql>flush privileges;