restore mysql backup file using php -


i can backup file mysql database using php , every thing gone nice , when trying restore backup file have mysqli error

you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'insert radpostauth values ('289','ah','ah','access-accept','2017-08-14 10:' @ line 7 

in other hand when take query writed file , past in php admin directly executed without error sure query right have 3 empty line between every insert query when run file first insert query executed error show when want execute second insert query

insert radcheck values ('1229','ah','cleartext-password',':=','ah','','','','','','','','');

insert radpostauth values ('289','ah','ah','access-accept','2017-08-14 10:04:22'), ('290','muh','asdfghjkl','access-accept','2017-08-14 10:05:30'), ('291','sda','sad','access-accept','2017-08-14 11:21:48'), ('292','sda','sad','access-accept','2017-08-14 11:55:40'), ('293','sda','sad','access-accept','2017-08-14 11:59:03'), ('294','sda','sad','access-accept','2017-08-14 12:52:58'), ('295','sda','sad','access-accept','2017-08-14 13:41:41'), ('296','sda','sad','access-accept','2017-08-14 14:50:40'), ('297','sda','sad','access-accept','2017-08-15 09:45:40'), ('298','ah','ah','access-accept','2017-08-16 12:52:09'), ('299','ah','ah','access-accept','2017-08-17 09:19:53');

why have wrong

try using mysqli::multi_query() instead of mysqli::query(). allows execution of multiple queries @ once.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -