PDA

View Full Version : n00b needs some PHP BB2 Help !


Corey_Taylor
08-27-04, 06:46 AM
Hey all,

I am a total N00b to PHP anything. Im from australia and have tried my BEST to put phpBB on my hosting domain. Heres some details:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/atfclan.everywebhost.com/phpBB2/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/www/atfclan.everywebhost.com/phpBB2/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/www/atfclan.everywebhost.com/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database

Ive done EVERYTHING right practically, but i just dont no what is going on? My host supports PHP i have checked, and the versions match, but i cant do it :( thanx for any help guys.

Andrew
08-27-04, 01:14 PM
Hi Corey - this can only be one of a few issues:

1) Youve set your DB server name up incorrectly - If you used localhost - contact your host and ask them for their mysql server name - if you didnt use localhost - try that instead - for example - on our cluster - if you used "localhost" for DB server name, this would not work, as we have separated our MySQL server onto a separate resource - so, you would have to use mysql.cartikahosting.com
2) Check with your host and see if they add a particular prefix onto your DB Name and DB UN - somthing like xyz_dbname & xyz_dbusername
3) make sure your DB user has DBA access (data base admin)


Your problem is most certainly 1 or more of the above..

Hope this helps..

*EDIT* - thought I would add - all this information can be found and edited in your configure.php file

Dustin Verley
08-27-04, 07:38 PM
What it sounds like to me you put your database information in incorrect, I wouldnt say it was the localhost, possibly database username and password or database name, you know what I am saying.