Bladeyflowness wrote:
> I have an online Mysql database which came with my
server space. I have
> accessed it and populated it with a table that has data
in it. I did this via
> the my provider's 'phpMyAdmin running on localhost-48'.
I now want to create a
> connection to this database through Dreamweaver.
You don't need MySQL on your local computer, if you want to
use your
remote server for testing. However, setting up a local
testing
environment is usually more efficient and secure. It means
you can try
things out locally without affecting your online presence. If
you have
never used PHP/MySQL before, it's better to make your
mistakes in private.
Nevertheless, if you want to use your remote server for
testing, you
need to define the testing server correctly in your
Dreamweaver site
definition. The value of Host directory in the Testing Server
definition
should point to the folder that's your site root (in other
words, the
folder that contains your site's home page). The value of URL
prefix
must point to the same place, but using the website address.
Host directory: /home/mydomain/www/htdocs/
URL prefix:
http://www.mydomain.com/
Dreamweaver uploads a hidden folder called _mmServerScripts
to your site
root. You can't see it in Dreamweaver, but you should be able
to see it
in your host's control panel or an external FTP program. If
it's not
there, you cannot connect.
When creating the MySQL connection in a site, the value for
MySQL server
should be exactly the same as your hosting company tells you
to use for
the server address. Frequently, it's simply localhost, but
some hosting
companies locate the database on a different server, so you
need to use
that address.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/