Preface
Sql is a special purpose programming language, a database query and programming language, used to access data and query, update and manage relational database systems.
Main command
1. Start and close the service
Note that administrator rights may sometimes be required
net stop mysql //停止服务
net start mysql //启动服务
2. User operation of the database
The administrator login is:
mysql -u root -p之后输入密码
Create a new user:
creat user 'username'@'host' inentified by 'password';
Give users permissions
User login:
mysql -u name -p //name为用户名字
password //password为用户密码
3. Create a database
Use create to create a library:
create database;