MySql backup

MySql

MySql backup


jake1164 09-11-2005, 7:17 AM

I am trying to create an automated backup of my database. I found that the most recommended way to do this was use mysqldump.  I have version 4.1x of mysql installed on my local computer. I tried to use the following command to create a backup:

mysqldump -u<UserName> -p<PassWord> -h<WH4L Server IP Host> DBName > test.txt

 

And it creates the following text file:

 

-- MySQL dump 10.9
--
-- Host: <MWH4L IP>    Database: MYDB
-- ------------------------------------------------------
-- Server version 4.0.24-nt-max
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

 

but no tables or data.

Anybody have any clues what I am doing wrong or have any suggestions?

 

Thanks,

-J

Re: MySql backup


vinyl-junkie 09-27-2005, 9:16 PM

When you say automated, are you talking about a backup process that would run say, once a week or something? I could be wrong, but I don't believe WebHost4Life has scheduled job capability (also called a cron job).

Regarding your database backup, you can easily do that using phpMyAdmin, which is available through the WebHost4Life control panel. It is far easier than using mysqldump. :)


http://www.techtipscentral.net/CDTrusteeIntro.asp - Showcase your
music collection on your website.

Re: MySql backup


jake1164 10-01-2005, 9:25 AM

I have used and make some backups using the myadmin screen via the WH4L panel and it works on demand. I however want something that is automated.. Say run every night at midnight (just to throw an example out) to backup all the live data in case of something bad happening. I know that WH4L does not support anything like this currently, but there must  be some way I can back up a mysql database to a remote drive (my server on my network for instance)?

 

 

Re: MySql backup


admin 10-01-2005, 12:41 PM
You can ask support staff to setup daily backup for you and you can use FTP to sync it to your HD.  Setting this up is $19.95 a year.
webhost4life.com

Powered by Community Server, by Telligent Systems