MySQL Command learning notes (one)

Source: Internet
Author: User
Tags php language mysql view

One, install/uninstall MySQL database

#安装Mysql数据库

D:\mysql\bin>mysqld--install

#启动Mysql服务

D:\mysql\bin>net start MySQL


#停止Mysql服务

D:\mysql\bin>net stop MySQL

#卸载Mysql数据库

D:\mysql\bin>mysqld--remove

Second, login \ Exit MySQL Database

#命令: Mysql-h Host IP address-u user name-p password

#本机登录, the user name root password is empty

D:\mysql\bin>mysql-h Localhost-u Root-p

#上面命令还可以写成下列方式

D:\mysql\bin>mysql-hlocalhost-uroot-p

#上面命令简写为下面命令

D:\mysql\bin>mysql-u Root


#退出Mysql

Mysql>\q

Mysql>exit

Mysql>quit

Third, MySQL common management tools

1, phpMyAdmin PHP language written Web management program, Linux recommended to use

2, SQLyog very good MySQL desktop management software, Windows recommends the use of

Iv. two storage engines commonly used by MySQL

MyISAM (old version default engine)

InnoDB (new version default engine) can handle things (acid-compatible)

V. Basic MySQL View command:

#查看数据库版本信息

Select version ();

#查看当前使用的哪个数据库, displays the current database name;

Select Database ();

#查看所有数据库

show databases;


This article is from the "Network Learning and Communication" blog, please be sure to keep this source http://steave.blog.51cto.com/229503/1882416

MySQL Command learning notes (one)

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.