Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-14 03:58:24

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Changing the site and database name

Hello. Midway through a design, I have decided to change my sites name. The problem is that I want to develop a site using the old database and site name as well.

Currently I am working locally on the design. I imaginine that I can just change the database name and edit a config file.

Any suggestions or documentation.


Art Rogue – Fine Art Photography

Offline

#2 2006-04-14 04:39:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Changing the site and database name

Midway through a design, I have decided to change my sites name.

Gotcha.

The problem is that I want to develop a site using the old database and site name as well.

Now you’ve lost me.

Offline

#3 2006-04-14 04:56:19

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Changing the site and database name

K. Sorry about the confusion. Say I’ve been working on a site called monkeytoy.com with a database name of monkeytoy_db.

I change my mind.

I now want to just change the name of monkeytoy.com and monkeytoy_db to ardvarkfun.com and the database to ardvarkfun_db.

I still want the content, articles, forms, etc of my monkeytoy_db database, but I want to name the site ardvakfun.com with a database of ardvarkfun_db . When I have time I will develop a the site monkeytoy.com.

The url doesn’t matter. I just want to rename an existing database. It wouldn’t make sense to have a database of monkeytoy_db for the site of ardvarkfun.com when I will enventually create a site called monkeytoy.com

How can I rename a database and get textpattern to connect to it correctly.


Art Rogue – Fine Art Photography

Offline

#4 2006-04-14 05:01:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Changing the site and database name

Okay, now I’m sure I’ve got it right.

  1. Rename your database.
  2. Open up config.php and correct the database name ($txpcfg['db']).
  3. You didn’t mention if the site path would be changing. If it is, you’ll need to correct that in config.php as well ($txpcfg['txpath']).
  4. Load up Textpattern admin, login, and go to admin prefs.
  5. Change site url.

That’s all there is to it. :)

Offline

Board footer

Powered by FluxBB