Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Advice? Local/Remote Testing Server - php/MySQL

 
   Graphic Forums (Home) -> SQL Integration RSS
Next:  Photoshop 7 - transparent hilighting  
Author Message
Charles Newbury

External


Since: Jul 09, 2007
Posts: 3



(Msg. 1) Posted: Mon Jul 09, 2007 11:50 am
Post subject: Advice? Local/Remote Testing Server - php/MySQL
Archived from groups: macromedia>dreamweaver (more info?)

I'm using DW8 on OS 10.4.10.

At this point I have a local testing server set up using OS X's built-in
Apache for one of my sites which also uses some php forms. Works fine, but
I'm at the point of development where I will need a MySQL database. My
webhost has MySQL and php so that's good.

I found it fairly easy to start the MySQL DB locally but am completely
unsure, if I go this route, how to get the locally developed MySQL DB to my
webhost server. So far, I've been experimenting and find DW easily connects
to the local DB and has the scripts to list, input and modify data.

On the other hand, I believe I can set up the remote webhost as my testing
server and develop the DB there. It has phpMyAdmin via browser. If I do,
there should be no problem syncing the data?

Nevertheless, I feel more comfortable developing locally. That way, if I
mess up, at least the mistakes won't automatically show up on the internet.
But my concern also is that scripts pointing to a local virtual server,
won't automatically translate on upload to the remote webhost DB.

Can anyone clear this issue up for me or point to information that will?

Thanks

Charles Newbury

 >> Stay informed about: Advice? Local/Remote Testing Server - php/MySQL 
Back to top
Login to vote
Charles Newbury

External


Since: Jul 09, 2007
Posts: 3



(Msg. 2) Posted: Mon Jul 09, 2007 1:17 pm
Post subject: Re: Advice? Local/Remote Testing Server - php/MySQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7/9/07 12:31 PM, in article f6tnsi$829$1@forums.macromedia.com, "David
Powers" <david.DeleteThis@example.com> wrote:

> Charles Newbury wrote:
>> On the other hand, I believe I can set up the remote webhost as my testing
>> server and develop the DB there.
>
> Not a good idea.
>
>> It has phpMyAdmin via browser.
>
> Install phpMyAdmin locally, and develop your database locally. When
> you're ready for it to go live on your website, use phpMyAdmin locally
> to export your data. You can then use the remote version of phpMyAdmin
> to import it into the remote database.

Thank you! I'm not too familiar with this Export local DB...do I have to
create the tables/fields on the remote before I can import the locally
exported data or will remote phpMyAdmin create the tables/fields for me from
the locally exported data?

Additionally, would it be anywhere feasible to test site files locally but
connect remotely to the MySQL DB?

 >> Stay informed about: Advice? Local/Remote Testing Server - php/MySQL 
Back to top
Login to vote
David Powers

External


Since: Dec 28, 2005
Posts: 340



(Msg. 3) Posted: Mon Jul 09, 2007 5:31 pm
Post subject: Re: Advice? Local/Remote Testing Server - php/MySQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Newbury wrote:
> On the other hand, I believe I can set up the remote webhost as my testing
> server and develop the DB there.

Not a good idea.

> It has phpMyAdmin via browser.

Install phpMyAdmin locally, and develop your database locally. When
you're ready for it to go live on your website, use phpMyAdmin locally
to export your data. You can then use the remote version of phpMyAdmin
to import it into the remote database.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
 >> Stay informed about: Advice? Local/Remote Testing Server - php/MySQL 
Back to top
Login to vote
David Powers

External


Since: Dec 28, 2005
Posts: 340



(Msg. 4) Posted: Mon Jul 09, 2007 9:29 pm
Post subject: Re: Advice? Local/Remote Testing Server - php/MySQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Newbury wrote:
> Thank you! I'm not too familiar with this Export local DB...do I have to
> create the tables/fields on the remote before I can import the locally
> exported data or will remote phpMyAdmin create the tables/fields for me from
> the locally exported data?

When you export the data, phpMyAdmin has options that allow you to
recreate the table structure on the remote database.

> Additionally, would it be anywhere feasible to test site files locally but
> connect remotely to the MySQL DB?

No.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
 >> Stay informed about: Advice? Local/Remote Testing Server - php/MySQL 
Back to top
Login to vote
Sonjay

External


Since: Aug 23, 2005
Posts: 23



(Msg. 5) Posted: Sat Jul 14, 2007 10:21 am
Post subject: Re: Advice? Local/Remote Testing Server - php/MySQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I develop exactly the way you're approaching it: Local MySQL development,
then when everything's ready, move it to the server.

I just do a dump of the db locally, then use the SQL area of phpMyAdmin to
plop it into the server's MySQL. Bada-bing, you're done.

So long as you're careful to mirror the exact db name, username, and pass on
your local machine as what they are on the remote server, your scripts
should connect to the db just fine. I always set up the db first on the
remote server, because they usually prepend the account's username to the db
name and db username. Then I just create the exact same db and user on my
local machine.

--
Sonjay


On 7/9/07 11:50 AM, "Charles Newbury" wrote:

> I'm using DW8 on OS 10.4.10.
>
> At this point I have a local testing server set up using OS X's built-in
> Apache for one of my sites which also uses some php forms. Works fine, but
> I'm at the point of development where I will need a MySQL database. My
> webhost has MySQL and php so that's good.
>
> I found it fairly easy to start the MySQL DB locally but am completely
> unsure, if I go this route, how to get the locally developed MySQL DB to my
> webhost server. So far, I've been experimenting and find DW easily connects
> to the local DB and has the scripts to list, input and modify data.
>
> On the other hand, I believe I can set up the remote webhost as my testing
> server and develop the DB there. It has phpMyAdmin via browser. If I do,
> there should be no problem syncing the data?
>
> Nevertheless, I feel more comfortable developing locally. That way, if I
> mess up, at least the mistakes won't automatically show up on the internet.
> But my concern also is that scripts pointing to a local virtual server,
> won't automatically translate on upload to the remote webhost DB.
>
> Can anyone clear this issue up for me or point to information that will?
>
> Thanks
>
> Charles Newbury
>
 >> Stay informed about: Advice? Local/Remote Testing Server - php/MySQL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dreamweaver adding local testing server MySQL-HELP - I have a website on register.com and I am using MySQL for the first time. My DB and table have been created using MyPHPAdmin. Now I want to use my Dreamweaver to setup a testing server that will be local and then upload asp pages after testing. Can..

Local Testing Using SQL Server - I have a SQL server db set up locally. I have a local DSN set up. I have DW connected to the SQL server db and can create Bindings and use Server Behaviors without any problem. When I try to test the site locally in the browser, I get the following..

connecting DW, php and MySQL to remote server. - I'm fairly new to web authoring and I am stuck. Would someone be kind enough to help me over this last hurdle to getting my website working. I have got DW8, php and MySql working fine on my own machine using Apache but I don't seem to be getting it....

Trying to connect to MySQL server on local machine for - Hi all: I'm experimenting with PHP/MySQL for purposes of developing a corporate database with a browser-based interface. I'm not being able to connect to the database (which is running on the same local machine). My problems seem to have to do wit...

mysql transfer local database schema to remote database - Hi, I've tried using mysql administrator to use the backup and restore facilities to transfer a local development database schema (tables and data) to my remote mysql database. Although the process seems to complete successfully, no tables are added...
   Graphic Forums (Home) -> SQL Integration All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]