obi1kanobe Posted November 16, 2006 Share Posted November 16, 2006 Hi all,I'm somewhat of a HALF-newbie to the php world, i've done everything from simple php site building, to editing large php databases. Usually I can figure things out, but this time I feel like I'm between a rock and a hard place!!!Right now, I've been asked to move a pretty large database for a business from one server to another, and I've managed to get the site up and running until I get this error stating:SQL/DB Error -- [No database selected]When I go into my ez_sql.php file, all is pointed to the proper database's directory.Within this directory, there's a "distributors" table, which has all our distributors listed (obviously) with information that's supposed to show up on the front page, yet... nothing comes up, except for that error... PLEASE HELP!Thank you all!:: edit ::In addition... I think the problem is stemming from the following:SQL/DB Error -- [error selecting database (NAME OF OUR DATABASE)!1. Are you sure it exists?2. Are you sure there is a valid database connection?]to answer the first question that it asks... yes, there is such database... it's in there, and i'm looking at it...PLEASE help!!!thanks again! Link to comment https://forums.phpfreaks.com/topic/27469-sqldb-error-no-database-selected-bs/ Share on other sites More sharing options...
bqallover Posted November 16, 2006 Share Posted November 16, 2006 Have you changed the 'host' variable or definition in your database code to point to the new server? If not, your script might still be looking at the old server. Link to comment https://forums.phpfreaks.com/topic/27469-sqldb-error-no-database-selected-bs/#findComment-125646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.