i uploaded my php files directly without changing anything and when i finish filling out the install form i get this message
phpBB : Critical Error
Could not connect to the database
can you guys help me and figure out my problem. i think i messed up during my upload or i did not follow the correct instructions
-dragon
PhP Install problem
-
- New to forums
- Posts: 1
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sat Apr 05, 2003 11:38 pm
- Contact:
This is a copy of the file that I use to connect to mysql database. I havn't had a problem with it yet
$dbh = mysql_connect($hostname, $user, $pass) or
die("Unable to connect to mySQL");
$selected = mysql_select_db($database, $dbh) or
die("Unable to connect to database $database.");
The $hostname is the name of the server, usually localhost. Use your username and password. You also need to specifiy the name of the database. My guess is that it's your username.
If your just using a forum or blog that you downloaded, check through the file that is used for setting up the database (usually the same place where you make other configurations). Each one is different. Double-check the readme file and double-check that you have the username and password type correctly.
$dbh = mysql_connect($hostname, $user, $pass) or
die("Unable to connect to mySQL");
$selected = mysql_select_db($database, $dbh) or
die("Unable to connect to database $database.");
The $hostname is the name of the server, usually localhost. Use your username and password. You also need to specifiy the name of the database. My guess is that it's your username.
If your just using a forum or blog that you downloaded, check through the file that is used for setting up the database (usually the same place where you make other configurations). Each one is different. Double-check the readme file and double-check that you have the username and password type correctly.
zDWIz Winfang