1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-23 21:27:40 +00:00

Update Mysql.sh add create user command

This commit is contained in:
nicolasDonkey 2021-05-13 12:38:31 +02:00 committed by GitHub
parent 5afbb2dd0f
commit a37345dc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,3 +8,5 @@ mysql -u username -p database_name < file.sql # Import d
SHOW PROCESSLIST; # Show you any queries that are currently running or in the queue to run
GRANT ALL PRIVILEGES ON prospectwith.* TO 'power'@'localhost' WITH GRANT OPTION; # Grant all privileges on database
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; # Create user