var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
sql db move to new host (for beginners)
I just moved a website I took over to a new host. The programmer hard-coded the DB in. The old code refers to the mediatemple address:
mysql_connect("internal-db.s5363.gridserver.com", "db5363", "-removed-") or die ('I cannot connect to the database because: ' . mysql_error());
Can anyone tell me how I can configure this for the new (CPanel) IGX Host server?
What is IGX Host? Anyway, if you have already moved the database over your new cPanel server, the mysql connect string should look like this:
If you haven't moved the database over yet, have your new provider do that for you as it may need some coordination with MT.
mysql_connect("localhost", "db5363", "-removed-")
Your new provider will give you a new database name and probably a new username/password as well. You'll want to update that string as such.
mysql_connect("database-server", "<username>", "password") or die ('I cannot connect to the database because: ' . mysql_error());
Database-server will probably be either localhost or 127.0.0.1. Your new provider can give you that information in addition to everything else.
By Blueheaven in forum Hosting Security and Technology Tutorials
Last Post: 07-24-2005, 01:18 AM
By kgrant in forum Web Hosting
Last Post: 03-21-2003, 11:37 AM
By horrighs in forum Dedicated Server
Last Post: 02-15-2003, 08:11 PM
By susokukan in forum Web Hosting
Last Post: 08-06-2001, 05:08 PM