Re: strange mysql update ..

2011-09-09 Thread Derek Downey
Try searching for a row that has a login_date of '-00-00 00:00:00' - Derek On Sep 9, 2011, at 8:52 AM, umapathi b wrote: > Any update from anybody ? > > > -- Forwarded message -- > From: umapathi b > Date: Thu, Sep 8, 2011 at 4:28 AM > Su

Fwd: strange mysql update ..

2011-09-09 Thread umapathi b
Any update from anybody ? -- Forwarded message -- From: umapathi b Date: Thu, Sep 8, 2011 at 4:28 AM Subject: Re: strange mysql update .. To: Ananda Kumar Cc: mysql@lists.mysql.com Here is the o/p after the update .. user_id: 16078845 drivers_license

Re: strange mysql update ..

2011-09-08 Thread Suresh Kuna
. instead of where I used and ) > > update user_info set login_date='2011-08-05 04:15:05' where user_id > > =16078845 limit 1 ; ( this is the query intended ) > > > > after the update ..I got this message .. > > mysql> update user_info set login_date=&#

Re: strange mysql update ..

2011-09-08 Thread Rik Wasmus
:15:05' where user_id > =16078845 limit 1 ; ( this is the query intended ) > > after the update ..I got this message .. > mysql> update user_info set login_date='2011-08-05 04:15:05' and user_id > =16078845 limit 1; > Query OK, 1 row affected, 1 warning (0.02 sec) >

Re: strange mysql update ..

2011-09-08 Thread umapathi b
> =16078845 >> limit 1 ; >> ( I forgot to use where . instead of where I used and ) >> update user_info set login_date='2011-08-05 04:15:05' where user_id >> =16078845 limit 1 ; ( this is the query intended ) >> >> after the update ..I got this message .. >

Re: strange mysql update ..

2011-09-08 Thread Ananda Kumar
5 04:15:05' and user_id =16078845 > limit 1 ; > ( I forgot to use where . instead of where I used and ) > update user_info set login_date='2011-08-05 04:15:05' where user_id > =16078845 limit 1 ; ( this is the query intended ) > > after the update ..I got this message

strange mysql update ..

2011-09-08 Thread umapathi b
after the update ..I got this message .. mysql> update user_info set login_date='2011-08-05 04:15:05' and user_id =16078845 limit 1; Query OK, 1 row affected, 1 warning (0.02 sec) Rows matched: 1 Changed: 1 Warnings: 0 It shows that one record is affected and one row changed .. I

Re: mysql update

2010-01-22 Thread Krishna Chandra Prajapati
Hi, How big is sample.sql dump ? there are many different things, might taking the time. dns resolve issue, network issue tcp0 0 www.myweb.:mysql A.B.C.D:8366 *TIME_WAIT* (It should established) load on the server, check mysql processlist (any wrong query is there) Thanks, Krishn

Re: mysql update

2010-01-22 Thread Suresh Kuna
Did you check the server load when it took 10 min. Check the query log, number of connections and the number of queries in query log at that time. We need to analyze the system with the collected data what we have for monitoring. Thanks Suresh Kuna On Fri, Jan 22, 2010 at 12:25 PM, madunix wrote

mysql update

2010-01-21 Thread madunix
I have the following update procedure that update mySQL DB over the internet between source Linux Centos (local machine on my net behind a DMZ with real IP A.B.C.D) and target Linux fedora (web server www.myweb.com) every day on a specific time 18:00 through a crontab on my source linux server ser

Re: Mysql update query gives error of lock wait timeout

2009-08-29 Thread Krishna Chandra Prajapati
Increase your Innodb_buffer_pool_size. It will solve your problem. Thanks, Krishna On Sat, Aug 29, 2009 at 10:39 AM, Manasi Save < manasi.s...@artificialmachines.com> wrote: > Hi All, > > I have a query which gives an error of lock wait timeout only this > transaction is running with 2 recor

Re: Mysql update query gives error of lock wait timeout

2009-08-28 Thread Manasi Save
Hi, You are right. The storage engine i m using is InnoDB. but then my concern is why this simple update query takes so long. Is it true that if its innodb table then even after specifying where condition it scans all indexed rows. I am bit confused as mysql.com have mentioned on there site that e

