Basic operation of system operation of MySQL database

Source: Internet
Author: User

This paper summarizes and records the basic commands for simple and common MySQL operations in the cmd window.

command to stop the MySQL database service

1. (cmd) command line

Startup: net start MySQL stop: net stop MySQL

2. Manual: 1. Use the shortcut key Ctr+alt+delete = "2. Start Task Manager =" 3. Enter service = "4. Find MySQL to start/close


3. Log in/out of MySQL system

Login: Mysql-h Server path-u login---host= server address--user= user name--port= Port---hlocalhost-uroot---host= Hlocalhost--user=root--port=3066 --password=123456//(Note: If the system environment is set well)

4. Backup and Recovery

// 4.1 Backup: Syntax: mysqldump-h server address-u login name-P databasename >-hlocalhost-uroot db>e:/db.sql// 4.2 Restore: Syntax: mysql-h server address-u login name-P databasename <-hlocahost-uroot-p db2<e:/db.sql

Basic operation of system operation of MySQL database

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.