SQL DATABASE creation along with user

Enter password: ****
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 8.0.18 MySQL Community Server - GPL

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE sstb2b;
Query OK, 1 row affected (0.01 sec)

mysql> CREATE USER 'innkeeper'@'localhost' IDENTIFIED BY 'jobsdone';
Query OK, 0 rows affected (0.02 sec)

mysql> GRANT ALL PRIVILEGES ON sstb2b.* TO 'innkeeper'@'localhost' ;
Query OK, 0 rows affected (0.01 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> ALTER USER 'innkeeper'@'localhost' IDENTIFIED WITH mysql_native_password BY 'jobsdone';
Query OK, 0 rows affected (0.03 sec)

Comments

Popular Posts