Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:server:services:mariadb [2022/10/24 08:24] – external edit 127.0.0.1 | en:server:services:mariadb [2023/02/14 21:42] (current) – [Check/update database] switched to mariadb-* instead of mysql* dan | ||
---|---|---|---|
Line 101: | Line 101: | ||
===== Backup database ===== | ===== Backup database ===== | ||
- | You can dump all databases with the following command '' | + | You can dump all databases with the following command '' |
- | '' | + | |
Or use the following script, which contains: | Or use the following script, which contains: | ||
Line 188: | Line 187: | ||
- upgrade the package(s) | - upgrade the package(s) | ||
- restart the daemon | - restart the daemon | ||
- | - run mysql_upgrade | + | - run mariadb-upgrade |
< | < | ||
Line 195: | Line 194: | ||
< | < | ||
- | mysql_upgrade | + | mariadb-upgrade |
</ | </ | ||
To check all tables in all databases: | To check all tables in all databases: | ||
< | < | ||
- | mysqlcheck | + | mariadb-check |
</ | </ | ||
To analyze all tables in all databases: | To analyze all tables in all databases: | ||
< | < | ||
- | mysqlcheck | + | mariadb-check |
</ | </ | ||
To repair all tables in all databases: | To repair all tables in all databases: | ||
< | < | ||
- | mysqlcheck | + | mariadb-check |
</ | </ | ||
To optimize all tables in all databases: | To optimize all tables in all databases: | ||
< | < | ||
- | mysqlcheck | + | mariadb-check |
</ | </ | ||
Line 221: | Line 220: | ||
< | < | ||
systemctl restart mariadb.service | systemctl restart mariadb.service | ||
- | mysql_upgrade | + | mariadb-upgrade |
- | mysqlcheck | + | mariadb-check |
- | mysqlcheck | + | mariadb-check |
- | mysqlcheck | + | mariadb-check |
- | mysqlcheck | + | mariadb-check |
</ | </ |