Wednesday, 21 September 2022

Membuat database Moodle

 # mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 36
Server version: 10.3.36-MariaDB-0+deb10u1 Debian 10

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 DATABASE moodle;
Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]> CREATE USER 'usrmoodle'@'localhost' IDENTIFIED BY 'secret';
Query OK, 0 rows affected (0.020 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON moodle.* TO 'usrmoodle'@'localhost';
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]>

Share:

0 comments:

Post a Comment