How to use cmd to connect to the Mysql database bitsCN.com
We usually see mysql tutorials and mysql tool books on the Internet, which contain cmd commands and result sets.Some beginners may not know which corner of the system to enter these commands,
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)
MYSQL Command cmd operation, mysql Command cmd
Today, let's take a look at the various database commands. the following commands are all input from the command line in the CMD command window. First, if you enter mysql, the system prompts "mysql is
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
The MySQL tutorials and MySQL reference books that we see on the Web are usually the CMD commands and result sets.Perhaps some beginners do not know which corner of the system to enter these commands, or to start some MySQL tools, below teach you
We usually see mysql tutorials and mysql tool books on the Internet, which contain cmd commands and result sets.Some beginners may not know which corner of the system to enter these commands, or start some mysql tools. The following describes how to
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. *
A Chinese garbled solution occurs when you operate mysql Databases in CMD.
Baidu .. It is said that the chcp command is used to change the cmd character encoding to 65001 (utf8 character encoding). After that, Chinese characters cannot be entered,
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):
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 \
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.