PHP & MySQL error

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: macek, egami, gesf

darth_linux
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Jun 10, 2004 10:24 pm

PHP & MySQL error

Postby darth_linux » Sat Jun 12, 2004 11:57 pm

:help: I'm trying to install phpBB 2 bulletin. I can get up to the install page and once i fill in all the stuff and click on "Install" it gives me this error:

Code: Select all

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in F:\Program Files\Apache Group\Apache2\htdocs\db\mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in F:\Program Files\Apache Group\Apache2\htdocs\db\mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
:eek:

When I open the mysql4.php in dreamweaver and go to lines 330 & 331 this is what the lines say:

Code: Select all

             
              $result['message'] = mysql_error($this->db_connect_id);
              $result['code'] = mysql_errno($this->db_connect_id);
8-O

Can any one tell me what is wrong with it. Please help. :help:

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Sun Jun 13, 2004 12:02 am

Do you have mysql installed and running as a service?

If yes have you created a database already for phpbb.

phpbb will create your tables. But the database has to be created first

User avatar
Ben
New php-forum User
New php-forum User
Posts: 41
Joined: Mon Jul 26, 2004 2:37 pm
Location: Remagen / Germany
Contact:

Re: PHP & MySQL error

Postby Ben » Mon Jul 26, 2004 3:13 pm

darth_linux wrote::help: I'm trying to install phpBB 2 bulletin.

if i've problems like that, i always ask in the specialized forums to this "software"..

--> http://www.phpbb.com/phpBB/

:)


Return to “PHP & MySQL Security”

Who is online

Users browsing this forum: No registered users and 1 guest