idatt2103_databaser/ov2/db_setup.txt

28 lines
914 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mysql -u root -p [12:32:35]
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 10.9.2-MariaDB Arch Linux
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE USER 'idatt2103'@'localhost' IDENTIFIED BY 'idatt2103';
Query OK, 0 rows affected (0.051 sec)
MariaDB [(none)]> CREATE DATABASE oving2;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON oving2.* TO 'idatt2103'@'localhost';
Query OK, 0 rows affected (0.011 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> quit
Bye
>>> elapsed time 4m51s