Jump to content

Database Question


James200410

Recommended Posts

Hi Guys,

At the moment I have a development site and a live site using two separate databases in case something goes wrong.

Is it safe for me to work both sites from the one database using a _prefix ?

If so, since I already have them set up, how do I go about doing it ?

Any advice would be mostly appreciated.

Regards

Adam

Link to comment
Share on other sites

Wait, you have them both installed in one database or seperate databases? If theyre in the same db and you havent already entered seperate prefixes then theyre running from the same tables..

Otherwise, export the data and.. i suppose you could just open it in some form of editor, and do a find and replace (i.e. find "phpvms_" replace with "phpvms2_")

Link to comment
Share on other sites

  • Administrators

You'll have to export the database, in the export file, change all the table prefixes (you'll see phpvms_, change to phpvmsdev_ or something), and then in local.config.php, point it to the right database, and change the TABLE_PREFIX parameter there

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...