Answers for "mysql add user with password"

SQL
13

mysql add user with all privileges

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
Posted by: Guest on January-02-2020
1

mysql set password for user

# `SET PASSWORD FOR <user> = PASSWORD('<plaintext_password>')` is deprecated
SET PASSWORD FOR <user> = '<plaintext_password>';
FLUSH PRIVILEGES;
Posted by: Guest on July-08-2020
5

create user mysql

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Posted by: Guest on April-19-2020

Code answers related to "mysql add user with password"

Code answers related to "SQL"

Browse Popular Code Answers by Language