Reading MySQL manuals in MySQL monitor?

后端 未结 2 1010
野的像风
野的像风 2021-01-15 06:31

Problem: To read MySQL\'s manual effectively

Error:

mysql> create database plastronics
    -> ;
ERROR 1007 (H         


        
2条回答
  •  被撕碎了的回忆
    2021-01-15 06:47

    A list of error messages is available on the MySQL website. However, it isn't really going to help you if the error the server spit out didn't.

    You asked MySQL to create a database; MySQL replied that it can't create that database because it already exists. You can't have two databases on the same server with the same name. You need to either pick a different name (e.g., create database plastronics2) or drop the already-existing database (drop database plastronics).

    Please beware that dropping a database destroys everything in it (tables, views, procedures, all the data, etc.)

    Looking at the tutorial you linked, it appears it shows the same create database statement twice in a row. I suspect you just entered the statement twice, instead of once as the tutorial's author intended.

提交回复
热议问题