There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot browser bsod computer connection cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Issue With WAMP5 1.5.0 (Website Testing Environment)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
05-Feb-2006, 02:14 AM #1
Arrow Solved: Issue With WAMP5 1.5.0 (Website Testing Environment)
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?

Last edited by TW.87 : 05-Feb-2006 03:01 AM.
php guy's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Dec 2004
Location: Bowlaro Lanes, WA
Experience: That's Mr. Clueless to you
05-Feb-2006, 03:19 PM #2
If your host has cPanel, you can download your database and add it to your local mysql
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
05-Feb-2006, 04:26 PM #3
Quote:
Originally Posted by php guy
If your host has cPanel, you can download your database and add it to your local mysql
My server provider is using cPanel, so I have a copy of the MySQL database ready to use.

Can you describe, in detail, how I can add it to my local MySQL?
php guy's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Dec 2004
Location: Bowlaro Lanes, WA
Experience: That's Mr. Clueless to you
05-Feb-2006, 05:27 PM #4
The easiest way would be to make a php page like "adddb.php" or some name, connect to your DB, then copy all the SQL from the download and run it on your db, assmuning you know the basics of connecting to mysql with php.
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
05-Feb-2006, 05:34 PM #5
I know how to connect a ".PHP" file to a database on a live server, but I have no idea if, or how, I have a MySQL configuration locally.

I'm not sure on how to set-up a local MySQL database.
php guy's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Dec 2004
Location: Bowlaro Lanes, WA
Experience: That's Mr. Clueless to you
05-Feb-2006, 05:52 PM #6
Oh, I assumed you had mySql installed localy already.

To install it localy, go to this site, http://www.webmasterstop.com/48-2.html

It has a very good step by step process to install mySql on your local machine and config it to work with php.
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
05-Feb-2006, 06:33 PM #7
Okay, I've just installed MySQL and I followed the instructions that were on that page.

How can I now make that work with my website that I am developing in WAMP5 1.5.0?
php guy's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Dec 2004
Location: Bowlaro Lanes, WA
Experience: That's Mr. Clueless to you
06-Feb-2006, 02:00 PM #8
Ohh, WAMP5, I never worked with that before. Do you have to use WAMP5 or would you be able to install apache?
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
06-Feb-2006, 07:51 PM #9
I don't really mind what I have to do if I can get this to work the way I'd like to.

What's the procedure in installing Apache?
php guy's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Dec 2004
Location: Bowlaro Lanes, WA
Experience: That's Mr. Clueless to you
06-Feb-2006, 08:05 PM #10
http://www.webmasterstop.com/48-1.html give you a step by step process on installing everything you need to have an effecent local testing enviorment. Once you installed apache, you can skip past the mysql part since you already did that.
TW.87's Avatar
Senior Member with 308 posts.
 
Join Date: Dec 2005
Location: Canberra, Australia
Experience: Intermediate
06-Feb-2006, 09:24 PM #11
Quote:
Originally Posted by php guy
http://www.webmasterstop.com/48-1.html give you a step by step process on installing everything you need to have an effecent local testing enviorment. Once you installed apache, you can skip past the mysql part since you already did that.
Thank you...I'll give that a go and see what happens!
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:00 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.