mysql <database> < ****.sql thru a php script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a large sql file that I would like to load into mysql database from a
remote client.  Is there a way through a php script to do this?

I have tried $query = " <contents of database.sql> "; (where the contents of
the sql file was pasted into the query)

then $results = mysql_db_query("database", $query);

but it fails.  Any ideas or experience?

R Race



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux