连接到MySQL之后,
执行:
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> CREATE TABLE example (
-> id INT,
-> data VARCHAR(100)
-> );
Query OK, 0 rows affected (0.05 sec)
mysql>
然后退出:
mysql> quit
Bye
[root@server ~]#