Re: Mysql update query gives error of lock wait timeout

2009-08-28 Thread muhammad subair
On Sat, Aug 29, 2009 at 12:09 PM, Manasi Save < manasi.s...@artificialmachines.com> wrote: > Hi All, > > I have a query which gives an error of lock wait timeout only this > transaction is running with 2 records in the table. > > The query is : > > Update Test > Set TestFlag = 1 > Where TestID

Mysql update query gives error of lock wait timeout

2009-08-28 Thread Manasi Save
Hi All, I have a query which gives an error of lock wait timeout only this transaction is running with 2 records in the table. The query is : Update Test Set TestFlag = 1 Where TestID = 5; Can this one transaction lock my entire table? -- Thanks and Regards, Manasi Save Artificial Machines

MySQL update 4.0.20 w/RPM's

2004-05-31 Thread Mike Blezien
Hello, got this error when upgrading our MySQL: rpm -Uvh MySQL-shared-4.0.20-0.i386.rpm Preparing...### [100%] file /usr/lib/libmysqlclient.so.12.0.0 from install of MySQL-shared-4.0.20-0 conflicts with file from package MySQL-shared-compat-4

Re: Doubts with mysql update,delete queries

2003-12-03 Thread Joakim Ryden
On 12/3/03 7:27 PM [EMAIL PROTECTED] wrote: Hi, yah that's what I'm looking for, creating a "cronjob" whereby this "cron" will automatically delete the record once 30 days is up...maybe using something like that: "DELETE FROM tablename WHERE (DATA_SUB(NOW()), INTERVAL 30 DAY) > name_of_date_

Re: Doubts with mysql update,delete queries

2003-12-03 Thread irinchiang
Hi all: Having some doubts with sql select queries here : Right now, I have a "student" and a "withdraw" tables. For example, when student "John" has withdrawn, his name will be inserted into "withdraw" table but John's record will be kept in "student" table for a period of 30 days befor

Doubts with mysql update,delete queries

2003-12-03 Thread irinchiang
Hi all: Having some doubts with sql select queries here : Right now, I have a "student" and a "withdraw" tables. For example, when student "John" has withdrawn, his name will be inserted into "withdraw" table but John's record will be kept in "student" table for a period of 30 days before

Re: mysql update

2003-07-15 Thread Victoria Reznichenko
Prem Soman <[EMAIL PROTECTED]> wrote: > i want to update every row in the mysql table that > matches a part of each row in it. > > ie. > > for example if a table contains the following rows : > > Pid:21577 > PPid: 21174 > Uid:501 > Gid:501 > > i want to change the firs

mysql update

2003-07-15 Thread Prem Soman
i want to update every row in the mysql table that matches a part of each row in it. ie. for example if a table contains the following rows : Pid:21577 PPid: 21174 Uid:501 Gid:501 i want to change the first row to Pid:30209 similarly for any row plz advice me

mysql update on myisam

2003-04-01 Thread Jerg Schmidt
Hi there, I'm running MySQL-server-4.0.10-0.i386 on a Linux Box (SuSE 8.1) and all tables are MyISM. Today a made strange observation. All update statements on one table where completely "ignored" by the server. There was no error message - just a "0 rows affected". After restart of mysqld everyti

Mysql Update

2003-02-26 Thread Daniele Lo Re
Hi everybody I sent a couple of mail recently, asking some help for some strange behaviour with select and updates. I hope many of you have read it...the problem was that making a SELECT something FROM table WHERE 'Where_Clause' gave some results, >0. the query: UPDATE table SET something WHE

re: Re: mysql update user

2002-10-31 Thread Egor Egorov
joseph, Wednesday, October 30, 2002, 9:53:57 PM, you wrote: js> On Tue, Oct 29, 2002 at 11:56:01AM +0200, Egor Egorov wrote: >> Marco, >> Tuesday, October 29, 2002, 7:22:44 AM, you wrote: >> >> MB> I need your expert and slow guided assistance. >> >> MB> I would some one to teach me how to do fo

Re: mysql update user

