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

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
danf_1979
Forum Commoner
Posts: 72
Joined: Sun Feb 20, 2005 9:46 pm

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

Post 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.
danf_1979
Forum Commoner
Posts: 72
Joined: Sun Feb 20, 2005 9:46 pm

Post 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.
Post Reply