Iain71 wrote:
> Isn't that where I would store the site's files - but
wouldn't they go
> somewhere else for the testing server? An equivalent to
the inetpub/wwwroot
> folder in windows?
The equivalent of inetput/wwwroot is Macintosh
HD:Library:WebServer:Documents. Any files located here are
accessible
through
http://localhost/
The Sites folder in your home folder is also suitable as a
testing
server. Any files here are accessed through
http://localhost/~username/
~username is the name of your home folder preceded by a
tilde.
> connection name : my_connection_name?
> mySQL server : MySQL 5.0.19 (ie the name of the version
of SQL that's running)?
> username : localhost, or 127.0.0.1?
> password : root?
> database : my_database_name?
>
> These were my best guesses, but just got an error about
the testing server no
> being set up correctly?
They were reasonable guesses, but wrong.
connection name: can be anything, but it mustn't begin with a
number or
contain any spaces
MySQL server: localhost
username: root or the name of a MySQL account
password: the password of the account you are using
database: the name of the database
> This was using local / network, but i haven't tried it
with my hosting account
> - would it be fine with this if i set that all up as the
testing / remote
> server with FTP, and my host's account details?
Yes, you can use a remote server, but it's not as efficient.
You need to
be online whenever you do any testing.
> When i upload the site, would it simply upload the
database too?
No. You have no direct access to the database files on a Mac.
Even on
Windows, there isn't a single file that you can upload. You
need to
create a SQL dump of the database and then use that to
re-create the
database on your remote server. The easiest way to do this is
with
phpMyAdmin.
> I'm sure all of this stuff is fairly simple - once you
know exactly what goes
> where!
It isn't difficult, but there's a lot to learn. You also need
to get
your testing server definition correct in the Dreamweaver
site
definition. The URL prefix depends on whether you store your
files in
Macintosh HD:Library:WebServer:Documents or your Sites
folder. Nothing
works unless you get that right.
If you're completely new to PHP/MySQL, you may find my book
saves you a
lot of wasted time and frustration. It contains full
instructions for
both Mac and PC. It also shows you how to transfer a database
to a
remote server. More details on my site
http://foundationphp.com/dreamweaver8/
--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/