-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Showing
1 changed file
with
3 additions
and
3 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-- cat create_mysql.sql | sudo mysql | ||
-- | ||
DROP USER 'php-crud-api'@'localhost'; | ||
DROP DATABASE `php-crud-api`; | ||
DROP USER IF EXISTS 'php-crud-api'@'localhost'; | ||
DROP DATABASE IF EXISTS `php-crud-api`; | ||
-- | ||
CREATE DATABASE `php-crud-api` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; | ||
CREATE USER 'php-crud-api'@'localhost' IDENTIFIED BY 'php-crud-api'; | ||
GRANT ALL PRIVILEGES ON `php-crud-api`.* TO 'php-crud-api'@'localhost' WITH GRANT OPTION; | ||
FLUSH PRIVILEGES; | ||
FLUSH PRIVILEGES; |