Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
8,065 Members
165,823 Posts
35 Users Online

Please welcome our newest member, zen3d!

Affiliates
Go Back AdminFusion » Getting Started » Domains and Hosting » Tranfering host...
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 06-22-2006, 10:23 PM   #1

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Tranfering host...

I am trying to import my database. I went to my old database in phpMyAdmin and exported, then tried to import it in my new phpMyAdmin. I get this error

Quote:
Error

SQL query:
-- phpMyAdmin SQL Dump
-- version 2.8.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 22, 2006 at 01:20 PM
-- Server version: 4.1.20
-- PHP Version: 4.4.2
--
-- Database: `adam_ads`
--
CREATE DATABASE `lostguru_ads` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;


MySQL said:
#1044 - Access denied for user 'lostguru'@'localhost' to database 'adam_ads'
The oddest thing is that isnt the database I want. It was a differnt name.Any tips?
__________________
Reply With Quote
Old 06-22-2006, 10:31 PM   #2

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
Do you have shell (SSH) access? May I recommend doing it that way assuming you have access?

btw...when you copy/pasted your code, you included an image from phpMyAdmin in there...so whenver somebody would view this thread, it prompted them with your cPanel user/pass in order to view that image. I fixed it, heh...it just kinda made me go "uuurrh?" when I loaded your thread.
__________________
...some super-sweet signature
Reply With Quote
Old 06-22-2006, 10:36 PM   #3

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Thanks for fixing that. How would I use SHH to trasfer the database? A little help I am new to this.
__________________
Reply With Quote
Old 06-22-2006, 10:39 PM   #4

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
Well, before I spend a bunch of time explaining it, you'll need to check to see if you have access to SSH first, as many hosts do not provide it - at least not unless it is requested. SSH is not exactly easy to pick up on, because it's all command line based - but it really only takes a few commands to dump and restore a database - it's also by far the quickest and most reliable way to export/import databases.
__________________
...some super-sweet signature
Reply With Quote
Old 06-22-2006, 10:43 PM   #5

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Okay well I just checked out my old host and it seems they don't have it. But my new host (Site5) does. Do both hosts need to have it?
__________________
Reply With Quote
Old 06-22-2006, 10:47 PM   #6

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
If you can export a database from the old host, that will work...Export it via phpmyadmin and then I'll let you know how to import it - is it in .sql or .sql.gz (gzipped) format?
__________________
...some super-sweet signature
Reply With Quote
Old 06-22-2006, 10:53 PM   #7

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Well I have tried it both ways, which one would be easiest to do it with?
__________________
Reply With Quote
Old 06-22-2006, 11:10 PM   #8

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
gzipped, it's quicker...anyways, here's what you do.

Download PuTTY (direct link)

Export your database, gzipped, and upload it somewhere to your new server. Create a database on the new server that you will be importing to - and be sure to add a user to it.

Open PuTTY.exe and enter either the domain or IP of the new server into the first box. Click Open at the bottom. It should prompt you for a username...put the username for your new host in there. If you dunno what this is, it is listed on the NetAdmin index page for Site5. Then it will prompt you for a password...your pw for Site5 goes here...note that when you enter the password, it wont show up - that's ok, just type it and then press enter. Now you are hopefully connected.

Type 'dir' (no quotes) and press enter. This will list everything inside the folder that you're in. You want to navigate to the location that you uploaded the database. So, to go into a folder, you type 'cd foldername'...ie: If your backup is in the public_html folder, you would type 'cd public_html' and press enter. Do this until you are in the folder with your backup...to check that it's in there, type 'dir' again.

Now, type 'gunzip backupname.sql.gz' ...replace the name w/ the name of the file of course. This will decompress the db for importing. Type 'dir' and make sure that your backup is there with the .sql extension.

Now, type the following:

mysql -uusername -ppassword databasename < backupname.sql

Replace username, password, and databasename with the database information on the new server. For example...here's how your command would look with the following information.

Username: newserver_adam
Password: sshrocks
Database Name: newserver_forums
Backup File: db.sql

mysql -unewserver_adam -psshrocks newserver_forums < db.sql

Voila! Hopefully you can follow that and everything works correctly...if you get stuck somewhere, lemme know - and bookmark this, bc like I said, it is definitely the easiest and most reliable way to export/import/transfer databases.
__________________
...some super-sweet signature
Reply With Quote
Old 06-23-2006, 04:53 AM   #9

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Worked! Thanks Ryan you saved me from a lot of anger. Glad I asked here before I gave up. AF for life
__________________
Reply With Quote
Old 06-23-2006, 04:54 AM   #10

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
No problem Adam - I was about excited as you are now when I learned how to do that also

Glad you got it working
__________________
...some super-sweet signature
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
New host needed allenmur Domains and Hosting 9 01-14-2007 11:41 PM
Looking for a reliable host for forum. ipodman Domains and Hosting 10 11-02-2006 01:29 PM
Choosing a new Host Kem Rixen Domains and Hosting 33 07-17-2006 03:34 PM
Is hostgator.com a good enough host shereseconnell@yahoo Domains and Hosting 0 05-20-2006 06:10 AM

AdminFusion

All times are GMT +1. The time now is 03:12 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved


From:
Title: