MySQL problems...

Status
Not open for further replies.

linglingzero

New Member
Messages
118
Reaction score
0
Points
0
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'zeromsg_phpbb1'@'localhost' (using password: YES) in /home/zeromsg/public_html/msgforums/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/zeromsg/public_html/msgforums/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/zeromsg/public_html/msgforums/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database

I looked through the db files and since I'm a complete noob at MySQL i can't solve it. The only thing I can think about doing is restarting the database and start from stratch again, but I really don't want to lose all the information. Any ideas?
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
Make sure the name of the database starts with zeromsg_ like you have for the user.
 

linglingzero

New Member
Messages
118
Reaction score
0
Points
0
Here's line 48-

$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);

Lines 330 and 331-

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

poringy

New Member
Messages
95
Reaction score
0
Points
0
You could backup the parts that you want to keep, create a new database with the same name, allow the same user to the database, and then reupload the backup.
 
Status
Not open for further replies.
Top