Koozali.org: home of the SME Server

Trying to install phpBB but can't connect to database

WEBlance

Trying to install phpBB but can't connect to database
« on: December 14, 2006, 06:22:25 PM »
I'm trying to install phpBB but can't connect to database. Just getting this message:

phpBB : Critical Error

Could not connect to the database

What could it be?

MySQL is up and running. I have a couple of osCommerse running on the server without problems. I'm running SME 7.

/Carl

pippin

Trying to install phpBB but can't connect to database
« Reply #1 on: December 14, 2006, 07:27:52 PM »
Well i have 3 phpbb forum on my server and you just have to look in the root directory there is the root password for your sql database or you have to make a new user in mysql.Its your choice

Offline Mjohnson

  • *
  • 172
  • +0/-0
Trying to install phpBB but can't connect to database
« Reply #2 on: December 14, 2006, 07:46:53 PM »
phpBB works quite well with SME 7.  

Did you create a new database??

Did you create a new database user?

If so  did you give the appropriate permisions to the user??

Is your config.php file correctly modified??

Folder/File permissions set up per phpBB recommendations?

Some more information would be very helpful in accessing the issue.

Thanks

MJ
......

WEBlance

Trying to install phpBB but can't connect to database
« Reply #3 on: December 14, 2006, 09:52:04 PM »
Ok, I might not have explained myself correctly.

It goes like this:

I access the domain - domain.dk/forum (where the installation files are located)

I get the installation screen, fill out the fields and click "Start Install"

And the screen says:

phpBB : Critical Error

Could not connect to the database

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Trying to install phpBB but can't connect to database
« Reply #4 on: December 14, 2006, 10:20:34 PM »
Quote from: "pippin"
Well i have 3 phpbb forum on my server and you just have to look in the root directory there is the root password for your sql database
... which you should never use for any application because this user has way to many privileges for an application account.
Quote from: "pippin"
or you have to make a new user in mysql.Its your choice
That's indeed your only good choice.
Quote from: "WEBlance"
I access the domain - domain.dk/forum (where the installation files are located)

I get the installation screen, fill out the fields and click "Start Install"

And the screen says:

phpBB : Critical Error
What values have you filled in? Perhaps a user account for mysql that does not exist? A database that does not exist?

To create a database:
Code: [Select]
mysql
create database databasename;

To make a user after you have created a database with full privileges on all tables of the newly created database:
Code: [Select]
grant all privileges on databasename.* to user@domain identified by `password`;(Be carefull don't forget the ticks around the password.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

WEBlance

Trying to install phpBB but can't connect to database
« Reply #5 on: December 14, 2006, 10:36:51 PM »
Quote from: "cactus"
Quote from: "pippin"
Well i have 3 phpbb forum on my server and you just have to look in the root directory there is the root password for your sql database
... which you should never use for any application because this user has way to many privileges for an application account.
Quote from: "pippin"
or you have to make a new user in mysql.Its your choice
That's indeed your only good choice.
Quote from: "WEBlance"
I access the domain - domain.dk/forum (where the installation files are located)

I get the installation screen, fill out the fields and click "Start Install"

And the screen says:

phpBB : Critical Error
What values have you filled in? Perhaps a user account for mysql that does not exist? A database that does not exist?

To create a database:
Code: [Select]
mysql
create database databasename;

To make a user after you have created a database with full privileges on all tables of the newly created database:
Code: [Select]
grant all privileges on databasename.* to user@domain identified by `password`;(Be carefull don't forget the ticks around the password.


Thanks cactus!

This worked for me!

/Carl

Offline byte

  • *
  • 2,183
  • +2/-0
Trying to install phpBB but can't connect to database
« Reply #6 on: December 14, 2006, 11:45:46 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

pippin

Trying to install phpBB but can't connect to database
« Reply #7 on: December 20, 2006, 07:59:58 PM »
I know its not a good choice to use the root account of mysql or databse,but i am the only one to access the databse and in front i have smoothie taking care of unwanted dicheads trying to get access :D

Maybe it can be dangerous to do so cactus but i take the chance. :D

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Trying to install phpBB but can't connect to database
« Reply #8 on: December 20, 2006, 08:13:14 PM »
Quote from: "pippin"
I know its not a good choice to use the root account of mysql or databse,but i am the only one to access the databse and in front i have smoothie taking care of unwanted dicheads trying to get access :D

Maybe it can be dangerous to do so cactus but i take the chance. :D
The problem is not you as only user but anyone who accesses the forum. If they somehow manage to include some code which will be interpretated by mysql they can alter stetings or even worse delete tables or data, this is called sql injection.

Please take a little bit of time and create a mysql user for your phpBB system it will only take a few seconds and will improve security as SME is developed for security. How to do this is in one of the posts above.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)