transfer data from a DB to another

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

Post by bouncer »

thanks Everah :D

i have one more question, what is wrong in this command, i need to specify the table-name ?

i have tried this, and it dont work. :cry:

Code: Select all

$command = "mysql $dbname < $backupFile;"
system($command);
thanks in advance
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Have you actually ran that command at the command line to see what the result will be?
bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

Post by bouncer »

yes, but nothing happens... :?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

It might need to be done with mysqladmin, but I could be wrong.
bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

Post by bouncer »

can i use msqldump to dump a table-name.dbf the same to dump a msql table-name ?

can i populate a mysql table using a table-name.dbf file ?

if yes, how ?

thanks in advance
Post Reply