Reading MySQL manuals in MySQL monitor?

后端 未结 2 1009
野的像风
野的像风 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.

    0 讨论(0)
  • 2021-01-15 07:04

    Solution to your problem

    1. Make a Vim-like K button for MySQL in Screen. Note that it is not possible to put all manuals under K.

    Practical solution

    1. Download MySQL manuals to your computer. (not sure whether Sun gives zip-files of them)
    2. 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
    
    0 讨论(0)
提交回复
热议问题