-
Notifications
You must be signed in to change notification settings - Fork 292
Added User MySQL Database Server
Kamil Jarmusik edited this page May 23, 2024
·
4 revisions
- Creating a new database for the application, login as root and execute query:
CREATE DATABASE IF NOT EXISTS scadalts;
- Creating e new user, loign as root and execute queries:
USE scadalts;
CREATE USER IF NOT EXISTS '<mysql-username>'@'<mysql-host>' IDENTIFIED BY '<mysql-password>';
GRANT ALL ON scadalts.* TO '<mysql-username>'@'<mysql-host>';
FLUSH PRIVILEGES;
- Example:
USE scadalts;
CREATE USER IF NOT EXISTS 'scadalts_user'@'localhost' IDENTIFIED BY 'scadalts_pass';
GRANT ALL ON scadalts.* TO 'scadalts_user'@'localhost';
FLUSH PRIVILEGES;