I just installed a script from Fantastico and it cannot connect to the database. How can I fix this? Print

  • 35

It seems that some fantastico installations place an extra space after the database name before the end ' in the configuration file.

For example:

// Database name
$phpAds_config['dbname'] = 'user_adserver ';

So if you see a script that has all the DB settings correct and yet throws an error about permissions denied, or unable to access the script double check there are no extra spaces in the config files. This was never causing issues until we upgraded MySQL to a newer version (that is more specific about these issues)

So it would be changed to:

// Database name
$phpAds_config['dbname'] = 'user_adserver';

Was this answer helpful?

« Back

Powered by WHMCompleteSolution