mysqdump备份出来一直是0字节。该怎么处理
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
-u root中间加个空格。
------解决方案--------------------
测试成功代码如下:
exec('e:\xampp\mysql\bin\mysqldump -unowphp -pnowphp examples>e:\\back1253.sql')

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP's big data structure processing skills

How to optimize MySQL query performance in PHP?

How to use MySQL backup and restore in PHP?

How to insert data into a MySQL table using PHP?

How to fix mysql_native_password not loaded errors on MySQL 8.4

How to use MySQL stored procedures in PHP?

How to create a MySQL table using PHP?

The difference between oracle database and mysql
