Mysql creates a new user and assigns database permissions to the user

Mysql create new user

create user 'test'@'localhost' identified by 'password';

Assign database privileges to new users

grant all on testsql.* to test@localhost identified by 'password'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325850819&siteId=291194637