Skip to content

Commit c1e1e6d

Browse files
committed
add set-up for MySQL
1 parent 43006e8 commit c1e1e6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup_mysql_dev.sql

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- prepares a MySQL server for the project
2+
3+
CREATE DATABASE IF NOT EXISTS hbnb_dev_db;
4+
CREATE USER IF NOT EXISTS 'hbnb_dev'@'localhost' IDENTIFIED BY 'hbnb_dev_pwd';
5+
GRANT ALL PRIVILEGES ON `hbnb_dev_db`.* TO 'hbnb_dev'@'localhost';
6+
GRANT SELECT ON `performance_schema`.* TO 'hbnb_dev'@'localhost';
7+
FLUSH PRIVILEGES;

0 commit comments

Comments
 (0)