Re: inconsistent replication?

2005-12-29 Thread pwr
Hi, I have had same issue for very long time - but managed. I see this as a bug / issue to be handled by MySQL - because the logfile/replicationfile should not add more data then the orig SQL from program - in this case is added the auto-increment, which is dealt with internal by MySQL. Best

R: inconsistent replication?

2005-12-29 Thread AESYS S.p.A. [Enzo Arlati]
Sorry, I didn't understand your replay. Is not clear to me if you are talking about a mysql bug and there is some solution available. Please, Can you expand more on your answer. Regards, Enzo -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: giovedì 29

STOPPING server from pid file

2005-12-29 Thread ali asghar torabi parizy
hi to all i have mysql5.1 installed on fedoracore3 it was worked sucsessfully since yesterday. but when i run mysql_safe script today, it prompt following error: STOPPING server from pid file /usr/local/mysql/var/localhost.localdomain.pid

Re: STOPPING server from pid file

2005-12-29 Thread Danny Stolle
Hi, Did you check your error log file? Is there allready a pid file in the directory? You have to delete this one first. Hope this helps :-) Danny ali asghar torabi parizy wrote: hi to all i have mysql5.1 installed on fedoracore3 it was worked sucsessfully since yesterday. but when i

Re: need help with user variables in where clause of sub query

2005-12-29 Thread Dan Rossi
Thanks for your kind words of opinion, if you feel you have a better way please do go ahead , i am going to show you the sql i ended up using which was a union to append the current summary at the end, i then had to use php afterwards to add up the totals as i was getting unexpected results

Re: LIMIT on GROUP BY?

2005-12-29 Thread Felix Geerinckx
On 28/12/2005, [EMAIL PROTECTED] wrote: I don't think there is any way with plain-old SQL (extended or otherwise) to do it in a single statement (unless you are doing it iteratively - that is: in a stored procedure and row-by-row). USE test; DROP TABLE IF EXISTS foo; CREATE TABLE foo ( i

RE: set sql mode

2005-12-29 Thread emierzwa
An error is only thown during an INSERT or UPDATE statement, otherwise you just get a warning. - ERROR_FOR_DIVISION_BY_ZERO Produce an error in strict mode (otherwise a warning) when we encounter a division by zero (or MOD(X,0)) during an INSERT or UPDATE. If this mode is not given, MySQL

Re: need help with user variables in where clause of sub query

2005-12-29 Thread SGreen
Dan Rossi [EMAIL PROTECTED] wrote on 12/29/2005 07:19:13 AM: Thanks for your kind words of opinion, if you feel you have a better way please do go ahead , i am going to show you the sql i ended up using which was a union to append the current summary at the end, i then had to use php

Re: How to share databases on dual-boot machines?

2005-12-29 Thread James Brown
Thanks for the advice David. I opted for your method 2 and symlinked to my database files which now reside on a FAT32 partition. Unfortunately, I've hit a slight issue which I'd like to run past you, but I do think this could turn out to be a FAT32 problem rather than a MySQL one.

Re: How to share databases on dual-boot machines?

2005-12-29 Thread Joerg Bruehe
Hi James, all! James Brown wrote: Thanks for the advice David. I opted for your method 2 and symlinked to my database files which now reside on a FAT32 partition. Unfortunately, I've hit a slight issue which I'd like to run past you, but I do think this could turn out to be a FAT32 problem

R: field truncate trying to using 'show slave status'

2005-12-29 Thread AESYS S.p.A. [Enzo Arlati]
Mr Ikar of Core Team Lam give me a different answer ( see belowe ): This is MySQL server bug - it specifies wrong length for fields from SHOW statements. We avoided this bug in MyDAC 4 code. Can someone confirm me such bug with mysql, and when it sould be solved ? Mr Paharenko, I route your

Re: issue with subquery

2005-12-29 Thread Joerg Bruehe
Hi Dan, all! Dan Rossi wrote: Hi, im having some issues with a sub query in mysql5 , i have a field which is storing a static comma seperate list of primary keys ie 1,2,3,4 Call me pedantic, but I get suspicious: Is that a list of the four values 1, 2, 3, 4, or is it rather a single

Re: load balance for mysql servers

2005-12-29 Thread Atle Veka
Less optimal solution: Create a DNS round-robin alias, say mydatabase.myinternaldomain.com, that point to S2-4. Optimal solution: Set up a real load balancer, hardware based or software based (http://www.linuxvirtualserver.org/), and have it configured to distribute your

Re inconsistent replication?

2005-12-29 Thread Atle Veka
Trying to help you with your replication problems is pretty much impossible without more information, such as: mysql versions and a more detailed explanation of your replication setup. I manage setups ranging from 1-14 replication slaves transmitting up to 2 gigabytes of data per day, and none of

RE: Re: How to share databases on dual-boot machines?

2005-12-29 Thread Logan, David (SST - Adelaide)
Hi James, Check the whole /mnt filesystem hasn't been mounted read-only. Regards --- ** _/ ** David Logan *** _/ *** ITO Delivery Specialist - Database *_/*

How to insert CURDATE() as default

2005-12-29 Thread Marc
I've got a MySQL table that I'd like to have the current date, CURDATE(), as the default in a column. I'm using knoda to worj with this table. How do I use knoda to get this done? I can enter CURDATE() in the default using the GridColumns button, but all that does is insert the phrase CURDATE().

Re: how use sql_slave_skip_counter to restore slave replication

2005-12-29 Thread Gleb Paharenko
Hello. but the problem is the same and the command 'show slave status' report a skip_counter filed equals 0. Where I am wrong , some can help me ? This variable is the number of events from the master that a slave server should skip. sql_slave_skip_counter decrements each time the

Re: ibdata1 File

2005-12-29 Thread Gleb Paharenko
Hello. there, in fact, anything important in that ibdata1 file, or can I just shut down mySQL, move that file somewhere else, and then re-start mySQL? Yes, this file contains important information. Is this possible, or am I stuck having my database server off-line for hours while the

Re: inconsistent replication?

2005-12-29 Thread Gleb Paharenko
Hello. For auto_increment columns MySQL sets in the binary logs INSERT_ID variable, research binary and relay logs and check if it is set to the same value. Is it possible that you forgot to change the master_log_pos and master_log_file after copying the data to the slave?

Re: load balance for mysql servers

2005-12-29 Thread Gleb Paharenko
Hello. Is there any good idea to load balance for our mysql servers? I'm not sure, but have a look at High Performance MySQL by Jeremy D. Zawodny. This is a snip from it's publically available chapter. ### Real-time data

Re: create function with space

2005-12-29 Thread Gleb Paharenko
Hello. From the manual: ANSI Equivalent to REAL_AS_FLOAT, PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE. Before MySQL 5.0.3, ANSI also includes ONLY_FULL_GROUP_BY. See Section 1.8.3, “Running MySQL in ANSI Mode”. wangxu wrote: I set my sql_mode =

Re: (ÈðÐÇÌáʾ-´ËÓʼþ¿ÉÄÜÊÇÀ¬»øÓʼþ)RE: set sql mode

2005-12-29 Thread wangxu
thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; mysql@lists.mysql.com Sent: Thursday, December 29, 2005 10:38 PM Subject: (ÈðÐÇÌáʾ-´ËÓʼþ¿ÉÄÜÊÇÀ¬»øÓʼþ)RE: set sql mode An error is only thown during an INSERT or UPDATE statement, otherwise you just get a

Re: Problem With FulltText Index and VarChar

2005-12-29 Thread Michael Stearne
On 12/28/05, Gleb Paharenko [EMAIL PROTECTED] wrote: Hello. #1054 - Unknown column 'CommentsIDX' in 'where clause' My table structure contains:FULLTEXT KEY `CommentsIDX` (`Comments`) You should use column names not index names in your queries. Please, provide CREATE statement for your

Fw: Re: create function with space

2005-12-29 Thread wangxu
Yes,I already read this section. But, maybe there are haven't relation to my question. Are the effect of setting IGNORE_SPACE in sql mode allowing add space between function name and (? If my attitude is right,then if i haven't setting IGNORE_SPACE in sql mode,I shouldn't add space between

How to insert CURDATE() as default

2005-12-29 Thread Marc
I forgot to mention - I'm running MySQL 4.0.14 on Linux. And I'm not very knowledgeable on databases. I just use MySQL with Knoda to get the job done. == I've got a MySQL table that I'd like to have the current date, CURDATE(), as the default in a column. I'm using knoda

question about sql mode = ansi

2005-12-29 Thread wangxu
AS 1.7.3. Running MySQL in ANSI Mode explain: -- Running the server in ANSI mode is the same as starting it with these options (specify the --sql_mode value on a single line): --transaction-isolation=SERIALIZABLE

Re[2]: Got error 12 from storage engine on ORDER BY

2005-12-29 Thread Walter Hop
[in reply to [EMAIL PROTECTED], 28-12-2005] Hi, MySQL 4.1.10a on FreeBSD 5.4-RELEASE-p6 ERROR 1030 (HY000): Got error 12 from storage engine Strangely, this problem does not appear when mysqld is restarted and I retry the query. When I wait a day, the error starts to appear again. It seems

Re: question about sql mode = ansi

2005-12-29 Thread Paul DuBois
At 11:50 +0800 12/30/05, wangxu wrote: AS 1.7.3. Running MySQL in ANSI Mode explain: -- Running the server in ANSI mode is the same as starting it with these options (specify the --sql_mode value on a single line):

Checking for all columns null

2005-12-29 Thread Yasir Assam
Is there a simple way of checking whether all the columns in a SELECT are NULL? I know I can do the following: SELECT c1, c2, c3 FROM t WHERE COALESCE(c1, c2, c3) IS NOT NULL but this relies on specifying every column I've selected (which in my actual code is a lot of columns that may change

Re: how use sql_slave_skip_counter to restore slave replication

2005-12-29 Thread Leo
other than what Gleb says, you can avoid the error using 'insert ignore into' or better yet 'replace into' for every insert statement AESYS S.p.A. [Enzo Arlati] wrote: I'm trying to use teh parameter sql_slave_skip_counter at run-time to restore slave replication. When a slave replication