I have a VPS running CentOs 6.5, PHP-FPM, Mysql database and Nginx server.
I installed and used mysql by default, which I can see now that it is using InnoDB as the default engine. So, after realizing that my VPS was running out of its 512 RAM usage, I started to optimize Nginx and PHP-FPM. And now, I have learned that InnoDB uses more memory (at-least while reading) than MyISAM engine, so I am trying to change the default engine of mysql to use MyISAM.
The problem is that since I am new at this, I am worried that amidst the process of changing I may corrupt the database, as I barely had done this before.
So, the first thing I have done, is to save the entire Mysql data just to be on the safe side
cp –Rp /var/lib/mysql/*.* /backup
Now according to this answer the easiest way to change engines is
ALTER TABLE table_name ENGINE = MyISAM;
So, now my question is, is it safe, and if it that's all it takes to change directly the engine for my databases, which in turn will result in memory optimization ? Or is there another way.