Skip to content

Commit

Permalink
Added MySQL setup steps
Browse files Browse the repository at this point in the history
  • Loading branch information
malee31 committed Jan 29, 2024
1 parent 290af29 commit 8734e11
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions setup/setup-mysql.sql
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

0 comments on commit 8734e11

Please sign in to comment.