Start using MySQL in Windows (i)

Source: Internet
Author: User

First, Download:

http://dev.mysql.com/downloads/windows/installer/

Second, after installation can use Workbench for graphical interface integration operation, you can also use command line operation, the following use command line operation.

1, configure environment variables, default MySQL installed in a directory like this: C:\Program Files (x86) \mysql\mysql Workbench CE 6.1.6

2. Link and disconnect the server:

A) Links:

Mysql-h Localhost-u Root-p

Enter password:xxx

Command Description:-H host-u user name-p password

Prompt appears after connection

Mysql>

b) Disconnect

Mysql>quit

3. Get Help

Mysql>help

4. Query version number

Mysql>select version ();

5. Query the current date

Mysql>select current_date;

6. Query the current date and time

Mysql>select now ();

7, query the user name and host

Mysql>select user ();

     

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.