How to Stop Runaway Query (automatically)?

2006-03-08 Thread Henry Chang
Hello Everyone, I am discovering that my MySQL server tends to get locked up by runaway queries, that are continuously sending data. Even after all night long. (The origin of these queries is from report development.) Without having to kill each connection manually on the MySQL server, is there

How to Find the Max/Min from Multiple Columns (in each row)

2006-02-02 Thread Henry Chang
Hello everyone, I have a table where measurement values are collected in mulitple columns. Table Schema == ID, measurement_01, measurement_02, measurement_03 == 1, 300, 350, 325(max is 350, min is 300) 2, 225,

Total Sum of Monthly Counts for Older MySQL 4.0.22 (Please Help)

2005-07-27 Thread Henry Chang
Hello MySQL users, Currently, I use MySQL 4.0.22 and I can do a straightforward count of employees hired for each month. select employee_hire_date, count(employee_id) from table_employee where employee_hire_date between 2005-01-01 and 2005-4-30 group by month(employee_hire_date) Date |

eBay: Sold on Grid (database array)

2004-09-17 Thread Henry Chang
I like to share with you all, an interesting article about eBay's deployment of database arrays. http://www.eweek.com/article2/0,1759,1640234,00.asp Specifically on page 2, Marty Abbott (eBay's VP of Technology) states that eBay has four equal data centers. So in this array scheme, a write

How to Fix Broken Replication

2004-06-14 Thread Henry Chang
I have MySQL replication setup between Master A and Slave B. Everything was working fine, until one day replication was broken. Status on the slave shows the following error message: Last_error: Error 'Can't drop database X. Database doesn't exist' on query 'DROP DATABASE X. I suspect

RE: How to Fix Broken Replication

2004-06-14 Thread Henry Chang
; Good luck. John A. McCaskey -Original Message- From: Henry Chang [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 3:34 PM To: [EMAIL PROTECTED] Subject: How to Fix Broken Replication I have MySQL replication setup between Master A and Slave B. Everything was working fine, until one

What is Frequency of Master Binlog Dump to Slave

2004-03-22 Thread Henry Chang
I got MySQL replication working in master-slave configuration. It's really cool, but how often does the master send binlog dump to the slave. The implication is if the master crashes, what would be the potential data gap in the slave?? -- MySQL General Mailing List For list archives:

Newbie Confused with Update involving Multiple Tables

2004-02-18 Thread Henry Chang
I am truly frustrated with what should be a simple update. Any help to enlighten this newbie is appreciated. [TABLE A] tdmr_dmr dmr_customer_code dmr_job_number_code [TABLE B] tjl_job_list jl_customer_code jl_jobnumber In Table A, the dmr_customer_code

re: Newbie Confused with Update involving Multiple Tables

2004-02-18 Thread Henry Chang
Thanks for the reply!! IndeedI am using version 3.23.58. I can stop pounding my head against the wall now. Thanks again!! *** REPLY SEPARATOR *** On 2/19/2004 at 2:10 AM Jeremy March wrote: http://www.mysql.com/doc/en/UPDATE.html I believe multi-table updates weren't