MySQL Common commands

Source: Internet
Author: User

Install a MySQL5.5.27 today to see some common commands

1. Log in to MySQL
In the cmd window, go to the MySQL-Installed bin directory,
Command: bin >mysql–u root–p [database name] carriage return, enter password

2. View version number:mysql>select versions ();

3. View server Current date:mysql> select Current_date;

4. View all databases on the server:mysql> show databases;

5. View the name of the database currently being manipulated:mysql> Select Databases ();

6. Switch database:mysql>use databasename;

7. View all table names under the current database:mysql>show tables;

8. View table structure:mysql>describe tablename;

In addition, Sqlyog-9.6.1-0community is installed to display MySQL graphical interface for easy data operation.

MySQL Common commands

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.