在学习mysql时创建database时出现错误
mysql> creat database db1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'creat database db1' at line 1
mysql>
creat ≠ create,少写了一个“e”
这篇文章讲的很详细,请看:MySQL变量的使用CREATE DATABASE db1;