Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Price Freeze on Business Hosting frm £4.95/month

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:42:36 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 31-07-2010, 02:22:29 PM     #1 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Mysqldump ????

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:

Quote:
-- 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:

Quote:
<?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
grantw is offline  
Old 31-07-2010, 02:39:55 PM     #2 (permalink)

 
accelerator's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 4,918
accelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond repute

I use MySQL Administrator to create backups of databases.

Rgds
accelerator is online now  
Old 31-07-2010, 03:43:05 PM     #3 (permalink)

 
jimm's Avatar
 
Join Date: Feb 2008
Location: North Yorkshire
Posts: 673
jimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond repute

Has this worked ever?
What version of mysqldump have you got?
There was a version which did this i seem to remember.
__________________
Fov.cc | EvoOwners.co.uk | Forget Debt | xFTP | Jaimee | Linux Book | ESE Pods | Music Quotes
Affordable Server Admin - PM me!
jimm is offline  
Old 31-07-2010, 04:18:36 PM     #4 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Quote:
Originally Posted by jimm View Post
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
grantw is offline  
Old 31-07-2010, 04:26:21 PM     #5 (permalink)

 
aquanuke's Avatar
 
Join Date: May 2005
Location: Surrey
Posts: 1,993
aquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond repute

Have you tried through a shell, might be php timing out or limits.
aquanuke is offline  
Old 31-07-2010, 04:27:34 PM     #6 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Quote:
Originally Posted by accelerator View Post
I use MySQL Administrator to create backups of databases.

Rgds
Tried this and get this when i try and run it

Quote:
"Gtk-WARNING ***: cannot open display"
So given up on it..............

Cheers, Grant
grantw is offline  
Old 31-07-2010, 04:28:17 PM     #7 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Quote:
Originally Posted by aquanuke View Post
Have you tried through a shell, might be php timing out or limits.

Yep, have been using the command line most of the time. Driving me insane.

Grant
grantw is offline  
Old 31-07-2010, 04:32:48 PM     #8 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

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
grantw is offline  
Old 31-07-2010, 04:34:04 PM     #9 (permalink)

 
aquanuke's Avatar
 
Join Date: May 2005
Location: Surrey
Posts: 1,993
aquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond repute

How about phpmyadmin

http://www.phpmyadmin.net/home_page/index.php
aquanuke is offline  
Old 31-07-2010, 04:37:21 PM     #10 (permalink)

 
Nick's Avatar
 
Join Date: Apr 2008
Posts: 730
Nick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond repute

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
Nick is online now  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Web Hosting from UK2 from just 99p


All times are GMT. The time now is 12:42:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".