xxxxxxxxxx
sudo apt update
sudo apt upgrade
#install and download maria-server in linux
sudo apt install mariadb-server
#configure maria-server in linux
sudo mysql_secure_installation
sudo mysql
#See all users in mysql
-- User only:
SELECT User FROM mysql.user;
-- User + Host:
SELECT host, user FROM mysql.user;
#create new user in mysql with databse
CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'password';
#Give all privileges to new user
GRANT ALL PRIVILEGES ON * . * TO 'new_user'@'localhost';