Re: Weird delete behavior on mysql 4.0 - rows not disappearing....

2005-08-31 Thread Jason Martin
On Wed, Aug 31, 2005 at 11:18:40PM -0400, Michael Stassen wrote: > No, with the default transaction isolation level, REPEATABLE READ, that's > how it is supposed to work. You've started a transaction in Window B, so > Window B is immune to changes made in Window A until you finish the > transac

Re: Weird delete behavior on mysql 4.0 - rows not disappearing....

2005-08-31 Thread Michael Stassen
David Griffiths wrote: I just discovered some weird behaviour with MySQL 4.0 (4.0.24 and 4.0.18) using InnoDB. If you have two connections to mysql (I use the mysql client), one of which has autocommit turned on, an the other turned off, a row deleted from the client with autocommit turned on

Master Log Files

2005-08-31 Thread Tedy Aulia
Hi All, I have found that the binlogfiles have changed their name. Initially the files were using the name of the server followed by the number i.e. "foo.###". Since two weeks ago the binlog files have changed to be "mysql.###". As far as I remember there is no change in my.cnf file so far. I am

Weird delete behavior on mysql 4.0 - rows not disappearing....

2005-08-31 Thread David Griffiths
I just discovered some weird behaviour with MySQL 4.0 (4.0.24 and 4.0.18) using InnoDB. If you have two connections to mysql (I use the mysql client), one of which has autocommit turned on, an the other turned off, a row deleted from the client with autocommit turned on still shows up in the c

Re: leading whitespace on orderings

2005-08-31 Thread Jasper Bryant-Greene
Tim McIntyre wrote: Can anyone tell me the best way to ignore leading whitespace on orderings? ORDER BY LTRIM(colname) ? -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/ If you find my advice useful, please consider donating to a poor student! You can choose

leading whitespace on orderings

2005-08-31 Thread Tim McIntyre
Hey all Can anyone tell me the best way to ignore leading whitespace on orderings? Thanks Tim McIntyre -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Counting Entries

2005-08-31 Thread Shaun
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:56:23 PM: > >> >> <[EMAIL PROTECTED]> wrote in message >> > news:[EMAIL PROTECTED] >> > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:04:20 PM: >> > >> >> >> >> <[EMAIL PROTECTED]

Re: Counting Entries

2005-08-31 Thread SGreen
"Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:56:23 PM: > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:04:20 PM: > > > >> > >> <[EMAIL PROTECTED]> wrote in message > >> > > news:[EMAIL PROTECTED] > >> > "Shaun" <[EM

Re: Counting Entries

2005-08-31 Thread Shaun
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:04:20 PM: > >> >> <[EMAIL PROTECTED]> wrote in message >> > news:[EMAIL PROTECTED] >> > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 02:43:33 PM: >> > >> >> Hi, >> >> >> >> This que

Re: Counting Entries

2005-08-31 Thread Oliver Smith
[EMAIL PROTECTED] wrote: If that wasn't it, can you explain WHY those numbers are wrong as I have only the slimmest clue what your data is supposed to look like. If those aren't the numbers you wanted, what numbers did you expect? Please, provide sample queries to demonstrate what you expected

Re: Counting Entries

2005-08-31 Thread SGreen
"Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 04:04:20 PM: > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 02:43:33 PM: > > > >> Hi, > >> > >> This query counts the number of entries in the Bookings table per month, > > is

Re: Counting Entries

2005-08-31 Thread Shaun
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 02:43:33 PM: > >> Hi, >> >> This query counts the number of entries in the Bookings table per month, > is >> it possible for this query to return a zero where there are no entries > for a

Re: Counting Entries

2005-08-31 Thread SGreen
"Shaun" <[EMAIL PROTECTED]> wrote on 08/31/2005 02:43:33 PM: > Hi, > > This query counts the number of entries in the Bookings table per month, is > it possible for this query to return a zero where there are no entries for a > particular month? > > SELECT COUNT(Booking_ID) AS "Num_Bookings"

Re: replication slave's warnings

2005-08-31 Thread Gleb Paharenko
Hello. MySQL 4.1.x has a lot of improvements in the framework of warnings, which MySQL 4.0.x might not have. So loading the data on the master (4.0.20) hasn't produced the warnings. You may want to get the files which was loaded to be able to reproduce the situation later and get the warning

