View previous topic :: View next topic |
Author |
Message |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Tue Jun 07, 2005 6:39 am Post subject: MySQL Problem |
|
|
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 |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jun 07, 2005 8:46 am Post subject: |
|
|
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 |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Tue Jun 07, 2005 9:59 am Post subject: |
|
|
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 |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jun 07, 2005 10:29 am Post subject: |
|
|
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 |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Tue Jun 07, 2005 11:19 am Post subject: |
|
|
Have you set the right database host & enabled php_mysql.dll etc? _________________
 |
|
Back to top |
 |
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jun 07, 2005 11:20 am Post subject: |
|
|
Its OK MonkeyNation, we sorted the problem over MSN. Thanks anyway! _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Tue Jun 07, 2005 11:21 am Post subject: |
|
|
The Inquisitor wrote: | Its OK MonkeyNation, we sorted the problem over MSN. Thanks anyway! |
/me shrugs
Post count :) _________________
 |
|
Back to top |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jun 07, 2005 11:25 am Post subject: Re: MySQL Problem |
|
|
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 |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Tue Jun 07, 2005 12:14 pm Post subject: |
|
|
The problem was that I had PHP4. It works fine with PHP5. |
|
Back to top |
|
 |
|