Skip to content

Commit

Permalink
03
Browse files Browse the repository at this point in the history
  • Loading branch information
OluwaninsolaAO committed Mar 21, 2023
1 parent 5037111 commit d5f844a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup_mysql_dev.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Create the hbnb_dev_db database if it does not already exist
CREATE DATABASE IF NOT EXISTS hbnb_dev_db;

-- Create the hbnb_dev user if it does not already exist
CREATE USER IF NOT EXISTS 'hbnb_dev'@'localhost' IDENTIFIED BY 'hbnb_dev_pwd';

-- Grant all privileges to hbnb_dev user on hbnb_dev_db database
GRANT ALL PRIVILEGES ON hbnb_dev_db.* TO 'hbnb_dev'@'localhost';

-- Grant select privilege to hbnb_dev user on performance_schema database
GRANT SELECT ON performance_schema.* TO 'hbnb_dev'@'localhost';

0 comments on commit d5f844a

Please sign in to comment.