AdminAddict

Join Us Members List Today's Posts
Go Back   AdminAddict > Forum and Community Development > Monetization & Management > Domains, Hosting & Servers

Discuss Moving Databases Without Root Access in Domains, Hosting & Servers at AdminAddict
Currently on I am a shared hosting plan and soon I will be moving to a VPS. I need to ...

Welcome to the AdminAddict.

Hello and welcome to AdminAddict! The one-stop resource for forum and community administrators.

We offer a variety of content and resources, but in order to have access to all of our free tips and tools, you need to register a FREE account.

Registration is free, quick and easy.



(Register to remove this advertisement)
Reply
 
Share Thread Tools Search this Thread
Old February 5th, 2010, 07:07 PM   #1
Question Moving Databases Without Root Access

Currently on I am a shared hosting plan and soon I will be moving to a VPS. I need to move my database, which I have never attempted before. I don't have root access on the shared plan. I was planning on calling my host and asking them too SSH my db and make it available for me to download. Not sure if that will fly or not. Is there any other work around to move databases? I read somewhere people were having good luck with mysqldumper. Any recommendations on the best way to move a database without root access?


Last edited by Trip; February 5th, 2010 at 07:34 PM..
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 5th, 2010, 07:56 PM   #2
Zealot
Posts: 1,484
Join Date: Jun 2009
Location: California

Experience: Intermediate
Forums Admin/Mod: 2
Software: vBulletin 3.8.x

Abomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to all
Default Re: Moving Databases Without Root Access

When we were on a shared server I would use puTTY to log in via SSH, then run a couple of commands, which would create a file with the .sql extension. Then used ftp to download that file.


To back up the database:
mysqldump --opt -Q -u dbusername -p databasename > backupname.sql

To restore that back up:
mysql -u dbusername -p databasename < backupname.sql


Yes I tested that method of backup. Some shared hosts need to enable SSH.

Once you have everything backed up, you may want to let your vps provider move the account anyway, that will bring over everything including the emails. At least that is how it worked for us.
Abomination is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 5th, 2010, 08:41 PM   #3
Novice
Posts: 36
Join Date: Nov 2009


Default Re: Moving Databases Without Root Access

how large a database is it?
bucket is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 6th, 2010, 07:26 AM   #4
Default Re: Moving Databases Without Root Access

I believe it's somewhere around 30-40meg? I tried grabbing it off phpmyadmin and it timed out.
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 6th, 2010, 05:38 PM   #5
Zealot
Posts: 1,484
Join Date: Jun 2009
Location: California

Experience: Intermediate
Forums Admin/Mod: 2
Software: vBulletin 3.8.x

Abomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to all
Default Re: Moving Databases Without Root Access

Quote:
Originally Posted by Trip View Post
I believe it's somewhere around 30-40meg? I tried grabbing it off phpmyadmin and it timed out.
I had no problem using the method I posted, 400+MB database.
Abomination is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 6th, 2010, 07:55 PM   #6
Default Re: Moving Databases Without Root Access

Not sure I follow you 100% bro. I was under the impression the putty client was used when you have root access to your server for communicating via SSH/telenet??
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 6th, 2010, 08:27 PM   #7
Zealot
Posts: 1,484
Join Date: Jun 2009
Location: California

Experience: Intermediate
Forums Admin/Mod: 2
Software: vBulletin 3.8.x

Abomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to all
Default Re: Moving Databases Without Root Access

We used hostgator. They had something called 'jailed' shell access. They enabled that on my account.

When starting cPanel, it asks for a user name and password.

When I started puTTY, I entered the same login username and password.

Then I used the command in my first post in this thread to make a backup file of the database. That is the only 'official' method vb endorses to make a backup.

Could you ask your host about getting some type of shell access? It does not have anything to do with root access as far as I can tell, you only see the same types of things as you would in the file manager in the cPanel.
Abomination is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 7th, 2010, 07:23 AM   #8
Default Re: Moving Databases Without Root Access

I see what you are saying now. When I called my host they weren't exicted about helping me out. Probably because I have plans to move and from their point of view, I can half understand why.
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 7th, 2010, 11:20 AM   #9
Zealot
Posts: 1,484
Join Date: Jun 2009
Location: California

Experience: Intermediate
Forums Admin/Mod: 2
Software: vBulletin 3.8.x

Abomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to allAbomination is a name known to all
Default Re: Moving Databases Without Root Access

Just tell them you are being a careful forum admin, and want to make an off site back up. They should understand that. If they are being difficult I would quickly try to get away from them.


When we moved to a vps the new vps provider actually moved the entire site over from the shared hosting account. Everything, including emails. You could ask your new vps provider if they will do that, and if shell access is necessary for that to happen.

Whatever happens, let us know how it turns out. : )
Abomination is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 19th, 2010, 03:26 AM   #10
Thumbs up Re: Moving Databases Without Root Access

Got it all sorted. Piece of cake.
Thanks for the help Abomination, I appreciate it
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 19th, 2010, 03:44 AM   #11
Novice
Posts: 36
Join Date: Nov 2009


Default Re: Moving Databases Without Root Access

good that it was sorted.

but how?
bucket is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old February 19th, 2010, 06:44 AM   #12
Default Re: Moving Databases Without Root Access

I just asked my new host to move it. "Sure, we do it all the time" 1/2 hour later it was done.
Trip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Reply

Tags
access, databases, moving, root

AdminAddict > Forum and Community Development > Monetization & Management > Domains, Hosting & Servers > Moving Databases Without Root Access


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:08 PM.
Powered by vBulletin®, ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright ©2008-2010 AdminAddict, All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53