Reading MySQL manuals in MySQL monitor?
Question
Problem: To read MySQL's manual effectively
Error:
mysql> create database plastronics
-> ;
ERROR 1007 (HY000): Can't create database 'plastronics'; database exists
mysql>
Question: How do I check it quickly like in Vim: ":h 1007"?
Solution 2
Solution to your problem
- Make a Vim-like K button for MySQL in Screen. Note that it is not possible to put all manuals under K.
Practical solution
- Download MySQL manuals to your computer. (not sure whether Sun gives zip-files of them)
- make a binding
Ctrl-A Esc Ctrl-m
for instance for Mysql's manuals in .screenrc
Please, search/read Screen's manual for more info by
man screen
or by pinfo
pinfo screen
OTHER TIPS
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.