Welcome to Webhost4life Forum Sign in | Join | Faq

MySql

Started by jake1164 at 09-11-2005 7:17 AM. Topic has 3 replies.

Print Search
Sort Posts:    
   09-11-2005, 7:17 AM
jake1164 is not online. Last active: 1/22/2007 9:02:28 PM jake1164

Top 50 Posts
Joined on 09-05-2005
Posts 5
MySql backup
Reply Quote

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


   Report 
   09-27-2005, 9:16 PM
vinyl-junkie is not online. Last active: 11/24/2005 6:07:22 AM vinyl-junkie

Top 100 Posts
Joined on 09-28-2005
Federal Way, WA (USA)
Posts 3
Re: MySql backup
Reply Quote

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.
   Report 
   10-01-2005, 9:25 AM
jake1164 is not online. Last active: 1/22/2007 9:02:28 PM jake1164

Top 50 Posts
Joined on 09-05-2005
Posts 5
Re: MySql backup
Reply Quote

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)?

 

 


   Report 
   10-01-2005, 12:41 PM
admin is not online. Last active: 9/3/2008 8:45:11 AM admin

Top 10 Posts
Joined on 08-10-2005
Posts 226
Re: MySql backup
Reply Quote
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.
   Report 
Webhost4life Fo... » Database Relate... » MySql » Re: MySql backup

Powered by Community Server, by Telligent Systems