Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2012, 11:57 PM   #1
Gold Member
 
CaldwellYSR's Avatar
 
Join Date: Jun 2011
Location: Riverton, WY
Posts: 443
Send a message via AIM to CaldwellYSR Send a message via Skype™ to CaldwellYSR
Default Database connection problem

Okay so I'm working on a bunch of pages for a website I'm hired for. It's got alot of php and I'm working on my local server instead of the site that way I can just upload all the changes when I'm done. Stupid stupid stupid me forgets everything that I changed and figured I'd just upload the whole website folder again and all would be dandy. This was WRONG. All should have been dandy except when I overwrote the database connection information (server, username, password, database) all of the information from the live server got overwritten with the information from my local server. No big deal right? Just change the info to be the correct info.

WRONG!!!

When I first try to test the site I get a big nasty database connection error. Oops I have the wrong database info. Go fix it, upload changes, try again. Same big nasty database connection error. The weird part? It's still trying to connect with 'root@localhost' (using password:YES) instead of the changes I just made. So I empty my browser cache, nothing, use a different browser, nothing, wait a bit to see if the server just hasn't responded yet, nothing. So I put in the url to get to the database info file directly and lo and behold there's all the correct info (I know I know super duper not secure, I haven't done any htaccess stuff yet). So if that file has all the correct info why am I still getting errors from the thing trying to use the wrong info?

PS: Also if I go past the index.php page and into the admin.php page then the database seems to connect just fine? It's running a require_once on the exact same connection file as the index page... what gives?
CaldwellYSR is offline   Reply With Quote


Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:03 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.