wackoblaze
Familiar Face
Hey can anyone tell me what the SQL Error is and if so, how can I fix it?
THANKS!
THANKS!
$con = mysql_connect("localhost","database_username","database_password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
Justin M said:If you open the config file for your forum installation, there will be a command that connects to the mysql server. If it's on the same server as your files it will be localhost, otherwise it's a remote connection. It will look something like this;
Code:$con = mysql_connect("localhost","database_username","database_password"); if (!$con) { die('Could not connect: ' . mysql_error()); }
The other possible solution I have found is that a mysql file has been corrupted, and for that you'll need to get in touch with your hosting provider.
http://bugs.mysql.com/bug.php?id=35737
Serenade_ said:Justin M said:If you open the config file for your forum installation, there will be a command that connects to the mysql server. If it's on the same server as your files it will be localhost, otherwise it's a remote connection. It will look something like this;
Code:$con = mysql_connect("localhost","database_username","database_password"); if (!$con) { die('Could not connect: ' . mysql_error()); }
The other possible solution I have found is that a mysql file has been corrupted, and for that you'll need to get in touch with your hosting provider.
http://bugs.mysql.com/bug.php?id=35737
If you read the post with the error, you would have seen that he is using phpBB, not MyBB. 😉
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.