Forums

PHP

This topic is locked

A MYSQL/PHP Question

Posted 10 Mar 2003 15:32:36
1
has voted
10 Mar 2003 15:32:36 Robert Kruse posted:
I've mainly been programming with ASP/Access, so I'm pretty new to using PHP/MYSQL. I like the PHP language, but developing on a MYSQL database on the other hand has been troublesome...
The main issue that I've had is that when I I create the database on my development server (local machine), I can't just quickly upload the database to the real server (hosting company), I end up having to recreate the entire database then use PHPMyAdmin to tediously copy all of the records.

Is there something that I am missing in all of this? Is there a way to quickly copy my MYSQL database to a hosting company's MYSQL?

Thanks

Replies

Replied 10 Mar 2003 21:58:39
10 Mar 2003 21:58:39 Brent Colflesh replied:
Dear Contact,
Use the Export tab in phpmyadmin - then Import at your host - depending on permissions, you may have copy the sql file to a host directory.

If your file is relatively small, you can cut & paste the export contents into the SQL execution field in phpmyadmin as well.

This process takes approx. 1 minute or so for my tables w/10,000+ records...

Regards,
Brent

Replied 10 Mar 2003 23:23:11
10 Mar 2003 23:23:11 Iain Stewart replied:
What i do is use a little app called mysql-front, create all my tables on my machine test input data whatever then export the table to an sql file, then on the php admin main page instead of creating tables i run a sql querry, browse to the file on my hd and it imports the table, works a treat for me.

If you post your email i can send you mysql-front if needed.

hope this helps you

Iain

head hurts, 'mental note to self, stop banging head !'
Replied 14 Mar 2003 02:58:22
14 Mar 2003 02:58:22 Robert Kruse replied:
Great, Thanks a lot

Reply to this topic