楼主没有说清楚,如果是远程权限,那么
mysql> grant all privileges on *.* to cc@'10.0.0.1' identified by 'password';
Query OK, 0 rows affected (0.02 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
关于其他的还是看
http://yangxingjun.myrice.com/chinesehow/mysql/manual_Privilege_system.html