Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 01-20-2004, 06:23 PM
Rosie Rosie is offline
Hatchling Croc
 
Join Date: Jan 2004
Location: Seattle, WA, USA
Posts: 10
Default

I do believe my database (a forum database from my previous server) is too large to restore with phpMyAdmin - it's about 76MB (it's got about 29,000 posts and a lot of mods). So I'm trying it with cPanel... I did the Backup/Restore with cPanel tutorial and I've gotten to the page that shows the little up arrow and the words "Restoring Database", but no tables or anything show up (in the tutorial, it shows someone restoring their site and a bunch of filenames show up as being successfully restored).

I'm also surfing phpMyAdmin and I see the database there, but it's empty. Is it just a matter of a large file taking a really long time, or is the file too big for the system? I've heard there are ways to break down large databases into smaller files, but I'm not sure how I'd go about doing this... I tried copying and pasting sections at a time (in order) into my current database but after I'd been working for three hours and only completed 5% of the database by copying and pasting, I decided just to try to restore the whole file at once. I really don't know if it's working, though.

I am really baffled as to the best way to go about doing this... I would really appreciate if someone could give me some advice! Thank you
Reply With Quote
  #2  
Old 01-22-2004, 06:30 PM
GatorBrent's Avatar
GatorBrent GatorBrent is offline
HostGator Staff
 
Join Date: Oct 2002
Location: houston, texas
Posts: 2,977
Default

Upload your large database in sql format to your public_html folder

Once done email us your domain, username, password, your database name you have created, and the file name you have uploaded to public_html file name should be something.sql

We can then dump it in for you.
__________________
Gators love marshmallows.
Reply With Quote
  #3  
Old 01-23-2004, 01:31 AM
Rosie Rosie is offline
Hatchling Croc
 
Join Date: Jan 2004
Location: Seattle, WA, USA
Posts: 10
Default

Oh, goodness me. I am so terrible at this... I keep posting problems here and then solving them, and forgetting to follow up or delete my thread *blushes furiously* I am so sorry for the trouble - I've gotten everything straightened out, though. I backed up tables in the database individually and then broke down the ones that needed it, and my forum is up and running currently. Again, I am VERY sorry for the trouble!!! Thank you for your generosity, though, I think you are an excellent host
Reply With Quote
  #4  
Old 05-13-2006, 04:04 PM
Catwoman Catwoman is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 1
Arrow Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by GatorBrent
Upload your large database in sql format to your public_html folder

Once done email us your domain, username, password, your database name you have created, and the file name you have uploaded to public_html file name should be something.sql

We can then dump it in for you.
Can you do this for me? it would be a great help. I alrealdy have the sql file in my ftp.
Reply With Quote
  #5  
Old 05-13-2006, 04:14 PM
GatorJay's Avatar
GatorJay GatorJay is offline
HostGator Staff
 
Join Date: Apr 2005
Location: Texas
Posts: 705
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by Catwoman
Can you do this for me? it would be a great help. I alrealdy have the sql file in my ftp.
Quote:
Originally Posted by GatorBrent
Once done email us your domain, username, password, your database name you have created, and the file name you have uploaded to public_html file name should be something.sql
Email that information to support@hostgator.com
__________________
Affiliate Director
Check out the HostGator Blog!
Follow us on Twitter!
Reply With Quote
  #6  
Old 07-08-2007, 07:29 PM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 764
Default Re: Restoring a large MySQL Database with cPanel - help?

Hello,
Had the same problem on an other host, much less user friendly as HG.
I used the attached script doing the import automacally per sizeable pieces, gz, or not, uses also FTP and have a drop. Basically PHP.
Runs like a simple GUI.
Works fine for me in IE6 and Firefox2.
BigDump
http://www.hotscripts.com/jump.php?l...22&jump_type=1
Reply With Quote
  #7  
Old 07-11-2007, 11:48 AM
rota919 rota919 is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Armagh, Northern Ireland
Posts: 245
Default Re: Restoring a large MySQL Database with cPanel - help?

Thanks for this link I might be running into the same problem soon.

