Windows10 and MySQL use

MySQL 5.7

New users

Directly insert into user command error.
Some fields mysql user table can not be empty, with no default, in fact, operator error, mysql add this user is not directly insert user table.
The following command will add a user specified database TUTORIALS zara, password zara123.

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
    -> ON TUTORIALS.*
    -> TO 'zara'@'localhost'
    -> IDENTIFIED BY 'zara123';

MySQL Management

Check the command line coding by the client for MySQL:

show variables like '%char%';

Guess you like

Origin www.cnblogs.com/daemonFlY/p/10995293.html
Recommended