How to connect to mysql using cmd
Connection: mysql-h host address-u user name-p user password (note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (press enter)
Create authorization: grant select on database. *
MYSQL database cmd command operation details, mysqlcmd
CMD command
Cmd is the abbreviation of command. that is, the command prompt (CMD) is based on OS/2, Windows CE and Windows NT platform (including Windows 2000 and XP, Vista, and Server 2003)
PHP MySQL database common cmd command setshow databases; Display DatabaseCreate database name; Create a databaseUse DatabaseName; Select DatabaseDrop database name deletes databases directly and does not alertShow tables; Show TableDescribe
To access the mysql database using cmd, you must first enter the mysql directory to execute the MYSQL command, the following describes how to directly execute mysql commands in cmd!
To access the mysql database using cmd, you must first enter the
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be used without spaces, others are the same)Disconnect: Exit (Enter)Create authorization: Grant SELECT on database. * To User name @ login host identified by \
1. Introduction to the Database
Database classification
DDL (data definition Language): Definition Language for database objects: libraries, tables, columns, etc. CREATE, ALTER, DROP
DML (Data manipulation Language):
1
2
3
4
5
6
7
Step through ReadingMySQL Open source database, anyone can download the installation using. So how does the installed MySQL log in to connect to the MySQL database? This experience introduces several common
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be used without spaces, others are the same)Disconnect: Exit (Enter)Create authorization: Grant SELECT on database. * To User name @ login host identified by \
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be used without spaces, others are the same)Disconnect: Exit (Enter)Create authorization: Grant SELECT on database. * To User name @ login host identified by \
Rotor http://www.linuxidc.com/Linux/2015-06/119354.htmDirectoryPreparatory workOperating EnvironmentConfirm your version of the installationDownload MySQLInstall MySQLPreparing the installation EnvironmentCompiling and installingConfigure
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.