devnick
04-22-2011, 01:22 AM
I'm setting up a new site on lunarpages (LP) and I'm having an issue.
On new accounts, LP does not use localhost for MySQL database. They store the DB on a different server, so you use a srv.domain.com or ip address for the Database Host
http://wiki.lunarpages.com/Connecting_to_Databases_in_LPCP
It might be that the install program is hard coded to use localhost, not 100% sure yet, but I can't get by the initial screen (1of4). I opted for the manual install way after testing my DB connection with the right values.
Debug shows
PHP Warning: No database selected in /home/t___/public_html/libs/extensions/ezSQL/mysql/ez_sql_mysql.php on line 257
when I look at the code in ez_sql_mysql.php is appears that in several instances, the value for dbhost is hard coded to 'localhost' instead of using what is in the settings file.
function connect($dbuser='', $dbpassword='', $dbhost='localhost')
Is this my problem?
Help...
On new accounts, LP does not use localhost for MySQL database. They store the DB on a different server, so you use a srv.domain.com or ip address for the Database Host
http://wiki.lunarpages.com/Connecting_to_Databases_in_LPCP
It might be that the install program is hard coded to use localhost, not 100% sure yet, but I can't get by the initial screen (1of4). I opted for the manual install way after testing my DB connection with the right values.
Debug shows
PHP Warning: No database selected in /home/t___/public_html/libs/extensions/ezSQL/mysql/ez_sql_mysql.php on line 257
when I look at the code in ez_sql_mysql.php is appears that in several instances, the value for dbhost is hard coded to 'localhost' instead of using what is in the settings file.
function connect($dbuser='', $dbpassword='', $dbhost='localhost')
Is this my problem?
Help...