Counting Entries

2005-08-31 Thread Shaun
Hi, This query counts the number of entries in the Bookings table per month, is it possible for this query to return a zero where there are no entries for a particular month? SELECT COUNT(Booking_ID) AS "Num_Bookings" FROM Bookings WHERE User_ID = 1 AND Work_Type_ID = 12 AND DATE_FORMAT(Booking

RE: Loading database files fails on "UNLOCK TABLES" statement

2005-08-31 Thread Berman, Mikhail
Hi Shawn, My mistake, I should have been more precise. Let me try to clarify situation, here, The files represented by the "$dir2" variable in the script are the files created by mysqldump, see below. So, "Unlock Tables" command is the one immediately before "/*!4 ALTER TABLE `IC_CHAN

Re: [Replication] Problem connecting to master

2005-08-31 Thread Jan Roehrich
> If nothing helps, trace files could spill the light on your problem. many thanks for your help. With tracing I found the problem. Like almost every time it was just a typing error :-( Regards Jan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: Loading database files fails on "UNLOCK TABLES" statement

2005-08-31 Thread SGreen
"Berman, Mikhail" <[EMAIL PROTECTED]> wrote on 08/31/2005 12:35:19 PM: > Hi everyone, > > I am trying to load backup files into a database using a small script > where an actual load command is: > > /usr/local/bin/mysql -ux -p -f secdocs -v -e "source $dir2" > > and it is a part of loop

Loading database files fails on "UNLOCK TABLES" statement

2005-08-31 Thread Berman, Mikhail
Hi everyone, I am trying to load backup files into a database using a small script where an actual load command is: /usr/local/bin/mysql -ux -p -f secdocs -v -e "source $dir2" and it is a part of loop that reads all files fro a directory. The load freezes at the same point, when at

Re: MySql hanging

2005-08-31 Thread Bill Duffy
Thanks. I was already looking at ways to rewrite this query - the link will be helpful. I would have expected the query to be slow, but it looked to me like the database stopped processing the query at all after a while. Now that I understand just how slow it might be even under the best of circu

Re: Help optimizing Fulltext query

2005-08-31 Thread Brent Baisley
100 search items is a lot to search on at once for any system. MySQL has to search on a 100 terms, no way around that. I think the only way to optimize your query is to narrow down the search terms. Perhaps you can search on phrases instead of words? After the first 5-10 terms have been matc

Re: MySql hanging

2005-08-31 Thread SGreen
Bill Duffy <[EMAIL PROTECTED]> wrote on 08/31/2005 11:32:02 AM: > When I run a query like this > > DELETE FROM test_P_Cookie WHERE ViewID IN (SELECT ViewID FROM > test_x_RM_4508_48875 ) > > it never completes. > > test_x_RM_4508_48875 contains 180139 rows. test_P_Cookie contains 22,957,70

Re: Mysql can't start

2005-08-31 Thread Gleb Paharenko
Hello. >> # /etc/init.d/mysql start >> Starting MySQL database server: mysqld...failed. Sorry for replying to myself, but this link is helpful as well: http://dev.mysql.com/doc/mysql/en/starting-server.html Gleb Paharenko <[EMAIL PROTECTED]> wrote: > Hello. > > Have a look here:

Re: foreign key constrain

2005-08-31 Thread Ady Wicaksono
When you found this error, go to your MySQL database and do "SHOW INNODB STATUS" there will be an information about last foreign key error Thx joshua pereira wrote: hello when im inserting data to my database this error occurs javax.servlet.ServletException: Cannot add or update a child row

MySql hanging

2005-08-31 Thread Bill Duffy
When I run a query like this DELETE FROM test_P_Cookie WHERE ViewID IN (SELECT ViewID FROM test_x_RM_4508_48875 ) it never completes. test_x_RM_4508_48875 contains 180139 rows. test_P_Cookie contains 22,957,702 rows. There does not appear to be any iowait problem and CPU is about 50 % in us

a mysqldump question

2005-08-31 Thread mbeltran
Hi all Yesterday I try to migrate a database from mysql version is '4.1.5-gamma' to mysql version 3.23.45 using mysqldump: in the source server I executed: loki# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1955 to server version: 4.1.5-gamma-log Ty

replication slave's warnings

2005-08-31 Thread Francesco Dalla Ca'
Master: 4.0.20-max Slave: 4.1.14-max Replication seems goes well. This morning i see the follow messages on error log: 050831 5:30:04 [Warning] Slave: load data infile on table 'Stage' at log position 30438086 in log 'tana-bin.001' produced 5003 warning(s). Default database: 'TSM' 050831 6:0

foreign key constrain

2005-08-31 Thread joshua pereira
hello when im inserting data to my database this error occurs javax.servlet.ServletException: Cannot add or update a child row: a foreign key constraint fails pls advice thank you . Send instant messages to your online friends http://uk.messenger.yahoo.com -- MySQL General Mailing List

Re: too less place for whole info in innodb status

2005-08-31 Thread Remigiusz Sokołowski
Gleb Paharenko wrote: Hello. Maybe the output of innodb_monitor won't be truncated. Create the innodb_monitor table and check if you see the full output in the .err log. See: http://dev.mysql.com/doc/mysql/en/innodb-monitor.html this helps - thanks -- MySQL General Mailing List

Re: Mysql can't start

2005-08-31 Thread Gleb Paharenko
Hello. Have a look here: http://dev.mysql.com/doc/mysql/en/can-not-connect-to-server.html Marcello Lussana <[EMAIL PROTECTED]> wrote: > Hi, I've got a problem with mysql4 on debian. I've installed with apt > but I get this error: > > # /etc/init.d/mysql start > Starting MySQL data

Re: too less place for whole info in innodb status

2005-08-31 Thread Gleb Paharenko
Hello. Maybe the output of innodb_monitor won't be truncated. Create the innodb_monitor table and check if you see the full output in the .err log. See: http://dev.mysql.com/doc/mysql/en/innodb-monitor.html Remigiusz Soko$owski <[EMAIL PROTECTED]> wrote: > Hi! > problem is not crit

Re: too less place for whole info in innodb status

2005-08-31 Thread Ady Wicaksono
Better you create a PHP page that run "SHOW INNODB STATUS" :-) Hope that will solve your problem. Remigiusz Sokołowski wrote: Ady Wicaksono wrote: You should try *SHOW INNODB STATUS \G;* Remigiusz Soko?owski wrote: Hi! problem is not critical, however it would be nice to get some worka

Re: too less place for whole info in innodb status

2005-08-31 Thread Remigiusz Sokołowski
Ady Wicaksono wrote: You should try *SHOW INNODB STATUS \G;* Remigiusz Soko?owski wrote: Hi! problem is not critical, however it would be nice to get some workaround from time to time I check innodb status - the most interesting sections, I believe, are: FILE I/O, INSERT BUFFER AND ADAPTIV

Re: too less place for whole info in innodb status

2005-08-31 Thread Ady Wicaksono
You should try *SHOW INNODB STATUS \G;* Remigiusz Soko?owski wrote: Hi! problem is not critical, however it would be nice to get some workaround from time to time I check innodb status - the most interesting sections, I believe, are: FILE I/O, INSERT BUFFER AND ADAPTIVE HASH INDEX, LOG, BUFF

too less place for whole info in innodb status

2005-08-31 Thread Remigiusz Sokołowski
Hi! problem is not critical, however it would be nice to get some workaround from time to time I check innodb status - the most interesting sections, I believe, are: FILE I/O, INSERT BUFFER AND ADAPTIVE HASH INDEX, LOG, BUFFER POOL AND MEMORY and ROW OPERATIONS unfortunately they are at the bo

Mysql can't start

2005-08-31 Thread Marcello Lussana
Hi, I've got a problem with mysql4 on debian. I've installed with apt but I get this error: # /etc/init.d/mysql start Starting MySQL database server: mysqld...failed. Please take a look at the syslog. /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to l

Help optimizing Fulltext query

2005-08-31 Thread Andrew Brosnan
Hello, I need some help optimizing a query. The current query is as follows: SELECT *, MATCH(title) AGAINST ( 'S' IN BOOLEAN MODE ) AS score FROM articles WHERE MATCH(title) AGAINST ( 'S' IN BOOLEAN MODE ); 'title' is a FULLTEXT index. 'S' is a query string that may have 100 search term

Re: DIV-function?

2005-08-31 Thread Martijn Tonies
> >>> I wonder how I'll get a div-function in SQL? > >> > >> I dunno, maybe by looking in the manual? From [1]: > >> > >> Division: > >> > >> mysql> SELECT 3/5; > >> -> 0.60 > >> > >> [1] http://dev.mysql.com/doc/mysql/en/arithmetic-functions.html > >> > > > > Gustav is looking for the DIV-

Re: table in use

2005-08-31 Thread Gleb Paharenko
Hello. Not enough information to make a conlusion. Please send OS and MySQL versions. Think about switching from BDB to InnoDB. [EMAIL PROTECTED] wrote: > [-- text/plain, encoding 7bit, charset: us-ascii, 1 lines --] > > When i do some insert or edit operations on my BDB tables i somet

Re: stopping drop index command on table

2005-08-31 Thread Gleb Paharenko
Hello. According to the: http://dev.mysql.com/doc/mysql/en/kill.html "During ALTER TABLE, the kill flag is checked before each block of rows are read from the original table. If the kill flag was set, the statement is aborted and the temporary table is deleted." So, in my opinion, not

Re: Connections with bad DNS cause lockups

2005-08-31 Thread Gleb Paharenko
Hello. Have a look here: http://dev.mysql.com/doc/mysql/en/dns.html You may want to start mysqld with the --skip-name-resolve option. Tuc at T-B-O-H <[EMAIL PROTECTED]> wrote: > Hi, > >We seem to be running into a problem with our > installation that we don't understand.

Re: Server hangs and table gets corrupted on simple subselect

2005-08-31 Thread Gleb Paharenko
Hello. > As mentioned, none of these work and all of these hang the server and > break the database. Even after weird queries server shouldn't hang and break the database. Switch to the official binaries of the latest release (4.1.14 now) and check if the problem remains. "Reits

Re: DIV-function?

2005-08-31 Thread Jasper Bryant-Greene
Joachim Klöfers wrote: Jasper Bryant-Greene schrieb: Gustav Wiberg wrote: Hi there! I wonder how I'll get a div-function in SQL? I dunno, maybe by looking in the manual? From [1]: Division: mysql> SELECT 3/5; -> 0.60 [1] http://dev.mysql.com/doc/mysql/en/arithmetic-functions.htm

Re: DIV-function?

2005-08-31 Thread Joachim Klöfers
Jasper Bryant-Greene schrieb: Gustav Wiberg wrote: Hi there! I wonder how I'll get a div-function in SQL? I dunno, maybe by looking in the manual? From [1]: Division: mysql> SELECT 3/5; -> 0.60 [1] http://dev.mysql.com/doc/mysql/en/arithmetic-functions.html Gustav is looking

Re: DIV-function?

2005-08-31 Thread Joachim Klöfers
Jasper Bryant-Greene schrieb: Gustav Wiberg wrote: Hi there! I wonder how I'll get a div-function in SQL? I dunno, maybe by looking in the manual? From [1]: Division: mysql> SELECT 3/5; -> 0.60 [1] http://dev.mysql.com/doc/mysql/en/arithmetic-functions.html -- --

Re: MySQL Control Center works with v4.0.23 -- how about V5?

2005-08-31 Thread Pooly
Hi MySQL Query Browser do what you want, but it's less traightforward. Try to click on the wrench/tool just below the data grid, you will be able to update you field (don't forget do click "apply changes"). That's the only reason why sometimes I still prefer MysqlCC 2005/8/30, Siegfried Heintze <

Re: Alphabetizing within GROUPS

2005-08-31 Thread Jigal van Hemert
Jeff Pflueger wrote: Hi. Thanks for any help on this. I've been beating my head over it for hours. Here's what I am trying to do: I have four tables I am joining via a unique key (Fellow_id). The results I want to group into three categories, each alphabetized within the group. Is this too mu