Re: Problem running multi master replication

2006-04-08 Thread Leo
> > Hold on, "(it should be, its the same file)", you're saying that db2 on > server1 and server2 are using the same database files (datadir)? If that's > the case, why? That doesn't make any sense. > > > Atle > - > Flying Crocodile Inc, Unix Systems Administrator > Im replying from another accoun

Re: Insert speed on table with 7M rows but small row size.

2006-04-08 Thread Alexey Polyakov
On 4/8/06, Kevin Burton <[EMAIL PROTECTED]> wrote: > Is there anyway I can tune MySQL to improve this operation? There's a fundamental problem with B-trees - inserts in a big B-tree can be very slow, cause it may require tree rebalancing. One workaround for this problem is partitioning. MySQL 5.1

Fw: COUNT() Efficiency

2006-04-08 Thread Rhino
I'm sending this back to the mailing list where it belongs; that way, other people can jump in to help and others can learn from the discussion, either now or via the list archive. - Original Message - From: "Martin Gallagher" <[EMAIL PROTECTED]> To: "'Rhino'" <[EMAIL PROTECTED]> Sent

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Eric Braswell
You can't specify multiple IPs for bind-address. Let's back up. You want to run both 4.0 and 5.0, and you want to be able to set it up so it's 'easy' to connect to each separate instance, i.e. without having to specify different ports. This is pretty easy to do. In this case you use separate c

Re: COUNT() Efficiency

2006-04-08 Thread Rhino
- Original Message - From: "Martin Gallagher" <[EMAIL PROTECTED]> To: Sent: Saturday, April 08, 2006 6:34 PM Subject: COUNT() Efficiency Hi, If I did a query like: SELECT COUNT(id) AS count1, COUNT(id) AS count2 FROM table WHERE id<100 Would MySQL run the COUNT() calculation once

COUNT() Efficiency

2006-04-08 Thread Martin Gallagher
Hi, If I did a query like: SELECT COUNT(id) AS count1, COUNT(id) AS count2 FROM table WHERE id<100 Would MySQL run the COUNT() calculation once or twice? Cheers -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROT

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Yves Goergen
On 08.04.2006 23:14 (+0100), Eric Braswell wrote: > Yves Goergen wrote: >> How can I enter multiple IP addresses there? This isn't documented >> online. I need to bind it to one specific external address and >> additionally to localhost (127.0.0.1). The other server is only bound to >> another exte

Re: Web Farm Design

2006-04-08 Thread Eric Braswell
It is not possible to make specific suggestions based on the information you've provided. The list would need to know the nature and platform of your application, the amount and type of the traffic you see, your current mysql vs. apache load (like queries, requests per sec), current server conf

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Eric Braswell
Yves Goergen wrote: On 04.04.2006 23:17 (+0100), Eric Braswell wrote: my.cnf: bind-address = Will probably do the trick. How can I enter multiple IP addresses there? This isn't documented online. I need to bind it to one specific external address and additionally to localhost (127.0.0.1). T

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Yves Goergen
On 08.04.2006 18:31 (+0100), Kishore Jalleda wrote: > bind-address = Doesn't work. MySQL binds to address 255.255.255.255 instead. Also a colon-separated list does this. > bind-address = IP1 > bind-address = IP2 This always takes the last option, so if I add 127.0.0.1 after the other IP, it wil

Re: Web Farm Design

2006-04-08 Thread Eldon Ziegler
I found High Performance MySQL http://highperformancemysql.com/ very useful. Also, throwing some money at the people at MySQL should get you a highly informed answer. One of the first tests I run for a customer is to see if the structure of their data and indices match the needs of the queries

what is this? --> errno=2006 errmsg=Server gone

2006-04-08 Thread Martin Olsson
Hi, I get this weird error message: ErrNo: 2006 Error: MySQL server has gone away. What does it mean? I couldn't find anything useful on google and the error message isn't exactly "verbose".. :) regards, martin -- MySQL General Mailing List For list archives: http://lists

