- Joined
- Mar 13, 2005
- Posts
- 4,662
- Reaction score
- 184
This is driving me mad. I'm trying to individually dump 2 mysql databases using mysqldump but it is not working. The databases are about 30 meg in size, this is what one of the .sql dump file looks like:
That's it, no tables or data are being dumped.
I've tried the command line and a php script, same result. This is my php file:
Any ideas why it's not working or does anyone know of an alternative to the mysqldump command?
Cheers, Grant
-- MySQL dump 10.9
--
-- Host: localhost Database: db_name
-- ------------------------------------------------------
-- Server version 4.1.22-standard
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
That's it, no tables or data are being dumped.
I've tried the command line and a php script, same result. This is my php file:
<?php
$command="mysqldump --host=localhost --user=username --password=password database_name > dump.sql";
system($command);
?>
Any ideas why it's not working or does anyone know of an alternative to the mysqldump command?
Cheers, Grant