Table of Contents

How To change the MySQL DB User and/or Password in the ispCP Config

If you only want to change the password: goto step 4.)

Change ispcp db username (eg. “root” → “ispcproot”)

1. Add the new mysql root user

# mysql -u root -p -e "GRANT ALL PRIVILEGES ON *.* TO 'ispcproot'@'localhost' IDENTIFIED BY 'verygoodpassword' WITH GRANT OPTION;"

2. Open the ispcp.conf

# vi /etc/ispcp/ispcp.conf

3. Search the right line and change the username to the new user:

DATABASE_USER = ispcproot

Change ispcp db password

4. Open the ispcp.conf

# vi /etc/ispcp/ispcp.conf

5. Delete your MySQL Password in the Config about line 92 like this:

DATABASE_PASSWORD = 

6. Start the ispcp-db-passwd Script

/var/www/ispcp/engine/ispcp-db-passwd

Now type your new MySQL root Password

Please Enter Your New Database Password:
Please Repeat Your New Database Password:
Database Password Updated Successfully!

7. That´s it!

Now the GUI should work again.