MySQL Common commands

Source: Internet
Author: User
Tags mysql version create database

Basic command:

1  <!--command to add '; ' Indicates the end of the command -2mysql> status<!--Check current login information, MySQL version information -3Mysql> Help<!--frequently used help commands -4Mysql> select version ();<!--MySQL version information -5Mysql> exit;<!--quit MySQL -6Mysql> quit;<!--quit MySQL -Mysql> Ctrl + C (mouse button)<!--exit the current command line-
7 mysql> Select Now (); <!--Check current time--
8 mysql> Select version (); <!--Check the current MySQL version--
9 mysql> Select Now () version (); <!--version and time display query --

Database Operations Command:

1mysql> show databases;<!--Show All Databases -2mysql> use MyDB;<!--Use a database -3 mysql> Show tables; 4 mysql> desc t_user;5 mysql> drop table t_user;6mysql> CREATE DATABASE MyDB;<!--Create a database -7mysql> drop Database mydb;<!--Deleting a database -

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.