Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gentoo:mysql [2024/03/12 13:55] – willy | gentoo:mysql [2025/03/13 13:24] (current) – [MariaDB / MySQL] willy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== MariaDB / MySQL ====== | + | ====== |
| [[https:// | [[https:// | ||
| Line 37: | Line 37: | ||
| It's a good idea to create a separated database and user for each service you are oging to use with MariaDB. These instructions are not exaustive but only a quick reference: | It's a good idea to create a separated database and user for each service you are oging to use with MariaDB. These instructions are not exaustive but only a quick reference: | ||
| + | |||
| + | **Login to the MariaDB** | ||
| + | <code bash> | ||
| + | mysql -u root -p -h localhost | ||
| + | </ | ||
| + | |||
| + | **Creating a database with user** | ||
| + | < | ||
| + | create database DATABASE_NAME; | ||
| + | grant all privileges on DATABASE_NAME.* TO ' | ||
| + | flush privileges; | ||
| + | </ | ||