Skip to content

Commit

Permalink
feat: add basic create user queries to database section
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Dec 30, 2024
1 parent 6cb74d8 commit 11806b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/1.getting-started/2.requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,13 @@ SHOW TABLE STATUS;
#### Changing the database, table, column Collation

I personally have used [How to easily convert utf8 tables to utf8mb4 in MySQL 5.5 - Database Administrators Stack Exchange](https://dba.stackexchange.com/a/104866), **but**, as pointed out by the comments, with `SET foreign_key_checks = 0;` before you would run the generated queries and `SET foreign_key_checks = 1;` after you ran the generated queries.

#### Creating Database User

These are sample queries to create a database user named `fivenet` with "full" access to the database (`database_name`).
You are expected to change the password in the first query and specify the right database name in the `GRANT` query second line.

```sql
CREATE USER 'fivenet'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON 'database_name'.* TO 'fivenet'@'%';
```

0 comments on commit 11806b7

Please sign in to comment.