Mysql start service create user command

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
Insert picture description here

net stop mysql  //停止服务
net start mysql //启动服务

2. User operation of the database

The administrator login is:

mysql -u root -p之后输入密码

Insert picture description here
Create a new user:

creat user 'username'@'host' inentified by 'password';

Insert picture description here
Give users permissions

User login:

mysql -u name -p  //name为用户名字
password         //password为用户密码
3. Create a database

Use create to create a library:

create database;

Guess you like

Origin blog.csdn.net/xinzhilinger/article/details/109059468