CuriousCliff
New member
I'm trying to setup a php page that will allow me to create a mysql database, and then build tables, views, etc. by importing a file previously created by mysqldump. When I get to the following command:
passthru("/usr/bin/mysql -u $username -p$password $dbname < /home/service/dump.sql");
I get this error:
Warning: system() [function.system]: Unable to fork [/usr/bin/mysql -u dbMaker -pbogusPwd fakeDB < /home/service/dump.sql] in /home/jboss/jboss-web-2.1.1.CR3/webapps/ROOT/newdb.php on line
37
My server is Ubuntu Hardy Heron, php 5.2.3, and mysql 4.1.20
I've been unsuccessful in diagnosing this problem. So here I am.
passthru("/usr/bin/mysql -u $username -p$password $dbname < /home/service/dump.sql");
I get this error:
Warning: system() [function.system]: Unable to fork [/usr/bin/mysql -u dbMaker -pbogusPwd fakeDB < /home/service/dump.sql] in /home/jboss/jboss-web-2.1.1.CR3/webapps/ROOT/newdb.php on line
37
My server is Ubuntu Hardy Heron, php 5.2.3, and mysql 4.1.20
I've been unsuccessful in diagnosing this problem. So here I am.