login: root

Tag Archive: mysql

changing mysql to innodb_file_per_table=1 with lvm and replication almost without downtime

This conversion was made with mysql 5.5, but it should work with older versions, as replications on mysql were introduced since mysql 3.23.15. Don’t forget the Disclaimer !!! It requires more than the basic knowledge in linux, lvm and mysql. I do NOT take ANY responsibility for Your data loss!!! Long story short:

LET’S BEGIN:

Recover mysql root password

It happens quite often, that You need to do something on database, which was installed long long time ago. And nobody remembers the root password. Kinda good practice is to save mysql password in root user directory with a “.” in front of it (hidden), for example .my.cnf Nobody can read root users directory, except root, and anyway, root user can change mysql password at any time, so it’s not an security issue. If all users are able to see root users directory, that is a problem :) Easy steps how to recover mysql root password.

Close
%d bloggers like this: