For Database;
Resetting the database root password.
/www/server/panel/tool.py
root_mysql varible change
root_mysql = '''#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
pwd=$1
/etc/init.d/mysqld stop && mysqld_safe --skip-grant-tables&
sleep 10
echo 'Changing password...';
mysql -uroot -e "UPDATE mysql.user SET password=PASSWORD('48186hasokeyk') WHERE user='root'"
sleep 5
/etc/init.d/mysqld start
echo '==========================================='
echo "The root password set ${pwd} successuful"''';
I am fixed but.
When I make a transaction from here. The database root password is changing.