MySQL Basic Management
This guide will show you the basic MySQL command in adding database,users with password and also assign ownership/permission for a user to a database
mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 18
Server version: 10.3.13-MariaDB MariaDB Server
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 [database name];
grant all on [database name].* to '[database user]'@'%' identified by '[database user password]';
flush privileges;
quit;show databases;Last updated