Will check it out later.
__________________
Fred
Reply With Quote
  #8  
Old 11-21-2007, 08:52 AM
debrag debrag is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 19
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by GatorBrent View Post
Upload your large database in sql format to your public_html folder

Once done email us your domain, username, password, your database name you have created, and the file name you have uploaded to public_html file name should be something.sql

We can then dump it in for you.
What do you mean by database name? my sql files are the name of the databases I was using on my old host, they start with a different name to the one I'd create directly with cpanel - xxx_gallery as I have a different username.
Does this mean that all my config files have to be changed?
Reply With Quote
  #9  
Old 11-21-2007, 09:38 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,258
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by debrag View Post
What do you mean by database name? my sql files are the name of the databases I was using on my old host, they start with a different name to the one I'd create directly with cpanel - xxx_gallery as I have a different username.
Does this mean that all my config files have to be changed?
yes, all your db names that have changed will need to be updated in the config files. You may also need to recreate the users for the db after they have been set up.
__________________
best regards,
George
Reply With Quote
  #10  
Old 11-21-2007, 09:47 AM
debrag debrag is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 19
Default Re: Restoring a large MySQL Database with cPanel - help?

So I need to set-up a new database in cpanel, import in phpmyadmin and then change all config files.

What is the database password? is it the one I set up for the user?

Last edited by debrag; 11-21-2007 at 09:51 AM.
Reply With Quote
  #11  
Old 11-21-2007, 09:53 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by debrag View Post
What is the database password? is it the one I set up for the user?
Yes it is.
Reply With Quote
  #12  
Old 11-21-2007, 09:58 AM
debrag debrag is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 19
Default Re: Restoring a large MySQL Database with cPanel - help?

so

database created =
database name: 142323_gallery

user created =
user name: 142323_gallery1
user password: 142323_password

config =
dbserver: 'localhost'
dbuser: '142323_gallery1'
dbpass: '142323_password'
dbname: '142323_gallery'

would that config be a correct example?

Sorry for all the questions, I just don't want to lose things with the transfer
Reply With Quote
  #13  
Old 11-21-2007, 10:00 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by debrag View Post
so

database created =
database name: 142323_gallery

user created =
user name: 142323_gallery1
user password: 142323_password

config =
dbserver: 'localhost'
dbuser: '142323_gallery1'
dbpass: '142323_password'
dbname: '142323_gallery'

would that config be a correct example?

Sorry for all the questions, I just don't want to lose things with the transfer
You don't need to prefix the password with the cpanel username.

Everything else looks fine
Reply With Quote
  #14  
Old 11-21-2007, 10:07 AM
debrag debrag is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 19
Default Re: Restoring a large MySQL Database with cPanel - help?

thanks hopefully by tomorrow my site will be transfered & up and running
Reply With Quote
  #15  
Old 11-21-2007, 10:12 AM
Goddess Dix's Avatar
Goddess Dix Goddess Dix is offline
King Croc
 
Join Date: Aug 2006
Location: KS, USA
Posts: 1,466
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by Sam View Post
You don't need to prefix the password with the cpanel username.

Everything else looks fine
and the prefix needs to be in your config, but when you create the database here, it will automatically add the prefixs for you, so don't put them in the db or user name yourself. otherwise it will be prefix_prefix_name.

Reply With Quote
  #16  
Old 11-21-2007, 10:48 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,258
Default Re: Restoring a large MySQL Database with cPanel - help?

And if it is a large database, you will need to get HG to import it for you! Or use some third party tools to do it, if you want to do it yourself.
__________________
best regards,
George
Reply With Quote
  #17  
Old 07-17-2008, 01:26 AM
local64 local64 is offline
Hatchling Croc
 
Join Date: Jul 2008
Posts: 2
Exclamation Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by gtgeorge View Post
And if it is a large database, you will need to get HG to import it for you! Or use some third party tools to do it, if you want to do it yourself.
Hey Guys,
So what kind of program I can use to upload database?
Working with 2mb+ databases.
20+ separate databases.

Will be a hastle to email HG every time we need to upload a database.

