OpenApp Mysql

From Openpanel Documentation Wiki
Jump to: navigation, search


Contents

What does OpenApp Mysql include?

OpenApp Mysql consists of the following software:

Installing OpenApp Mysql

apt-get install OpenApp-mysql
openpanel-cli "update user password=<your password>"

Updating OpenApp Mysql

OpenApp will run apt-get update and apt-get dist-upgrade every night if you enable it in the 'Upgrades'-tab. That will upgrade all the software on the machine and may install new packages when needed.

Backing up OpenApp Mysql

When you configure backups via OpenPanel, OpenApp-backup will run daily/weekly/montly and leave a executable file in /var/backups/. To restore from this file, please read about OpenApp-backup. In addition to other OpenApp installs, OpenApp-mysql can use xtrabackup. This is useful when you have large (InnoDB) databases that you want to backup. Because xtrabackup doesn't dump the databases like mysqldump does, you do not suffer from locking of large table. To use xtrabackup, you must install it manually. Please see the instructions on the instructions on the Percona website. After you configured the sources of Percona's xtrabackup, type:

apt-get install openapp-xtrabackup

When apt-get is done, you can configure it in the Mysql-tab. OpenApp-backup will then automatically start using it.

Building an image

To build an image for OpenApp Mysql (so that you have pre-configured everything for your user) take the following steps:

echo "<password>" | OpenApp-mysql-passwd stdin
/var/openpanel/tools/OpenApp-smtp-configure-postfix "<hostname of the machine>" "<true|false smarthost>" "<smarthost, if former value is true>" "<admin emailaddress>"
openpanel-cli "update user password=<password>"
Personal tools
Namespaces
Variants
Actions
Documentation
Tools
Toolbox