Now I understand your issue. I see bash so I will assume its eitherUbuntu. Run it like this:
nano /usr/local/CyberCP/CyberCP/settings.py
# after editing run the next command
nano /etc/cyberpanel/mysqlPassword
# after editing run the next command
nano /home/cyberpanel/.my.cnf