Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 13th, 2003, 06:29 AM
maxxD maxxD is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 maxxD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Big newbie... (Dreamweaver, PHP, MySQL)

How, if I am developing in Dreamweaver MX, do I set up a testing server that is different from my remote server?

I have my testing server connected via LAN connection, physically here in front of me. Now, my remote server is provided via an ISP - I don't have permissions to change DB name or password. Also, on my LAN'd testing server, MySQL will not allow me to change my user name or password - I have to use the one I supplied during the installation.

So, during development, I test with a connection to the "myDB" database on host "oldsystem", user name and password set. When I upload the files to my remote server, I go into the "Connections" folder, and replace the testing server values with the appropriate remote server values (I think).

However, when I visit my brand spankin' new data-driven dynamic web site on the web, I'm told that I haven't selected a database, even though the name of the database is very clearly in the connections file.

I'm completely baffled by this point and ready to start pulling out hair.

I develop on a Wintel box, DWMXv6.1, PHP 4.2.3, MySQL 3.23.38. Uploading to coolfreepages.com as a host server.

Any help at all would be greatly appreciated. Thank you.

Reply With Quote
  #2  
Old March 13th, 2003, 08:43 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,224 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 34 m 57 sec
Reputation Power: 174
Dreamweaver MX's 'local/remote/testing' implementation leaves a bit to be desired.

Here's how I have mine setup:

Local:

Site Name: mysite.com
Local Folder: D:\mysite.com
Http address: http://www.mysite.com

Remote:

Access: FTP (i'm assuming you're using FTP)
FTP Host: www.mysite.com
Host directory: /usr/public_html/
login: my_name
password: ********

Testing:

I let MX setup testing automatically - it will default to the exact same settings as your remote server.

Once this is done, MX will allow you to connect to a MySQL DB through its database window

HOWEVER - let me make this clear - the database window does not confer much in the way of functionality to the MX environment. You'll still end up hand-coding almost all of your queries.

Really, all this affords you is the ability to have a quick, visual representation of what your table structure is, and the ability to dragndrop table names into your code view.

You'll be much better off using either a desktop-based GUI app for managing your mysql, or installing phpmyadmin on your webserver. MX does not come anywhere near these 2 solutions for managing your mysql db.

let me know if this helps or not...
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #3  
Old March 13th, 2003, 09:49 AM
maxxD maxxD is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 maxxD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Finally figured it out!

Thanks for the reply - I've now got my set-up approximately the same way. And yeah, the testing/remote server set up leaves alot to be desired, as far as I can tell. I've gotten it to work by setting up my testing server with the DNS settings to my local (testing) username and password. Before I upload any files to the remote server, I have to go through and hand alter the code in the connections.php file to reflect the remote setup, and then adjust the DNS configuration to reflect the remote settings as well. (I was forgetting to adjust the DNS before - that's why I kept getting a "No Database Selected" error.)

This seems like a few odd hoops to have to jump through - is it?

And I have phpMyAdmin installed on the server, though I just figured out how to actually set it up to work right. I'm gonna figure this stuff out if it kills me. And it might.

Again, thanks for taking the time - and yes, your reply did help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Big newbie... (Dreamweaver, PHP, MySQL)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway