MySQL Common commands

Source: Internet
Author: User

SHOW databases returns a list of available databases, which may be included in the MySQL database for internal use (such as MySQL and Information_schema)

SHOW TABLES
Returns a list of tables within a database

SHOW COLUMNS from Customers,describe Customer
Returning table columns

SHOW CREATE TABLE Test1

Show table status like ' test1% '

CREATE TABLE Customer
(
ID int NOT NULL Primary key auto_increment,
Name varchar (50),
Age int
)

ALTER TABLE Customer engine= ' Myisam ' changes the ENGINE

SHOW TABLE STATUS like ' Customer '

Show status Displays server state information

Show grants to display the security permissions granted to a user

Show ERRORS show warnings used to display server error and warning messages

MySQL Common commands

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.