Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 06-18-2007, 07:29 AM   #1 (permalink)
 
Newb Techie

Join Date: Jun 2007

Posts: 3

rollan is on a distinguished road

Default Transfer Hosting company

Hi there

I have been trying to transfer the hosting company for my site.

I have successfully uploaded the files into the new ftp but it seems to be a problem in database access.

How could I solve this problem?

Thank you for your help
rollan is offline  
Old 06-18-2007, 10:18 AM   #2 (permalink)
 
Try again!

Join Date: Jan 2005

Location: Ohio

Posts: 896

motoxer4533 is on a distinguished road

Send a message via AIM to motoxer4533 Send a message via MSN to motoxer4533
Default Re: Transfer Hosting company

contact the company you transfered your files to, and explain the problem to them.

or,

give us more information, because you haven't given very much.

I would contact the company first, however.
__________________
Like Golf? Want to improve your game and overall fitness level? Head to The Perfect Balance Swing and Fitness System

motoxer4533 is offline  
Old 06-23-2007, 04:55 AM   #3 (permalink)
 
Monster Techie

Join Date: Apr 2007

Posts: 1,121

Brinson is on a distinguished road

Default Re: Transfer Hosting company

If your site uses a mysql db you will need to back that up as well and move it.

Then, edit the config file of your site to the new name of the db.
Brinson is offline  
Old 06-23-2007, 11:54 AM   #4 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Transfer Hosting company

The problem will be that the name of your database has changed.
You will need to edit the database config file with the new localhost
Yek is offline  
Old 06-23-2007, 12:18 PM   #5 (permalink)
 
Monster Techie

Join Date: Apr 2007

Posts: 1,121

Brinson is on a distinguished road

Default Re: Transfer Hosting company

yeah. I mean, you could cheap out and keep the dbname/uname/pass the same, but some hosts add weird **** to the db like Username_ which can make it annoying.

Editting the config file is pretty easy. Most scripts call it just that, config.php
Brinson is offline  
Old 06-23-2007, 02:43 PM   #6 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Transfer Hosting company

look for something like the following in your config.php file:

$dbms = 'mysql';

$dbhost = 'hostname';
$dbname = 'databasename';
$dbuser = 'username';
$dbpasswd = 'password';

change "hostname" to the new one provided by the new hosting company and change the other variables to get everything working smoothly.
Yek is offline  
Old 06-24-2007, 01:09 PM   #7 (permalink)
 
Super Techie

Join Date: Sep 2005

Posts: 422

Kubel is on a distinguished road

Send a message via AIM to Kubel
Default Re: Transfer Hosting company

Virtual accounts will have a prefix on the database name. It takes the form: hostusername_clientusername for cPanel generated accounts. So pay special attention to the prefix on your new database name.
__________________
For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth
~Romans 1:16
Kubel is offline  
Old 06-25-2007, 02:43 PM   #8 (permalink)
 
Monster Techie

Join Date: Apr 2007

Posts: 1,121

Brinson is on a distinguished road

Default Re: Transfer Hosting company

Quote:
Originally Posted by Kubel View Post
Virtual accounts will have a prefix on the database name. It takes the form: hostusername_clientusername for cPanel generated accounts. So pay special attention to the prefix on your new database name.
I know, that is outrageously annoying. When I first used cpanel I spent like an hour wondering why my dbs all stopped working. haha.
Brinson is offline  
Old 06-25-2007, 04:19 PM   #9 (permalink)
 
Super Techie

Join Date: Sep 2005

Posts: 422

Kubel is on a distinguished road

Send a message via AIM to Kubel
Default Re: Transfer Hosting company

Actually I got that mixed up. It's clientusername_tablename. Since there are multiple clients on one database server, prefixes are forced to limit the possibility of duplicate names.

If you transfer to a similar server (which uses the same naming convention) and keep your username the same, you shouldn't have to change anything (as long as you have the same MySQL username and password created on the new server and assigned to that database).
__________________
For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth
~Romans 1:16
Kubel is offline  
Old 06-27-2007, 05:12 AM   #10 (permalink)
 
Monster Techie

Join Date: Apr 2007

Posts: 1,121

Brinson is on a distinguished road

Default Re: Transfer Hosting company

You don't need SSH to do it...
__________________
Brinson's Media Center
Ultra Microfly Case
350w Antec Basiq
Intel Core 2 Duo e6750
ECS G31T-M
2x1gb OCZ Gold 800mhz DDR2
750gb Seagate 7200.11 Hard Drive
DVD Burner
8400 GS 512MB
Brinson is offline  
 
Closed Thread

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Company of Heroes gets DX10 patch maroon1 PC Gaming 9 06-05-2007 12:35 PM