You can execute the following command for getting the “mysql” root password of the server in Ensim control panel.

[root@test]#ensim-python -c “import sys;sys.path.append(\”/usr/lib/opcenter/mysql\”);import mysqlbe;print mysqlbe.read_mysqlpass()”

[or]

[root@test]#ensim-python -c “from vh3 import virthost; from vh3.modules import mysql; print mysql.GetMySQLRootPass()”

Both command will return the mysql root password.

Leave a Reply