I am having a persistant problem with CPanel resetting the MySQL privilages tables.
1) I created a database
2) I set the privilages in PHP Myadmin
3) Everything works fine
4) 18 hours later Cpanel has reset them and obliterated my changes.
Here is more info:
- I have created the table from SSH, with ROOT access.
- I added the permissions, using root access like so:
mysql_query("DELETE FROM USER WHERE USER='bd_bigmetal'@'204.15.192.194';");
mysql_query("REVOKE ALL PRIVILEGES ON * . * FROM 'bd_bigmetal'@'204.15.192.194';");
mysql_query("REVOKE GRANT OPTION ON * . * FROM 'bd_bigmetal'@'204.15.192.194';");
mysql_query("FLUSH PRIVILEGES;");
mysql_query("GRANT ALL PRIVILEGES ON * . * TO 'bd_bigmetal'@'204.15.192.194' IDENTIFIED BY '$pass' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ;");
- The permissions tables appear to be obliterated at the same time CPanel does some update (but I can't tell what kind of update)
- I have also added my IP to the "Additional Hosts" in the MySQL section of Cpanel, hoping that would make a difference.
- Once the Privilages are reset, my connection error to MySQL is :Access denied for user 'bd_bigmetal'@'204.15.192.194' to database 'bd_bigmetal'
What other information can I supply that could help anyone diagnose this?
[email protected]
1) I created a database
2) I set the privilages in PHP Myadmin
3) Everything works fine
4) 18 hours later Cpanel has reset them and obliterated my changes.
Here is more info:
- I have created the table from SSH, with ROOT access.
- I added the permissions, using root access like so:
mysql_query("DELETE FROM USER WHERE USER='bd_bigmetal'@'204.15.192.194';");
mysql_query("REVOKE ALL PRIVILEGES ON * . * FROM 'bd_bigmetal'@'204.15.192.194';");
mysql_query("REVOKE GRANT OPTION ON * . * FROM 'bd_bigmetal'@'204.15.192.194';");
mysql_query("FLUSH PRIVILEGES;");
mysql_query("GRANT ALL PRIVILEGES ON * . * TO 'bd_bigmetal'@'204.15.192.194' IDENTIFIED BY '$pass' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ;");
- The permissions tables appear to be obliterated at the same time CPanel does some update (but I can't tell what kind of update)
- I have also added my IP to the "Additional Hosts" in the MySQL section of Cpanel, hoping that would make a difference.
- Once the Privilages are reset, my connection error to MySQL is :Access denied for user 'bd_bigmetal'@'204.15.192.194' to database 'bd_bigmetal'
What other information can I supply that could help anyone diagnose this?
[email protected]
Last edited: