Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gentoo:mysql [2024/03/12 13:52] – created willy | gentoo:mysql [2025/03/13 13:24] (current) – [MariaDB / MySQL] willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MariaDB / MySQL ====== | + | ====== |
[[https:// | [[https:// | ||
Line 22: | Line 22: | ||
<code bash> | <code bash> | ||
emerge --config dev-db/ | emerge --config dev-db/ | ||
+ | </ | ||
+ | |||
+ | Input and **remember** your root password! | ||
+ | |||
+ | ===== Startup ===== | ||
+ | |||
+ | Start the service and set it on boot: | ||
+ | <code bash> | ||
+ | rc-update add mysql default | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===== Management ===== | ||
+ | |||
+ | 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; | ||
</ | </ | ||