Re: Anyone using LVM for backing up?

2009-06-22 Thread David Sparks
Little, Timothy wrote: We have a 20 gig db (that includes the MYIs and MYDs and FRMs). We are wondering how long LVM snapshots take.. in that how long might the DB be read-locked? Do we have to read-lock it and flush tables? Take a look at mylvmbackup which takes care of flushing tables,

Re: Oracle , what else ?

2009-04-24 Thread David Sparks
Joshua D. Drake wrote: I would expect that MySQL in two years likely won't exist except on the most tertiary level. Most new projects will be developed in either PostgreSQL, Interbase or one of the forks (MariaDB, Drizzle). Sincerely, Joshua D. Drake -- PostgreSQL - XMPP:

Re: Oracle , what else ?

2009-04-24 Thread David Sparks
Glyn Astill wrote: Begone Postgres troll! Oh the hostility of a scorned mysql user. Joshua has posted no more FUD than you mysql chaps have done yourselvs over the past few days. You were worried about the future and he's posted a few ideas of how you can prepare. No he didn't. He posted

Re: MySQL runs on 16-cores server

2009-04-13 Thread David Sparks
Right now if you want a more scalable *current* version of MySQL, you need to look to the Google patches, the Percona builds (and Percona XtraDB, a fork of InnoDB), or OurDelta builds. Is there a webpage somewhere that compares and contrasts the above patchsets? I thought the Google patches

Partitioning suggestion/workaround needed

2009-04-09 Thread David Sparks
Hi all, I'm just creating my first partitioned table and have run into a bit of a snag. The table primary key is a double and I want to create partitions based on ranges of the key. I have read the Partition Limitations section in the docs which states that the partition key must be, or resolve

Re: Upgraded to 5.0.x from 4.1.x and ORDER BY sucks!

2007-05-22 Thread David Sparks
Gmail User wrote: I had perfectly working complex queries both with LEFT JOIN and without and they were returning results in under a second. After upgrade to 5.0.x, the same queries would return results in 20-30 second range. I had a similar problem once (not related to 4.x-5.x though), it

mysqlmanager can't tell diff between clean shutdown and crash?

2007-01-30 Thread David Sparks
I shut down a database using: mysqladmin -uroot -pxxx shutdown and the db shutdown as expected. But then it restarted! My only guess is that mysqlmanager can't tell the difference between a clean shutdown and a crash. Maybe this is expected? But then what good is the shutdown command

mysqlmanager safe?

2007-01-24 Thread David Sparks
I've switched over to the mysqlmanager startup system instead of the old mysqld_safe because thats the only supported method in mysql5. I needed to restart a DB so I did a `/etc/init.d/mysqlmanager restart` which seemed to work, but there were some problems: - the daemon was no longer accepting

Re: Fwd: innodb_log_files_in_group

2006-12-28 Thread David Sparks
Hi Juan, The default (and recommended) is 2. The log files, save the trasactions into file in circular order. This files are like a redolog files in oracle. This log file are useful when you recover your database after some crash for example or when you use a replication mysql.

innodb_log_files_in_group

2006-12-27 Thread David Sparks
Is there any benefit/reason to set innodb_log_files_in_group to something other than 2? Thanks, ds -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: interesting benchmark at tweakers.net

2006-12-19 Thread David Sparks
Jochem van Dieten wrote: On 12/19/06, David Sparks wrote: I noticed an interesting benchmark at tweakers.net that shows mysql not scaling very well on hyperthreading and multicore cpus (see links at end of email). Does anyone know what engine they are using for their tests? (Innodb, myisam

interesting benchmark at tweakers.net

2006-12-18 Thread David Sparks
I noticed an interesting benchmark at tweakers.net that shows mysql not scaling very well on hyperthreading and multicore cpus (see links at end of email). Does anyone know what engine they are using for their tests? (Innodb, myisam, berkdb heheh) In fact they seem to show that postgres is a

Re: mysqldump slows to crawl

2006-12-11 Thread David Sparks
Mathieu Bruneau wrote: I never experience any dump that were slow due to the index. The index aren't dumped anyway they will be recreate when you import them back so it shouldn't matter. (And that will cause problem if the db is running) so I wouldn't drop the index on your table if I were

Re: Issues with MySQL x86_64 crashing

2006-12-07 Thread David Sparks
Kevin Old wrote: Hello everyone, We have a 4 CPU master server running the 5.0.27 RPM x86_64 version of MySQL with a mix of InnoDB and MyISAM tables. We normally run at 1500 queries/per second and lately, the server will all of a sudden lock up and we are forced to restart mysql. That

Re: alter table ... import tablespace NFG?

2006-12-07 Thread David Sparks
David Sparks wrote: I want to move 3 100GB .ibd files into a new DB. I followed the instructions here: http://dev.mysql.com/doc/refman/5.0/en/multiple-tablespaces.html But it doesn't work: mysql alter table reports discard tablespace; Query OK, 0 rows affected (0.04 sec) mysql

alter table ... import tablespace NFG?

2006-12-06 Thread David Sparks
I want to move 3 100GB .ibd files into a new DB. I followed the instructions here: http://dev.mysql.com/doc/refman/5.0/en/multiple-tablespaces.html But it doesn't work: mysql alter table reports discard tablespace; Query OK, 0 rows affected (0.04 sec) mysql alter table reports import

speed up index creation on existing tables?

2006-10-05 Thread David Sparks
I have a table with ~100,000,000 rows. I recently discovered that I need to start using one of the non-indexed columns in WHERE clauses. As expected the performance is horrid. I decided to bite the bullet and create an index (innodb): mysql show full processlist\G ***

Re: daemon crash when shutting down large databases

2005-09-30 Thread David Sparks
the output of 'SHOW VARIABLES' statement, 'SHOW STATUS' statement and your configuration file. Include the amount of physical memory. David Sparks wrote: mysql usually crashes when being shutdown. The machine is a dual AMD64 w 8GB RAM running mysql-4.1.14 on Gentoo linux with a ~40GB

config diff: query time went from 70 mins to 20 seconds

2005-09-30 Thread David Sparks
Here is a config diff that made mysql usable again. As the database grew in size, buffer sizes in the config were increased to try to boost mysql performance. Unfortunately it didn't work as expected. As the config was tweaked, mysql slowed down even more. Removing all settings from the

Re: daemon crash when shutting down large databases

2005-09-28 Thread David Sparks
Gleb Paharenko wrote: Hello. = 77591546 K Really - something is wrong with your memory settings - MySQL is using about 77G of memory (or you have such a cool server :)! Please send the output of 'SHOW VARIABLES' statement, 'SHOW STATUS' statement and your configuration file. Include the

Re: daemon crash when shutting down large databases

2005-09-28 Thread David Sparks
I forgot to include the output of show variables and show status in the last message :( mysql show variables\G *** 1. row *** Variable_name: back_log Value: 50 *** 2. row *** Variable_name:

daemon crash when shutting down large databases

2005-09-23 Thread David Sparks
mysql usually crashes when being shutdown. The machine is a dual AMD64 w 8GB RAM running mysql-4.1.14 on Gentoo linux with a ~40GB database. I had similar crashes running 4.0.24 on an x86 running a ~275GB database. I always use `mysqladmin shutdown` rather than the init scripts to shutdown

Re: explain not explaining long running query?

2005-08-08 Thread David Sparks
Hi all! Gleb Paharenko wrote: Hello. I have a query that is taking days to complete (not good). If I change Really, not good. What does SHOW PROCESSLIST report about the thread of this query? The query has been running for ~5 days now: Id: 27977 User: root Host:

explain not explaining long running query?

2005-08-04 Thread David Sparks
I have a query that is taking days to complete (not good). If I change the query so that it selects less rows it runs fast. I ran an explain on both queries and it didn't give any hints as to why the one query is taking days to run. In fact explain knows how many rows each query will examine.

mysql-test-run --external?

2005-06-21 Thread David Sparks
According to the README, mysql-test-run supports an --external option: db1 mysql-test # grep -a1 external README If you want to run the test with a running MySQL server use the --external option to mysql-test-run. However it doesn't actually support it: db1 mysql-test # ./mysql-test-run

Re: mysql-test-run --external?

2005-06-21 Thread David Sparks
Petr, Thanks for the reply! I think you are looking for --extern option of the test suite. I corrected the README file. The changes should be propagated to the public repository soon, but you could check the commit mail for more details right now: http://lists.mysql.com/internals/26266

myisam insta corruption in 4.1.12

2005-06-21 Thread David Sparks
db1 corruption # cat my.sql DROP TABLE IF EXISTS service_contacts; CREATE TABLE service_contacts ( croeated datetime NOT NULL default '-00-00 00:00:00' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO service_contacts VALUES ('2006-06-14 10:27:40'); db1 corruption # mysqladmin -u root