0

I recently bought a piece of software and am having a hard time installing it. The instructions tell me to:
1.create a database on my server(I have cpanel)
2.create a user
3.Enter this information in dbsetup.php file
4.Create a directory and ftp the files in the public_html folder
5.Chmod severl php files
6.Open my browser and I should see various tables on the screen.
My probelems:
1.This error message shows up on MySql database:
PHP $dbh=mysql_connect ("localhost", "", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("");
2.When I open my browser, I receive the:
500 Internal Server Error and a 404 Not Found error
Also, when editing the dbsetup.php file, what should go into the "host" field?

Sorry for the length

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by pty
0

host should be where your database server is located; if it is on the same box as apache/php then set host to 'localhost', if its elsewhere use the IP address of the database server.

May also be worth reading this.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.