Quantcast
Viewing all articles
Browse latest Browse all 18769

Installing MySQL Enterprise Backup to Generic Linux

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

The MySQL Enterprise Backup is a very powerful backup tool from MySQL. By using MEB, you can always take a hot and fast backup of all your MySQL Databases. I've been using it in Oracle Linux platform but just recently I have this need to use it in our Ubuntu production servers. I've tried installing it to Ubuntu 11.04 and have no problem at all. Here's what you need to do to get this done.

1. Download the files from http://edelivery.oracle.com. You need to have an account to download one.
2. Transfer it to the server using SCP or WinSCP if you are using windows or any other type of file transfer client.
3. SSH to your server and login as root.
4. Unzip the file to your preferred location. I recommend to use the default location the MEB is using at /opt/mysql/ directory.
5. Edit ~/.bashrc and add below lines

export PATH=/opt/mysql/meb-3.7:$PATH
6. execute source ~/.bashrc

And your done with the installation. Next is to create a backup user to your MySQL database and grants the required permissions.

Login to your mysql database and execute below. You can also save this to a .sql file and source it from your mysql.

GRANT RELOAD ON *.* TO dba@localhost;
GRANT CREATE, INSERT, DROP ON mysql.ibbackup_binlog_marker TO dba@localhost;
GRANT CREATE, INSERT, DROP ON mysql.backup_progress TO dba@localhost;
GRANT CREATE, INSERT, DROP ON mysql.backup_history TO dba@localhost;
GRANT REPLICATION CLIENT ON *.* TO dba@localhost;
GRANT SUPER ON *.* TO dba@localhost;
GRANT CREATE TEMPORARY TABLES ON mysql.* TO dba@localhost;
FLUSH PRIVILEGES;

Now, try to execute mysqlbackup from the shell to see if mysqlbackup command is already in effect.

To effectively use this command, you will need to create scripts and add to your cron jobs and schedule your backup to your desired date and time.



Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

PlanetMySQL Voting: Vote UP / Vote DOWN

Viewing all articles
Browse latest Browse all 18769

Trending Articles