Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Mysqldump ????

Status
Not open for further replies.
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:

-- 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
 
Has this worked ever?
What version of mysqldump have you got?
There was a version which did this i seem to remember.
 
Has this worked ever?
What version of mysqldump have you got?
There was a version which did this i seem to remember.

I've never used it before so unsure. How do I check the version please?

Thanks, Grant
 
Have you tried through a shell, might be php timing out or limits.
 
OK, should have tried this a while ago! I've just dumped a very small database and that worked fine so I'm guessing this is related to the size of the database.

Any ideas?

Thanks, Grant
 
For an alternative GUI - you can always try Navicat. It has a .php you can upload file for http tunnelling in should 3306 not be open on server
 

It's on there already but the cpanel licence has expired. I got a trial license this morning but the license update on the server keeps failing which I think is due to the ip address recently changing. I changed the A record on the domain earlier to the new ip address so it will probably be easier to wait for that to resolve correctly and then update the license.

Thanks, Grant
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom