Jump to content

Moved MySQL database to new server, cannot quite link it all back up


mgreen81

Recommended Posts

Hi all,

 

I was recently given the task of moving a MySQL database from an ageing server to a newer shiny one. The databse is used on our company's internal webpage (written in PHP) as a number generator for documents.

 

On the PHP page, you should see 2 dropdown boxes, on which you can select project/document type from the MySQL database. You then click the submit button and it generates a unique document code.

 

It works fine on the old server, but we are getting rid of that server in the new year.

 

I setup PHP fine on the new server, and copied from the old server the database and pasted it in the correct place on the new server. I then copied/pasted the PHP webpages and updated the code/usernames/passwords to match the new server.

 

Everything seems to be ok, and appears as it should except for the fact that the 2 dropdown boxes are empty.

 

I know (well I presume) it is connecting to the database ok, becuase if I change the username or password in the php code to make it incorrect, the page just dispays a message saying that it cannot connect to the database.

 

But why can I not see the data?

 

Help please!....This is driving me nuts :-(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.