MySQL Problem

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Tue Jun 07, 2005 6:39 am    Post subject: MySQL Problem Reply with quote

I've installed MySQL, and i can connect to the MySQL-server using MySQL-admin. But when i try to connect using a PHP-script or PHPbb, this message just show up:

phpBB : Critical Error
Could not connect to the database

It looks like PHP-scripts can't connect to the database, does anybody know how to fix this?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jun 07, 2005 8:46 am    Post subject: Reply with quote

Make sure you have made a MySQL database with phpMyAdmin first. TRUSTpunk has just updated his phpBB tutorial so take a look. It may help you straight away.

www.TRUSTAbyss.com
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Tue Jun 07, 2005 9:59 am    Post subject: Reply with quote

The Inquisitor wrote:
Make sure you have made a MySQL database with phpMyAdmin first. TRUSTpunk has just updated his phpBB tutorial so take a look. It may help you straight away.

www.TRUSTAbyss.com


I hate PHPmyAdmin. I use MySQL-Admin instead. And yes, I've created an account and gave it full access to a database. But it still wont work.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jun 07, 2005 10:29 am    Post subject: Reply with quote

Did you follow TRUSTAbyss tutorials? If not it may be worth having a look and maybe using phpMyAdmin on this occasion.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Jun 07, 2005 11:19 am    Post subject: Reply with quote

Have you set the right database host & enabled php_mysql.dll etc?
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jun 07, 2005 11:20 am    Post subject: Reply with quote

Its OK MonkeyNation, we sorted the problem over MSN. Thanks anyway!
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Jun 07, 2005 11:21 am    Post subject: Reply with quote

The Inquisitor wrote:
Its OK MonkeyNation, we sorted the problem over MSN. Thanks anyway!


/me shrugs
Post count :)
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jun 07, 2005 11:25 am    Post subject: Re: MySQL Problem Reply with quote

cmxflash,

Have a look on cgi.log to have the detailed error message that was returned when PHP tried to connect to the database.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Tue Jun 07, 2005 12:14 pm    Post subject: Reply with quote

The problem was that I had PHP4. It works fine with PHP5.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group