2008年7月22日星期二

Re: [fw-db] executing .sql file using zend_db

is it possible to run the mysql command through the connection? ie:

mysql --username=tony --password=xxx --database=dbname < script.sql

...through $db->getConnection()->exec? Although the load data infile works,
my backups have the statements to create the tables if they don't exist,
which is nice to have. Trying that system call on it's own does nothing on
my computer, and i'm also worried shell_exec or system will be disabled on
the clients server.
--
View this message in context: http://www.nabble.com/executing-.sql-file-using-zend_db-tp18569584p18587440.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: