-
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
Showing
1 changed file
with
19 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,19 @@ | ||
-- Sample commands for creating the database used by the project | ||
-- IMPORTANT: Before copy-pasting, make the following substitutions manually or with Find-and-Replace (without the quotes): | ||
-- INSERT_DATABASE_NAME_HERE - Replace with 'timesheet_server' or a custom name for the MySQL database | ||
-- INSERT_API_USER_NAME_HERE - Replace with 'timesheet-api' or a custom MySQL username for the project to use | ||
-- INSERT_API_USER_PASSWORD_HERE - Replace with 'The-password-4-the-timesheet-api-user' or a custom password for the MySQL user | ||
|
||
|
||
-- Run the following as a MySQL superuser like `mysql` or `root` to create the database | ||
CREATE DATABASE `INSERT_DATABASE_NAME_HERE`; | ||
|
||
-- Run the following to create the new MySQL user | ||
CREATE USER 'INSERT_API_USER_NAME_HERE'@'localhost' IDENTIFIED BY 'INSERT_API_USER_PASSWORD_HERE'; | ||
|
||
-- Add permissions to: | ||
-- Create/Delete Tables | ||
-- Select from Tables | ||
-- Insert to Tables | ||
-- Update to Tables | ||
-- Delete from Tables |