RE: MYSQL DATABASE BACKUP

2002-03-19 Thread Barry L. Jeung

Yes. Setup replication and peform the backup on the slave. Provided this is your only 
purpose for having a slave, and there are no queries running on the slave, the specs 
can be a lot lower than your master/production machine.

-Original Message-
From: Kathy Reyes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:37 PM
To: mysql
Subject: MYSQL DATABASE BACKUP


 I am trying to backup a  table in mysql  without locking my tables it this
posible



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Hot Backups

2001-08-29 Thread Barry L. Jeung

First of all, I'd like to point to the documentation =]

http://www.mysql.com/doc/B/a/Backup.html

The other option not mentioned there but that another list member
suggested is the best way to backup a live database. The above two
methods work, but with larger databases, having the tables locked for
more than a few seconds while you back them up can cause timeouts.
Having a second machine with replication lets you back up the database
without this concern, and also gives you the benefit of having a server
to replace your primary server should it fail. Also note that if your
second server (replica) will never see production, then it can get by
with significantly lower machine requirements than any production server
since it won't be serving any queries or such. HTH
 -Original Message-
 From: Joshua J. Kugler [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 11:52 AM
 To: David Turner; Matthew Walker
 Cc: MySQL Mailling List
 Subject: Re: Hot Backups
 
 
 I'm doing a mysqldump and then backing up the resulting text 
 file.  Works 
 fine, doesn't interupt anything, and doesn't have any 
 problems with a live 
 server.  IIRC, mysqldump locks a table before it dumps, so 
 there won't be any 
 funny records.  Or course, mysqldump could catch the database 
 in the middle 
 of a multi-table backup.  But so can any live backup system.
 
 j- k-

 

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Update problem, or more likely and problem understanding how to do updates.

2001-05-11 Thread Barry L. Jeung

Ok, based on the given syntax from the mysql manual..

UPDATE [LOW_PRIORITY] [IGNORE] tbl_name
SET col_name1=expr1, [col_name2=expr2, ...]
[WHERE where_definition]
[ORDER BY ...]
[LIMIT #]

I've been trying to update some records in a test database I've been
playing with. I'm inexperienced with MySQL, so I'm hoping someone out
there can enlighten me. When trying to update more than one field at a
time, I get the following error:

ERROR 1064: You have an error in your SQL syntax near 'set Notes =
'Test' where ID ='1'' at line 1

I was trying to perform the following query to change the data below.

mysql select * from Pictures;
+++---+--+---+-+
+---++
| ID | Category   | Title | Filename | Submitter | Date_Posted |
Poster | Notes | Updated|
+++---+--+---+-+
+---++
|  1 | Animal Funnies | pic1  | 0001.jpg | Kiwi  | 2001-05-08  |
WRC| aaa  | 0105111248 |
|  2 | Animal Funnies | asdfa | 0002.jpg | dsoTm | 2001-05-10  |
BLJ|   | 0105111036 |
|  3 | Animal Funnies | test  | 0003.jpg |   | 2001-05-10  |
BLJ|   | 0105102219 |
+++---+--+---+-+
+---++

update Pictures set Date_Posted = '2001-05-09', set Notes = 'Test' where
ID ='1';

It looks syntatically correct according to the example in the manual,
but no matter which combination of fields I try and update, I get that
error. Single field updates for all fields works fine. The table is
defined as follows:
ID = mediumint(8) unsigned NOT NULL auto_increment
Category and Poster = enumerated.
Title, Filename, Submitter = varchar
Date_Posted = date
Notes = tinytext
Updated = timestamp

Please reply directly as I am not on the list. Thanks for your time.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php