Create/drop user in mysql
##Contributed by - Vasudeva Rao Create user in mysql:
mysql configurationintermediate
by MYSQL
13 views
##Contributed by - Vasudeva Rao Create user in mysql:
1234567891011121314
mysql>
CREATE USER 'test_user'@'%' IDENTIFIED BY 'test_user';
Query OK, 0 rows affected (0.02 sec)
mysql>
GRANT ALL ON *.* TO 'user'@'localhost';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]>
SHOW CREATE USER 'test_user'@'%';
MariaDB [(none)]>
CREATE USER 'test_user2'@'localhost' IDENTIFIED BY 'test_user' PASSWORD EXPIRE;
Query OK, 0 rows affected (0.004 sec)
MariaDB [(none)]>
drop user 'test_user'@'localhost';
Query OK, 0 rows affected (0.009 sec)Please to add comments
No comments yet. Be the first to comment!