I am trying to import a sql file throug php via shell_exec function. My code is as follows,
shell_exec("C:wampbinmysqlmysql5.6.12bin>mysql -h localhost -u root blank_db < C:wampwwwmy_websqlblank_db.sql")
My database name = "blank_db". and there is no password set for mysql.
The above command is running successfully in cmd. but not it in php
Aucun commentaire:
Enregistrer un commentaire