Re: MySQL Replication - promote slave

2011-06-22 Thread Matthias Urlichs
tinue to use the slave while restoring the master. Assuming you use only transaction-safe tables, of course. (You should.) -- -- Matthias Urlichs -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Deadlock question

2009-07-07 Thread Matthias Urlichs
Hi, I have the following table and two concurrent jobs, trying to insert data into it. They deadlock on accessing an index which shouldn't collide (the date is part of the index, and the jobs process data for different dates). This is mysql 5.0.51a-24+lenny1~bpo40+1-log. Any ideas? Is this likel

Re: MYSQL PROCESS

2008-08-14 Thread Matthias Urlichs
On Thu, 14 Aug 2008 10:27:29 +0530, Krishna Chandra Prajapati wrote: > Please help me that what should i do. Nothing. It's just multi-threaded. Everything's fine. -- Matthias Urlichs -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubsc

Re: "Data Truncated" warning about join, not insert?

2004-10-26 Thread Matthias Urlichs
Hi, Tom Cunningham wrote: > I have a funny problem: I'm getting thousands of "Data Truncated" > warnings when I insert a single row of data into a table, using an > INSERT...SELECT. I bet that the columns you're joining on have different sizes. -- Matthias Urlich

Re: Index not used for "select distinct"?

2004-10-26 Thread Matthias Urlichs
> '$val'") > } runs almost instantly. MySQL should be able to do that optimization, it's rather obvious (ten million rows, and IP has less than 100 different values). -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED] -- MySQL General Mailin

Re: Change master on replication

2004-10-23 Thread Matthias Urlichs
it. NB, the script needs unique indices (duh ;-) and update timestamps on all tables. (It works without a timestamp, but obviously *way* slower.) -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists

Re: Index not used for "select distinct"?

2004-10-22 Thread Matthias Urlichs
Hi, gerald_clark: > > KEY `Trap` (`IP`,`Type`,`epoch`), > > KEY `IP` (`IP`) > > > Your second key is redundant. True (there's a UNIQUE missing in there). Deleting the first key, however, doesn't change anything. -- Matthias Urlichs | {M:U} IT Design @

Index not used for "select distinct"?

2004-10-22 Thread Matthias Urlichs
*long* time and obviously scans the whole table. Ideas, anybody? MyISAM vs. InnoDB behave identically. 4.0 or 4.1.5 also didn't make a difference; I didn't test 5.0, as this is supposed to be a production system. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]

Re: mysqldump doesn't quote table names

2003-03-08 Thread Matthias Urlichs
be more appropriate. - -- Matthias Urlichs|noris network AG|http://smurf.noris.de/ - -- Mercedes vermietet jetzt den Unterboden der A-Klasse als Werbefläche. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+adRR8+hUANcKr/kRAnXNAKCnyhJ5E/T9/wdLEDg8vQp33nM/

Default-less columns ?

2002-05-07 Thread Matthias Urlichs
Hi, is it possible to have a column which does NOT have a default value, i.e. an INSERT query should fail if no value is given..? The obvious idea, i.e. "CREATE TABLE foo (bar integer not null default null);" doesn't work. -- Matthias Urlichs | noris network AG

Re: Somebody kindly get me off this list

2001-07-15 Thread Matthias Urlichs
At 15:17 -0700 2010-05-02, Angela Neff wrote: >I have tried numerous methods as instructed in the mySQL listerserv >e-mail to get off this list >but am still on it. Can somebody help me out? I got 779 e-mails today. Set your date correctly and try again..! -- Matthia

Re: MySQL.org

2001-07-13 Thread Matthias Urlichs
Hi, > >The article mentions that the Web site will confuse new users, but I >think this one will confuse them even more: >http://mysql.net/ >(for non-Japanese users that is). Korean, actually. -- Matthias Urlichs (being exceedingl

Alternate database handlers / tests

2001-07-05 Thread Matthias Urlichs
shouldn't -- all tests which are not table-specific should work with all tables, and those that are should explicitly specify the table type they need. -- Matthias Urlichs - Before posting, please check: http://www.mysq

Re: auto-increment & sequence question

2001-06-26 Thread Matthias Urlichs
by checking the index on the ID, so it's not a fast solution at present. => Hello MySQL developers: Please add that. Same for the equivalent "... ORDER BY id DESC LIMIT 1" -- Matthias Urlichs - Before pos

RE: Full text search gotchas

2001-06-26 Thread Matthias Urlichs
amples: Commas. Line breaks. The start of the actual data. If you really want words, use "rlike" and \<...\> (assuming that MySQL can do egrep-like escapes). But it'll be dirt slow compared to the fulltext index. -- Matthias Urlichs ---

Re: $sth->{mysql_insertid} not working in 3.23.38?

2001-06-23 Thread Matthias Urlichs
ers, though -- they can't do (some? I forget) binary operations in a SELECT right, and our customers _do_ have some reasonable expectations about SQL compatibility. -- Matthias Urlichs - Before posting, please check:

Re: "Sending data", but no data sent?

2001-03-07 Thread Matthias Urlichs
Hi, Sinisa Milivojevic: > And what happens if you put quotes ??? ... id = '123'... > Then it works, of course. But the nice thing about the numeric select is that it also accepts values like 123x45 or 123-45-67 (but not 1234), which is why I wanted to use it. --

Re: "Sending data", but no data sent?

2001-03-07 Thread Matthias Urlichs
that select * from ticketid where id like "123%" correctly uses the above index, but a more restrictive query, i.e. select * from ticketid where id like "123%" and id = 123 doesn't. This is _not_ the expected result. -- Matthias Urlichs | noris net

Re: "Sending data", but no data sent?

2001-03-07 Thread Matthias Urlichs
ticketid 1 ticket 2 seq A ticketid 1 sender_i1 sender A > Third --with-debug is slower then without. > But not that much slower... -- Matthias Urlichs | noris n

RedHat 7.0 and threading

2001-02-16 Thread Matthias Urlichs
iler problem; Rh 7.0 used a rather buggy gcc :-( and the version -- Matthias Urlichs | noris network AG | http://smurf.noris.de/ -- If wishes were horses, then beggars would be thieves. - Before posting, p

Re: Replication issues

2001-02-07 Thread Matthias Urlichs
Errors like duplicate entries? Those aren't "minor". They're serious data inconsistency problems. -- Matthias Urlichs | noris network AG | http://smurf.noris.de/ -- Once you've tried to change the world you find it'

Re: Linux limited to 256 connections by default?

2001-02-01 Thread Matthias Urlichs
MySQL to only use malloc'ed fd_sets. Until then, setting the fd limit to >1024 is a Bad Idea. -- Matthias Urlichs | noris network AG | http://smurf.noris.de/ -- Californians do it laid back. - Before post

Re: Large text searches

2001-02-01 Thread Matthias Urlichs
at can be searched while being updated. I rather like the relevancy algorithm. The insistence on only indexing full words is more problematic, however. -- Matthias Urlichs | noris network AG | http://smurf.noris.de/ -- Most people ignore most poetry because most poetry ignores mo