Re: Doubt regarding Mysqlsump

2011-06-07 Thread mark carson
Hi

We use the --single-transaction switch thinking it does less locking or waiting
for a required table lock. You then get a snapshot without stopping.

Subject should have included the word 'hot'? Looking forward to other 
suggestions.

Mark

On 2011/06/07 08:00, Adarsh Sharma wrote:
 Dear all,
 
 Is it possible to take backups of a table or complete database without 
 stopping
 the application that continuously inserts and select data from the tables.
 
 For taking complete backup of a database I follow the below steps :-
 
 1. First stop the application that insert  modifies tables.
 2. Mysqldump command to backup the tables.
 3. After complete backup , start the application.
 
 I know Mysql-Replication helps a lot to solve this issue but I have not any
 extra server to configure it.
 
 So , Can I solve this issue without Replication so that I don't need to stop 
 my
 application  I must have consistent backups too.
 
 Please note that size of databases may be more than 100GB
 
 
 Thanks
 

-- 
Mark Carson
Managing
Integrated Product Intelligence CC (CK95/35630/23)
EMail : mcar...@ipi.co.za/ (secondary:mcar...@pixie.co.za)
Physical Address : 34 Spanish Galliard, Mooikloof, Pretoria, South Africa
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Tel. +27 12 996 1193/1815 Fax : +27 86 672 7012 Cell : +27 83 260 8515


This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



SQL help/problem with timestamped data differences

2008-01-08 Thread mark carson

Hi All

I have the following data example
UID   Timestamp
123456 20071201 12:00:01
123456 20071201 12:00:06
987654 20071201 12:00:01
987654 20071201 12:00:09
etc

I need :
UID   Timestamp secs
123456 20071201 12:00:01  
123456 20071201 12:00:06  0005
987654 20071201 12:00:01  
987654 20071201 12:00:09  0008

or similar solution. I am using version 5.0 and willing to use interim 
tables or any SQL based technique.


Thanks in advance

Mark

--
Mark Carson
Managing
Integrated  Product Intelligence CC
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515


This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: How to migrate from MySQL 3 to MySQL 5 (installed from sources)

2007-11-07 Thread mark carson

Hi All

Make sure you use the mysqldump from version 5 and not version 3. Also 
recheck all your application queries once you have restored the data the 
list of changes SQL syntax might haunt you.


Mark

thomas Armstrong wrote:

Hi Tiago. Thank you very much for your answer.

  

I decided to migrate to MySQL 5.0, and I've got some questions:
- I installed MySQL from sources on '/usr/local/mysql'. Is it as easy
as installing it again on '/usr/local/mysql5'?
  

Yep. Just change the '--prefix' com './configure' time.



ok

  


- what must I back up to migrate data? '/usr/local/mysql/var' directory?
- is there any tutorial/webpage to carry out this migration?
  

I would like to suggest that you do one dump on old database, stop the
old and restore on newer database.

Just copy the datafiles can work on small upgrades (mysql 3 - 4) but I
don't know what is the problem of this, I prefer the basic: dump and
restore.



So you're suggesting to:
- install MySQL 5 from sources on '/usr/local/mysql5' without starting it
- dump data from MySQL 3
- stop MySQL 3
- start MySQL 5
- restore data in MySQL 5
- delete MySQL 3
is it right?

  



  


--
Mark Carson
Managing
Integrated  Product Intelligence CC
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515


This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: How to migrate from MySQL 3 to MySQL 5 (installed from sources)

2007-11-07 Thread mark carson
Never tried it with version 3 only 4.1 but it has a --compatible switch 
with a version 3.23 switch see command line --help so I assume the mysql 
guys are allowing you to dump 3.23. Try dumping it without the switch as 
you will be restoring to 5.0. The idea is to make sure the restore is 
done using a version 5 compatible dump.


Keep us posted.


thomas Armstrong wrote:

Make sure you use the mysqldump from version 5 and not version 3. Also
recheck all your application queries once you have restored the data the
list of changes SQL syntax might haunt you.



But can I use '/usr/local/mysql5/bin/mysqldump' to dump data of MySQL 3?

  


--
Mark Carson
Managing
Integrated  Product Intelligence CC
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515


This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Borland C++ Builder 2006 DLL Woes

2007-02-18 Thread mark carson
We have settled on the ado.net connector www.mysql.com after dbExpress 
pains. Although apparently dbExpress does work.

What BDS 2006 service pack are you on? Keep us all posted if you solve it.

Mark

[EMAIL PROTECTED] wrote:
We just purchased The Borland Developer Studio 2006 IDE and are having 
significant problems using dbExpress objects to communicate with MySQL 
servers (both 4 and 5). Curiously, we can perform inserts but not selects, 
even though identical code in C++ Builder 6 worked just fine. The DLL in 
C++ Builder 2006 is dbxmys30.dll. Anybody having similar issues?


Thanks,

David

David P. Giragosian, Psy.D.
Database and Software Developer
MD Anderson Cancer Center
Houston, TX
713-792-7898
  


--
Mark Carson
2Lend Business Unit Manager
2Cana Solutions (Pty) Ltd
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515
Tel : +27 12 665 3901
Fax : +27 12 665 2113

This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: mysql process 99.9 percent

2005-09-26 Thread mark carson

Hi

Most readers in this list expect OS and MySQL server information etc 
before responding.


In our experience this is usually caused by poor SQL query construction 
e.g. large result set e.g. x million rows and/or index choice, database 
table design and/or MySQL server setup.


Turn-on logging, rerun selected queries with and without the explain 
syntax, look at the MySQL administrator process list to see which query 
is the problem whilst the CPU is 99.9 %.


Good news is : 'it is solvable'.

Mark

Joeffrey Betita wrote:

hi
  do you have any idea why the mysql process is 99.9 percent? when i click
one hyperlink it takes more than 1 minute to load the page. thank you very
much.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.6/111 - Release Date: 9/23/2005


  


--
Mark Carson
Managing
Integrated Product Intelligence/IPI CC CK 95/35630/23
Members : MH Carson and AG Carson
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515
Tel : +27 12 349 2786 
Fax : +27 12 349 2787


This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED AS IS WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]