How to set the memory limit for MySQL

There is no variables like memory_limit in MySQL my.cnf file – therefore you can’t explicitly set the memory limit for MySQL. You have to configure your my.cnf file based on a combination of variables. These then multiple together to form the MySQL memory limit. I hope this help someone.

How to import maxmind ip locations in mysql

I’m just building a map of some ip addresses and need to geolocate them. I decided to use the MaxMind database. I found these two brilliant resource without which I could not have imported the databases properly. There are: http://www.dbasquare.com/2012/06/01/implementing-efficient-geo-ip-location-system-in-mysql/ http://nickbartlett.com/wordpress/using-maxmind-geo-city-lite-database-on-your-website/

How to rename a mysql database

There isn’t a simple command to rename a mysql database. You just need to create a new database and then rename all the tables like so: There is also an alternative method by dumping the old database and importing it again like so: I have found the second option to be alot faster both in … Read more

MySQL Problems – a complete reinstall

I rebooted an Ubuntu 12.04 server after upgrading the kernel and MySQL.  However, I found that the new MySQL would not start. When I tried: sudo service start mysql I got: start: job failed to start There were no errors appearing in the /var/log/mysql/error.log and so there was no information to help debug it.  I … Read more