Could not connect to the database

From: Date: Tue, 15 Feb 2005 10:17:26 +0000
Subject: Could not connect to the database
Groups: php.install 
Request: Send a blank email to php-install+get-15667@lists.php.net to get a copy of this message
I have a virgin installation of FC3 with the default Apache, MySQL, and PHP, and I downloaded and installed the latest phpBB. I have created a database, user, and password for phpBB. I can use $ mysql -u uuuuuu -p dddddd from a shell to open MySQL and see that part working. When I go to the install.php page for phpBB and give the details (with user@localhost) it says "Could not connect to the database". I created a phpinfo() page at silmaril.ucc.ie/index.php which shows everything as up and running, but a test page at silmaril.ucc.ie/test.php (code below) returns the empty <html><body></body></html> file. I tried it with iptables turned off as well: same result. There is obviously something else that needs enabling, but I cannot see what it should be. ///Peter test.php (username and password replaced) <? mysql_pconnect("localhost","uuuuuu" "pppppp") or die (mysql_error()); $q="SHOW DATABASES"; $res=mysql_query($q); while ($row=mysql_fetch_array($res) ) { print $row[Database]."<br/>"; } ?>

« previous php.install (#15667) next »