Restore database form Cpanel doesn't work at all.. get stucked with same massage "Restoring Database"..

PLEASE ANY ADVICE!
Ready to move to another host if it's not gonna work out with HG....
Reply With Quote
  #18  
Old 07-17-2008, 02:11 AM
striddy striddy is offline
Emperor Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 2,661
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by local64 View Post
So what kind of program I can use to upload database?
A FTP client, like FileZilla (free) or many others.

Quote:
Originally Posted by local64 View Post
Working with 2mb+ databases.
That's not big at all.

Quote:
Originally Posted by local64 View Post
Restore database form Cpanel doesn't work at all.. get stucked with same massage "Restoring Database"..
Did you try phpMyAdmin?

Also, rather than dragging up such an old post, best to start a new thread.
__________________
- David

Folding@Home Stats :
Reply With Quote
  #19  
Old 07-17-2008, 02:07 PM
toastedhost toastedhost is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 18
Default Re: Restoring a large MySQL Database with cPanel - help?

I would like to learn to do this myself via... cPanel > Backups > Restore a MySQL Database. Is there an Up-to-Date tutorial somewhere. I can't seem to find one.

thanks,
__________________
Ken
Not that kind of toasted
Reply With Quote
  #20  
Old 07-17-2008, 05:41 PM
local64 local64 is offline
Hatchling Croc
 
Join Date: Jul 2008
Posts: 2
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by striddy View Post
A FTP client, like FileZilla (free) or many others.



That's not big at all.



Did you try phpMyAdmin?

Also, rather than dragging up such an old post, best to start a new thread.
Sorry about old post.
Anyway. I belive phpMyAdmin got 2mb limit on database import...no?
Reply With Quote
  #21  
Old 07-17-2008, 06:27 PM
quietFinn's Avatar
quietFinn quietFinn is online now
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,764
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by local64 View Post


Sorry about old post.
Anyway. I belive phpMyAdmin got 2mb limit on database import...no?
No.
It's 51200 kB.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #22  
Old 09-20-2008, 10:54 PM
RFiend RFiend is offline
Hatchling Croc
 
Join Date: Sep 2008
Location: Dallas
Posts: 6
Default Re: Restoring a large MySQL Database with cPanel - help?

I use the BigDump script the person in post #6 mentioned (really large forums).

One word of warning, though: if your database is UTF-8, you must change one line in bigdump.php (see below). Looks like the default collation here at HG is set to utf8_unicode_ci, which is nicer for those of us that use UTF-8. By forcing it in the script, I don't have to worry what the host is defaulted to. Other hosts I've seen defaulted to one of the ISO LATIN collations, which mangles UTF-8.

$db_connection_char_set = 'utf8';
Reply With Quote
  #23  
Old 09-24-2008, 07:24 PM
afaikIwin afaikIwin is offline
Banned User
 
Join Date: Sep 2008
Posts: 9
Default Re: Restoring a large MySQL Database with cPanel - help?

Quote:
Originally Posted by iamtheweb View Post
Thanks, I actually have the same problem and this is a good thing to keep in mind here http://forexdaytradertips.com/images...orgreeting.gif
I agree.
I've been searching for a script for a long time and it was right under my nose basically!
Reply With Quote
  #24  
Old 09-24-2008, 08:24 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Veteran Croc
 
Join Date: Sep 2006
Location: Apostle Islands, Lk Superior
Posts: 5,924
Default Re: Restoring a large MySQL Database with cPanel - help?

afaikIwin, please remove the hidden image/link from your signature. You are allowed to use visible images and links there.

Your quoted text also includes a hidden image/link that was in the (removed) post you quote. Is it just a coincidence that both involve the same Gator smiley?
Reply With Quote
  #25  
Old 09-24-2008, 08:41 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 2,577
Default Re: Restoring a large MySQL Database with cPanel - help?

I suspect we may soon see a couple of new members in the Banned User group.
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading MySQL database daveway Pre-Sales Questions 6 04-21-2004 03:49 PM

All times are GMT -6. The time now is 01:08 PM.

 
Forum SEO by Zoints