When you find yourself in a pinch, and you don’t know the limits of a certain Red Hat Enterprise Linux version, you can find this information in one place. Whether you want to know RHEL’s CPU or memory limitations, you can find them here:
Have you tried MySQLTuner yet?
It's free and it makes optimizing your MySQL server easier than ever!
Archive for September, 2007So, this is not really related to the normal system administration topics discussed here, but it’s Sunday, so I feel like something different. I downloaded the new Growl 1.1 tonight and I wanted to install GrowlMail to get mail notifications from Apple Mail. I went through the package installer, started Mail, and nothing happened. The preference pane didn’t exist either. After doing a bit of forum digging, I found these two commands to run in the terminal:
It worked like a charm and I was all set. If you haven’t tried it out yet, download the new Growl 1.1 and install it. There’s a ton of new features, and it’s been worth the wait. We all enjoy having the GoogleBot and other search engine robots index our sites as it brings us higher on search engines, but it’s annoying when some user scrapes your site for their own benefit. This is especially bad on forum sites as they’re always a target, and it can severely impact server performance. To hunt down these connections when the spidering is happening, simply run this command:
The IP’s that are making the most connections will appear at the top of the list, and from there, you can find out which unwelcome spider is scraping your site. If you’ve run MySQL in a replication environment, or if you’ve enabled binary logging for transactional integrity, you know that the binary logs can grow rather quickly. The only safe way to delete the logs is to use PURGE MASTER LOGS in MySQL, but if you want MySQL to automatically remove the logs after a certain period of time, add this in your my.cnf:
I rolled out a new MySQLTuner update tonight and made the following changes:
Coming up soon is InnoDB support and additional per-thread buffer checks. I hear a lot of complaints about Plesk’s backup routines and how they can bring a server to its knees. You can reduce the load (except for mysqldumps) by renicing pleskbackup. If you want something really handy, use this Perl scriptlet that I wrote:
It will transmit your backups to another server via SSH, and it will reduce the priority to the lowest available. This combination will reduce CPU usage and disk I/O throughout the backup. In the spirit of Labor Day, there will be no new items today. Plus, I worked today, and I’m tired. If an .frm file that corresponds to an InnoDB table gets deleted without using DROP TABLE, MySQL won’t let you create a new table with the same name. You’ll find this in the error log:
Luckily, the error tells you exactly how to fix the problem! Simply make a new database and create a table that matches your old .frm file. Stop MySQL, move the .frm file from the new database’s directory back to the old database’s directory. Start MySQL, and then run DROP TABLE like normal. This will remove the table from the ibdata tablespace file and allow you to create a new table with the same name. Further reading: |
Entries (RSS)