Forum Moderators: coopster

Message Too Old, No Replies

Anyone here know how to import/upload sql files

from another server on phpmyadmin 2.2.2

         

taskmaster

12:59 pm on Mar 29, 2003 (gmt 0)

10+ Year Member



I need to upload the files I have as backup on my computer, but how to do thet in the old version of phpmyadmin 2.2.2, before on the other hosting I had phpmyadmin 2.4.0 and there where no problem.

zeus

andreasfriedrich

1:34 pm on Mar 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just upload your dump file a PHP [php.net] script like the following one and run it from your browser.


system [php.net]("/usr/bin/MySQL [mysql.com] -u%%USERNAME%% -p%%PASSWORD%% -h%%HOST%%
%%DATABASE%% < %%DOCUMENT_ROOT%%upload_dir/dump.sql", $fp);
if ($fp==0) echo "imported data"; else echo "error importing data";

Andreas