Re: mysql on tmpfs

2006-04-08 Thread Atle Veka
That would be pretty dangerous if I ever needed to say rebuild a table and run out of memory. Atle - Flying Crocodile Inc, Unix Systems Administrator On Sat, 8 Apr 2006, Gabriel PREDA wrote: > If there is plenty of free memory... > Can't you completly disable SWAP ? > -- > Gabriel PREDA > S

Re: Problem running multi master replication

2006-04-08 Thread Atle Veka
On Sat, 8 Apr 2006, Leonardus Setiabudi wrote: > when i log into server 2 using port 3307, i can see the data in db2 > updated, which means the replication succeed (show slave status tells > the same thing), and the same thing with server 3, i can see db3 > updated, also with server 4 where db4 up

Re: mysql on tmpfs

2006-04-08 Thread Gabriel PREDA
If there is plenty of free memory... Can't you completly disable SWAP ? -- Gabriel PREDA Senior Web Developer On 4/7/06, Atle Veka <[EMAIL PROTECTED]> wrote: > > However, even though > there is plenty of free memory linux makes weird decisions from time to > time, temporarily killing performan

Re: Web Farm Design

2006-04-08 Thread Kishore Jalleda
> We are currently building a webfarm to replace our all in one box solution. We are experiencing problems when we get linked to a site like the drudgereport and we are seeing 1000's of hits a minute. Both apache and mysql start chocking and we get dropped because we cant deliver content. I am tryi

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Kishore Jalleda
I would be tempted to say bind-address = or Just a list of such statements one per line bind-address = IP1 bind-address = IP2 . . But since you said this is not properly documented, I would encourage you to give this a shot and find it out for yourself on a Spare/Test Mysql Bo

Re: Restrict MySQL server 4/5 to single IP

2006-04-08 Thread Yves Goergen
On 04.04.2006 23:17 (+0100), Eric Braswell wrote: > my.cnf: > > bind-address = > > Will probably do the trick. How can I enter multiple IP addresses there? This isn't documented online. I need to bind it to one specific external address and additionally to localhost (127.0.0.1). The other serve

Fw: Web Farm Design

2006-04-08 Thread Elias
My block digrams didn't come out so well. Fig 1. Pix ---> Load Blanace ---> 4 servers running apache and mysql > SAN holdin the data and scripts Fig 2. Pix---> Load Balance -> 3 servers running apache ---> 1 server runnin mysql > SAN holding data and scripts - Original Messag

Web Farm Design

2006-04-08 Thread Elias
We are currently building a webfarm to replace our all in one box solution. We are experiencing problems when we get linked to a site like the drudgereport and we are seeing 1000's of hits a minute. Both apache and mysql start chocking and we get dropped because we cant deliver content. I am try

Re: Bulk Duplicate Inserts

2006-04-08 Thread Dan Buettner
Are you wanting to insert into two tables (messages, social_networking) with one statement? If not, an INSERT / SELECT might work well for you. Like so: INSERT INTO messages (author, recipient, subject, body, timestamp) SELECT 1, social_networking.user_id, 'dfdf', 'adfgdf', 1144463208 FROM soc

RE: MySQL 5.0.18-standard - Wrong record (sorry, I cannot find a better subject)

2006-04-08 Thread Patrick Herber
Hello, I wanted only to report that I removed and re-added the Index as Martijn suggested and now it's OK. Thanks again for your help Regards, Patrick -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Social Network, linking members

2006-04-08 Thread Philippe Poelvoorde
Hi, 2006/4/8, Dan Buettner <[EMAIL PROTECTED]>: > Seems like what you're looking for is a way to query your database > more efficiently/quickly, and still find all links in either > direction. > > I think the use of a UNION statement should allow this. Basically > write your query twice, joining

Re: upgrading problem

2006-04-08 Thread balaraju mandala
Yes Eric You are correct. Thankyou for your reply. It helped me. Bala