HOWTO : Create a normal user on MySQL and MariaDB
Using a root account on the web applications as user is risky. It is more secure to create a normal user for the web applications.
Step 1 :
*where
Step 2 :
Step 3 :
*where
That's all! See you.
Step 1 :
mysqladmin -u samiux -p create mydatabase*where
samiux is the normal username and mydatabase is the name of the database of the web applicationsStep 2 :
mysql -u root -pStep 3 :
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON mydatabase.* TO 'samiux'@'localhost' IDENTIFIED BY 'mypassword';*where
mypassword is the password of the user samiuxThat's all! See you.