Page 1 of 1

Problem with nuke.sql and a php script. Importing.

Posted: Sat Dec 31, 2005 9:43 am
by danf_1979
I'm developing an automatic phpnuke installer, but I dont seem able to use the provided "nuke.sql" in my script.
This does not seem to work:

Code: Select all

system("mysqlimport --user=$db_user --password=$pass_word $data_base /var/www/installers/php-nuke/sql/nuke.sql");
Any hints?
Thanks.

Posted: Sat Dec 31, 2005 2:16 pm
by danf_1979
Just if someone is looking for this in the future:

Code: Select all

system("mysql -h localhost -u $dbuser -p$pass_word $data_base < /var/www/installers/php-nuke/sql/nuke.sql");
That gets the job done.