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.
Not a member yet? Click here to register.
Forgot Password?

Failing to connect to Mysql? Step 3 failure.

Asked Modified Viewed 3,891 times
S
sabbykat
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

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

Version of PHPFusion: 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.
0 replies

10 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I bet it's working now.:D
0 replies
W
wantp
W
wantp 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

How would it be?
0 replies
S
sabbykat
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Nope, not working at all still, heh.
Edited by sabbykat on 01-06-2010 04:35,
0 replies
S
sabbykat
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Sooo, yea... 2+ weeks, and all I have for help is being trolled by an admin? x.x
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

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.
0 replies
S
sabbykat
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

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?
0 replies
M
MvE Designs
M
  • Junior Member, joined since
  • Contributed 49 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

Does the connection works outside php-fusion?

So if you modify the code below to your mysql configuration?
<?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;

?>
0 replies
S
sabbykat
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Quote

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

So if you modify the code below to your mysql configuration?
<?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
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

"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.
0 replies
— 1 month later —
S
sandeigobankruptcy
S
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

Its working for me
0 replies

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
W
W
wantp 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 1 thread in the forums
M
M
  • Junior Member, joined since
  • Contributed 49 posts on the community forums.
  • Started 1 thread in the forums
S
S
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
S
S
  • Newbie, joined since
  • Contributed 1 post on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet