I recently used this to backup and restore all the databases in one single file. This works for small sized databases very well and is a quick and easy way to backup and restore all local databases. Very useful for testing and quick restore. Issue this command at the command prompt. mysqldump -u <username> -p […]Read more "MySQL – Backup and Restore All Databases"
In case you wanted to list all views in your database, you could use the following mysql statement SHOW FULL TABLES WHERE Table_type = ‘VIEW’Read more "List MySQL Views"
I have not been able to put this post up for quite some time now. Actually this has to do with mysql gem installation issue on Mac OSX 10.6 (or later). Initially there were issues with mysql gem installationl. Once it got installed and I ran my app, I got the not so famous “uninitialized […]Read more "MySQL + Gem – MySQLCompat Error Solution"
Databases are all about saving data. With DBMS and RDBMS, the entire data became relational and all the records became related to each other as in the real world. So came into existence the concepts of primary keys, foreign keys, foreign key constraints and whole bunch of other terms like composite keys, referential integrity, indexes […]Read more "MySQL – Temporarily disable Foreign Key Checks or Constraints"