I am running WAMP5 1.5.0 on my computer, and am using it as a testing environment as I build various websites. When I access the "http://localhost/" address through a browser, such as Internet Explorer, and I access a ".PHP" page, there are no problems. It displays the page in the browser correctly and without any issues.
However, on one of the pages, I am trying to access a MySQL database that is currently located on a live server. When I upload the page and view it live, it all works correctly, and it accesses and uses the database as it should.
However, when I view it through "http://localhost/", it displays this message:
Quote:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'id294759_News'@'localhost' (using password: YES) in c:\documents and settings\Primary\Desktop\local server\Website\Home\Home\Home(Home).php on line 262
MySQL Error: 1
|
How can I make the local page access the live MySQL database, or, at least, how can I replicate the MySQL database locally, somehow, to make it display the information?