Hello,
Heres my situation:
I have a php script that executes the exec command to make a mysqldump of a given database to a file:
mysqldump -uroot -p12345 --add-drop-table -Q mydatabase --result-file=dumpfile.sql
To restore the database i use:
mysql -uroot -p12345 mydatabase < dumpfile.sql
This works very well because i want to make a full backup from my webpage and then restore it if necessary.
Now the problem is this, i had to move my site to a new server, and the new server runs php in safe mode, so i'm able to run the mysqldump but i'm not able to run the mysql < dumpfile because the "<" is not permited... dont know why...
Is there a way to use the LOAD DATA INFILE to import the file generated by mysqldump? The dumpfile.sql deletes and creates the tables
I tried the LOAD DATA INFILE but with no success, i have no experience with this command.
So to resume, is it possible to import a full database with the LOAD DATA FILE command from a mysqldump file, all done via webpage?
Thank in advance.