Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| mysql [2019/03/09 10:26] – [Get environmet] admin | mysql [2019/03/28 13:50] (current) – [Manually create a backup] dani | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| - Check for the database data directory:< | - Check for the database data directory:< | ||
| - Check, if the binlog option is enabled:< | - Check, if the binlog option is enabled:< | ||
| - | - Amount of data:< | + | - Amount of data:< |
| - Socket:< | - Socket:< | ||
| - Network port:< | - Network port:< | ||
| Line 42: | Line 42: | ||
| gzip -cd daily_< | gzip -cd daily_< | ||
| </ | </ | ||
| + | |||
| + | ===== Manually create a backup ===== | ||
| + | In case, you have to create a backup manually (without automysqlbackup script), you can do it like this: | ||
| + | |||
| + | * Using '' | ||
| + | mysqldump --all-databases -q | gzip -c > mysql-20100212.sql.gz | ||
| + | </ | ||
| + | * Using '' | ||
| + | mysqldump --all-databases -q | bzip2 -c > mysql-20100212.sql.bz2 | ||
| + | </ | ||
| + | |||
| + | |||
| ===== Update a user password ===== | ===== Update a user password ===== | ||
| In this example, the password for the MySQL user root will be updated for following hosts: '':: | In this example, the password for the MySQL user root will be updated for following hosts: '':: | ||