C:\www\aa\adm"/> C:\www\aa\adm">
Home > Backend Development > PHP Tutorial > mysqdump备份出来一直是零字节。

mysqdump备份出来一直是零字节。

WBOY
Release: 2016-06-13 11:19:06
Original
787 people have browsed it

mysqdump备份出来一直是0字节。。。。。
php备份mysql:

第一种方法:
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump -uroot -hlocalhost -proot aa>C:\\www\\aa\\admin\\bak\\".$_POST[b_name];
exec($mysqlstr);备份出来是0字节
第二种方法:
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump -uroot -hlocalhost -proot aa>..bak";备份出来依然是0字节,
语句到底该怎样写,请求各位了。


------解决方案--------------------
先mark一个我去研究一下
------解决方案--------------------
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump -u root -proot aa  > C:\www\aa\admin\bak\20130327.sql
Copy after login


-u root中间加个空格。
------解决方案--------------------
测试成功代码如下:
exec('e:\xampp\mysql\bin\mysqldump -unowphp -pnowphp examples>e:\\back1253.sql')
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template