2002-10-30 Thread joseph speigle
On Tue, Oct 29, 2002 at 11:56:01AM +0200, Egor Egorov wrote: > Marco, > Tuesday, October 29, 2002, 7:22:44 AM, you wrote: > > MB> I need your expert and slow guided assistance. > > MB> I would some one to teach me how to do for that user > MB> and allow him/website to have access to that database

re: mysql update user

2002-10-29 Thread Egor Egorov
Marco, Tuesday, October 29, 2002, 7:22:44 AM, you wrote: MB> I need your expert and slow guided assistance. MB> I would like someone to explain to me the correct mysql commands MB> monitor to achive the following correctly. MB> It would greatly help if you work for a hosting company. MB> The qu

mysql update user

2002-10-28 Thread Marco Botros
Hello there, I need your expert and slow guided assistance. I would like someone to explain to me the correct mysql commands monitor to achive the following correctly. It would greatly help if you work for a hosting company. The question is: User asks to be given access to mysql database for hi

Re: Re: MySQL update subquery replacement

2002-07-23 Thread Egor Egorov
Steve, Tuesday, July 23, 2002, 7:36:39 AM, you wrote: S> Can anyone tell me how do achieve the following in MySQL: S> Update oitems S> SET Pstatus = SELECT product.Pstatus from products S> WHERE oitems.Pstatus not like "%Printed%" S>AND oitems.ProdCode=products.Code S> i.e.

MySQL update subquery replacement

2002-07-22 Thread Steve Lane
OOps somehow my last request got re: on the Subject Can anyone tell me how do achieve the following in MySQL: Update oitems SET Pstatus = SELECT product.Pstatus from products WHERE oitems.Pstatus not like "%Printed%" AND oitems.ProdCode=products.Code i.e. I need to

Re: MySQL update subquery replacement

2002-07-22 Thread Steve
Can anyone tell me how do achieve the following in MySQL: Update oitems SET Pstatus = SELECT product.Pstatus from products WHERE oitems.Pstatus not like "%Printed%" AND oitems.ProdCode=products.Code i.e. I need to update all order item status flields that hav

Re: install mysql (update)

2002-07-12 Thread miguel solorzano
At 21:30 11/7/2002 -0300, [EMAIL PROTECTED] wrote: Hi, >I am trying to update my version and I am not getting. My current version is >3.23.49-nt. I am using MySql in Windows 2000. > >When I try to install it happens the mistake -103: > >An error occurred during the moves date process: -103 >Compo

Re: install mysql (update)

2002-07-12 Thread Victoria Reznichenko
I am trying to update my version and I am not getting. My current version is t> 3.23.49-nt. I am using MySql in Windows 2000. t> When I try to install it happens the mistake -103: t> An error occurred during the moves date process: -103 t> Component: servers t> File group: t> File: Did you rem

install mysql (update)

2002-07-11 Thread tecnico
I am trying to update my version and I am not getting. My current version is 3.23.49-nt. I am using MySql in Windows 2000. When I try to install it happens the mistake -103: An error occurred during the moves date process: -103 Component: servers File group: File: thank you --

MySQL Update Query with a Join

2002-05-29 Thread Joe Cherner
I'm told that one cannot write an Update Query with a Join in MySQL. Does anyone know if this is true? Thank you for your help Joe Joseph W. Cherner, President SmokeFree Educational Services, Inc. http://www.smokefree.org "Never doubt that a small group of thoughtful citizens can change the w

RE: MySQL Update based on SELECT CRITERIA

2002-02-14 Thread Roger Baklund
* USER > Is there any way to do an Update...Select like an InsertSelect? > > For instance can I fill one table with data from another table. > The columns > do not match exactly so a table copy won't do much good. But the data > retrieved in the select command is compatible with the new table

MySQL Update based on SELECT CRITERIA

2002-02-13 Thread USER
Is there any way to do an Update...Select like an InsertSelect? For instance can I fill one table with data from another table. The columns do not match exactly so a table copy won't do much good. But the data retrieved in the select command is compatible with the new table fields. sql,que

Re: DBI and MySQL update log question

2002-01-10 Thread Kyle Hayes
Comments inline below. On Wednesday 09 January 2002 18:13, Paul DuBois wrote: > At 17:23 -0800 1/9/02, Kyle Hayes wrote: [snipped replication explanation] > >The program works by getting the contents of the update log and using > > the Perl DBI do() function on each statement. > > > >The problem

Re: DBI and MySQL update log question

2002-01-09 Thread Paul DuBois
At 17:23 -0800 1/9/02, Kyle Hayes wrote: >I am putting the finishing touches on a completely reworked replication >server/client scheme (we cannot use MySQL's native replication for what we >are doing). The whole thing is written in Perl/DBI and runs >on Linux (x86). We are using various version

DBI and MySQL update log question

2002-01-09 Thread Kyle Hayes
I am putting the finishing touches on a completely reworked replication server/client scheme (we cannot use MySQL's native replication for what we are doing). The whole thing is written in Perl/DBI and runs on Linux (x86). We are using various versions of MySQL, but all 3.23.x series. We a

Re: MySQL Update Logging ???

2001-10-02 Thread Jeremy Zawodny
On Fri, Sep 21, 2001 at 01:43:32AM -0400, Will French wrote: > > Actually yes (if I read the documentation correctly - I have not > tried this). But if his ISP won't allow it, he can't do it. Maybe I misunderstood. Jeremy -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Financ

Re: MySQL Update Logging ???

2001-09-21 Thread jim barchuk
Preface #1: Hi MySQL Admin! There's an oddity at http://www.mysql.com/doc/. Entering my.cnf returns no hits. Entering cnf returns all relevant hits. Preface #2: Hi All! Folks, this is the *best* online documentation I have ever ever seen. You can save youself lotsa time waiting for replies here

Re: MySQL Update Logging ???

2001-09-20 Thread Christopher Raymond
on 9/21/01 12:43 AM, Will French at [EMAIL PROTECTED] wrote: > Actually yes (if I read the documentation correctly - I have not tried > this). > In MySql Manual section "4.10.5 Replication Options in my.cnf", I find: > binlog-do-db=database_name > Tells the master it should log updates fo

RE: MySQL Update Logging ???

2001-09-20 Thread Will French
nd exclude all others not explicitly mentioned. (Example: binlog-do-db=some_database) > -Original Message- > From: Jeremy Zawodny [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 21, 2001 1:34 AM > To: Christopher Raymond > Cc: MySQL Mailing List > Subje

Re: MySQL Update Logging ???

2001-09-20 Thread Jeremy Zawodny
On Thu, Sep 20, 2001 at 04:25:29PM -0500, Christopher Raymond wrote: > > Friends: > > My ISP does not enable update logging with their MySQL server. Is it > possible for them or me to turn on update logging just for MY database(s) > ??? No. Jeremy -

MySQL Update Logging ???

2001-09-20 Thread Christopher Raymond
Friends: My ISP does not enable update logging with their MySQL server. Is it possible for them or me to turn on update logging just for MY database(s) ??? I appreciate any help & God Bless America, Christopher Raymond

SSL, mysql, update

2001-04-29 Thread Daniel BI
As far as I know, 'update' is a reserved word and you should quote it with reversed quotes (you know they are on my keyboard near '1'). I hope it helps. Daniel BI > Hi, >I'm useing mysql php and SSL on a colbalt raq, the problem I'm having is > that when ever I use the update query it does

SSL, mysql, update

2001-04-26 Thread Viper SB
Hi, I'm useing mysql php and SSL on a colbalt raq, the problem I'm having is that when ever I use the update query it doesn't always update, say just UPDATE table SET f1 = 'update' WHERE id = '2' some times when I first run the page it works but then other times it doesn't update, I also use

Re: Reserved words in MySQL update

2001-02-15 Thread Benjamin Pflugmann
Hi. On Wed, Feb 14, 2001 at 03:28:23PM -, [EMAIL PROTECTED] wrote: > >Description: > Upgrading from 3.22 to 3.23 with a field having a reserved name > ALTER TABLE barfs and doesn't let me do > ALTER TABLE casualties CHANGE when cas_when DATE NOT NULL; ALTER TABLE casualties CHANGE `when` cas

Reserved words in MySQL update

2001-02-14 Thread david
upgrade to 3.23 >Fix: Manually edited the .frm file - didn't feel right Need something to either do it automatically on upgrade, or a standalone utility to modify the mysql files directly. >Submitter-Id: >Originator:David Croft >Organization: >MySQL support: none >S