先登录:
mysql -u user -p
再确定用户user有没有create的权限
C:\Documents and Settings\Administrator\桌面>mysql -uroot -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.18-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> create database ac;
Query OK, 1 row affected (0.02 sec)