MySQL Command line Operation review

Source: Internet
Author: User
Tags mysql commands nets mysql command line

in recent days has been doing a student status management system based on thinkphp RBAC, MySQL is a lot, although now MySQL excellent graphics software has been quite a lot, can significantly improve the speed of the operation of the database, Their most commonly used two is navicat and Mysql-front, of which the most satisfied is navicat, it is not only simple interface, the function of the latter more perfect some, in addition to support Mac Ox System, so I mostly use navicat. Feel a bit far, in fact, this article I want to say is that MySQL graphics software is to improve our efficiency, but still can not operate some of MySQL commands to forget, after all, not every machine has its own familiar with the MySQL graphics operating software.

Let's review some of the most basic MySQL operations:

1. Connect MySQL under cmd:


Successful Connection display content:


2. Show command to display the existing database


3. The create command creates the database:


To create the result:

4. Display the database name now selected


5. Create a table


6. View the structure of the table


7. Insert Table field, but error occurred


Solutions are:

When installing MySQL, the choice is utf8, so when inserting data, there is a coding error, the solution is to find the MySQL installation directory under the My.ini file, put the inside of the DEFAULT-CHARACTER-SET=GBK. Restart MySQL.


8. After modifying the My.ini, you have to restart MySQL.


9, then insert can be successful


10. Display the contents of the table


11, modify the structure of the table field


12. Backing Up the database


13. Backup Results



PS: Today first come here, casually spit groove school nets, upload a few pictures actually broken several nets!!!


MySQL Command line Operation review

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.