Re: calling sql script

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

 



You can use exec

http://ca.php.net/manual/en/ref.exec.php

You will probably need to call the mysql shell like so:

/path_to_mysql/mysql -u user -p password [-h host] -D database -e \\.
filename


Marco
-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide  magazine dedicated to PHP programmer

Come visit us at http://www.phparch.com!

--- Begin Message ---
I need to use a php page to run an .sql script against a mysql db.  How do I
simply call the script from php?  I can take parts of it and execute the
statements but I would like to just call the entire script.

Thanks,
Eddie


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


--- End Message ---
-- 
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