Ask a Question related to MySQL, Design and Development.
-
Stephane M #1
MySQL - saving data
Hello, just another questions
I have 3 databased : A, B, C
I can find these 3 databases into /var/lib/mysql/
(3 folders and 2 Ib_log files and a file called : mysql.sock)
If I save only these 3 folders ? should it be enough to recover it in case
of crash ?
THanks for your help
Stephane M Guest
-
saving data from a w3d game
hey fellow lingo-ists, I would like to save the data from a first-person shooter game, i.e. player location, speed, etc. while I play the game. ... -
saving data from .FSO
Hi all, I am also looking for similar thing, a simple FSO file reader, something like the SharedObject Reader (SOL) written by Alessandro at... -
saving data in XML
hi, i?m using a model to load a xml file and I?m using a data grid do show this model data. I created a for to insert new rows in the data... -
Saving data between sessions
Is it possible to save session values between pages? I did a little script to let the users login. I use this script to check username and password... -
Saving data to an XML file???
Is it possible to save data to an XML file? I thought there was but can't seem to find anything to do it. I can read XML data fine, just no way of... -
Bill Karwin #2
Re: MySQL - saving data
Stephane M wrote:
This is not a safe or reliable way of backing up the data. As Peter> I can find these 3 databases into /var/lib/mysql/
> (3 folders and 2 Ib_log files and a file called : mysql.sock)
>
> If I save only these 3 folders ? should it be enough to recover it in case
> of crash ?
Coffin points out, you should use the mysqldump tool that comes with MySQL.
The reason copying the files is not reliable is that the MySQL server
may keep some data in memory, not yet written to disk. If you copy the
files, you may get an incomplete version of the database. Maybe not
this time, but sometimes you will.
Use mysqldump; it is designed to get all the data correctly. Basically,
I agree fully with Peter, I just want to reinforce the recommendation. :)
There is no need to back up the log files or the mysql.sock file, to
recover databases.
Regards,
Bill K.
Bill Karwin Guest



Reply With Quote

