Author Topic: Problem With MySql Backup  (Read 2873 times)

Offline sikwel

  • Newbie
  • *
  • Posts: 2
Problem With MySql Backup
« on: July 11, 2011, 03:45:43 AM »
Hello,
i have a problem, with roundcube DB.
Mysql service is Broken, and i dont' get the Backup with dump

i save the Folder /var/lib/mysql/roundcube

but when i copy this backup on new server
mysql say roundcube.xxxxx not exist

on the folder i have 8 tables .frm
no .MYD or MYI

ps.
sorry for my english

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Problem With MySql Backup
« Reply #1 on: July 11, 2011, 04:25:14 AM »
afaik you can't back mysql by simply copying the data files, you should use mysqldump
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline sikwel

  • Newbie
  • *
  • Posts: 2
Problem With MySql Backup
« Reply #2 on: July 11, 2011, 12:08:21 PM »
Ok, But the old server have a problem on the service MySql
so, i can't do mysqldump because the service can't Start !

but i can read the folder /var/lib/mysql/roundcube
i dont take this for replace data in the new db ????
« Last Edit: July 14, 2011, 02:38:01 AM by sikwel »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Problem With MySql Backup
« Reply #3 on: July 15, 2011, 05:42:50 AM »
i think you are better off asking the mysql community about this, as i said i've never tried it but i dont think you can just move the files like that.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

adumpaul

  • Guest
Problem With MySql Backup
« Reply #4 on: November 01, 2011, 03:59:20 AM »
To backup your MySQL database using PHPMyAdmin just follow a couple of steps:
    * Open phpMyAdmin.
    * Select your database by clicking the database name in the list on the left of the screen.
    * Click the Export link. This should bring up a new screen that says View dump of database (or something similar).
    * In the Export area, click the Select All link to choose all of the tables in your database.
    * In the SQL options area, click the right options.
    * Click on the Save as file option and the corresponding compression option and then click the 'Go' button. A dialog box should appear prompting you to save the file locally.