MySQL performance tuning
September 24, 2006 4:28 PM
Subscribe
How to improve MySQL (5.0.22-max-log, PPC) + InnoDB table performance?
I am using a default my.cnf for a "large system" installation.
I have pre-existing InnoDB tables which work fine with the my.cnf file in its default state.
After stopping the mysqld service, I uncomment InnoDB-specific variables in my.conf and restart the service.
The service starts fine, but when I run my web application, I get exceptions thrown from attempting to login (an authentication table sits within my InnoDB-based table set) or access the data within.
If I stop the service, revert back to the deafult my.cnf, and restart the service, my application runs fine again.
What can I do to improve the performance of my MySQL server if I cannot edit the my.cnf file? How can I fix the my.cnf settings, or the server, so that I can add InnoDB variables?
I have the MySQL Performance Tuning book from O'Reilly. If there is a relevant paragraph or setting I have overlooked from this book, please point it out!
Moving to another database server is not an option, so please do not suggest dropping MySQL.
posted by Blazecock Pileon to computers & internet (9 comments total)
1 user marked this as a favorite
posted by Blazecock Pileon to computers & internet [+ add to favorites] [!]
What, exactly, does "pre-existing" mean? Did you upgrade your database from a previous version? If you created the database in another instance of MySQL, have you properly created the mysql user table to match on the new machine? Have you changed platforms from Windows to UNIX, and have some capital characters in table names? Have you tried the basic InnoDB troubleshooting steps, and tried to collect information from the monitors?
More importantly, if your app is running correctly with default MyISAM table settings, and turning on InnoDB causes your problem, how sure are you that your tables aren't MyISAM in the first place? Has installation of your Web app created duplicate MyISAM database and table structures, and a working authorization table?
posted by paulsc at 5:04 PM on September 24, 2006