This topic is locked

Database won't connect.....

1/11/2009 6:12:47 PM
PHPRunner General questions
S
steve007 author

Hi,
I've finished buidling my website using phprunner (excellent product) and I uploaded to a website server but I can't get the database to connect. I've exported & imported the mysql but still no luck. I've changed the dbcommon.php and

dbconnection.php files to accept the new user name and password and still no luck I'm out of ideas.
I built the website using WAMP which has the apache server built in. Locally the website works great as the host server being: localhost user: root but once uploaded just connection errors.
I'm using aceinternethostingplans.com hosting services. I've read and tried most of the suggestions on your site to no avail. If you could tell me (if possible) what file I need to change and what parts of the file.
Thanks for any ideas at all

C
chaintm 1/11/2009

dbcommon.php in your output folder has the settings for the server along with dbconnection.php however, most of what if not all you need is dbcommon.php. Usually in these issues, it is just calling the server database you uploded different then what you called on your personal development server. check those settings and you should be good.
$host="localhost";

$user="root";

$pwd="yourpassword";

$port="";

$sys_dbname="yourdbname";
usually you only need to change password and dbname, depending on your host or admin settings. hope this helps.
PS. sometimes you need to put a port in as well, again all depending on your administration of who runs that server.