Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Failing to connect to Mysql? Step 3 failure.

URL to your site: N/A - nothing there to show.

Version of PHP-Fusion: 7.07

Any mods you've made to your site: none

Version of PHP: 5.3.1

Version of MySQL: 5.1.45

Have you searched for your problem: yes

If so, what terms did you try: Error: Unable to establish database connection.
Please verify your MySQL settings.

State the nature of your problem: Error: Unable to establish database connection.
Please verify your MySQL settings

Do you have a test account for us?: Nope

All files are 777 as required.

The mysql database names/user are correct, and i have over a dozen or so mysql database all working fine. >.<

Blah blah blah, standard stuff already checked over. Doesn't make sense as all the other scripts work just find with the mysql info.
I bet it's working now.:D
How would it be?
Nope, not working at all still, heh.
Sooo, yea... 2+ weeks, and all I have for help is being trolled by an admin? x.x
All files/folders should not be 777, to begin with.

If what you say is true and accurate there is not much we can help you with.
Actually, I meant the files specifically TOLD to make 777, are indeed, flagged 777.

I have confirmed everything works, and all the settings are correct.

So, could I at least get SOME thoughts why it keeps saying failed to connect, when I have just installed a new script using nearly identical settings to this, and it worked fine?
Does the connection works outside php-fusion?

So if you modify the code below to your mysql configuration?
CodeDownload  
<?php

$db_host = "localhost";
$db_user = "user";
$db_pass = "password";
$db_name = "database";

mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
   echo "Connected to MySQL<br />";
mysql_select_db($db_name) or die(mysql_error());
   echo "Connected to Database ".$db_name;

?>

Quote

MvE Designs wrote:
Does the connection works outside php-fusion?

So if you modify the code below to your mysql configuration?
CodeDownload  
<?php

$db_host = "localhost";
$db_user = "user";
$db_pass = "password";
$db_name = "database";

mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
   echo "Connected to MySQL<br />";
mysql_select_db($db_name) or die(mysql_error());
   echo "Connected to Database ".$db_name;

?>



Ah, sorry for the delay! I wasn't expecting on getting any useful feedback, lol.

Uhm, not sure what it's supposed to do, but it brought up a page called phpinfo() with a buttload of information on it? :P
"localhost" may not be true.
Many, many many many, web hosts uses something else.
Like "mysql123.webhost01.com".

All that info should have been provided by your host.
Its working for me
Thread Information
Author
Replies
11 posts
Views
3348 times
Last Post
Last updated on 10 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Homdax, Craig, wantp, MvE Designs, sabbykat, sandeigobankruptcy