forked from justinmajetich/AirBnB_clone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5037111
commit d5f844a
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |