
Originally Posted by
henker
Just a shot in the dark - cPanel doesn't by chance check if there is a pass="foobar" in the existing .my.cnf ?
Because if it does, it would miss an existing password="foobar" and overwrite the .my.cnf again.
That does appear to be the problem. Since we setup the .my.cnf on server install with pass, it never checks for password. The problem is going to be unique to DNSONLY installs who have a custom mysql setup.
Here is a simple patch to correct the problem (it will be published in the next builds)
Code:
Index: MysqlUtils.pm
===================================================================
--- MysqlUtils.pm (revision 33467)
+++ MysqlUtils.pm (revision 33468)
@@ -49,7 +49,7 @@
return _getmydb_param( $param, $mycnf );
}
-sub getmydbpass { return _getmydbparm( 'pass', @_ ); }
+sub getmydbpass { return (_getmydbparm( 'pass', @_ ) || _getmydbparm( 'password', @_ )); }
sub getmydbhost { return _getmydbparm( 'host', @_ ); }
sub db_exists {
If you have a ticket open the internal case # is 19514