close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Urgent problem - How easy is it to change the db name?

Thread began 6/07/2010 2:07 pm by jeffmg279672 | Last modified 6/07/2010 3:54 pm by jeffmg279672 | 1716 views | 3 replies |

jeffmg279672

Urgent problem - How easy is it to change the db name?

I have an urgent problem with a CMS that I've set up. By default the database name is CMS, but the server I'm trying to upload to won't accept a 3-letter db name. I've re-named databases before in phpmyadmin and don't have a problem with that, but I don't want to start down that route then find that nothing's working because there's a line of code somewhere that says "cms" when it should say "newname" - if anyone can give me a steer on this I'd be really grateful - I have to have this ready for the client to look at in the next 12 hours or so and really, really don't want to have to start over....

Sign in to reply to this post

Ray BorduinWebAssist

Just update the database name in the /Connections/ file by hand. Should be only referenced once.

Sign in to reply to this post
Did this help? Tips are appreciated...

jeffmg279672

OK, I've changed the name of the database in phpmyadmin from 'cms' to 'anax' and changed the connection script, but when I log in on my testing server now, it brings up a blank page... (/CMS/admin/users_login.php)
I'd assumed that if I changed the name of the database and then changed the name in the connection script that it would be necessary to make other changes - for instance, one of my pages has this code which was generated by PowerCMS which I completed earlier:
<?php
include('cms/WA_CMS/addotsite.php');
echo WA_getCMSContent($database_localhost, $localhost, 'about.php' , 'content');
?>

wouldn't that need to change to
include('anax/WA_CMS/addtosite.php'); ?

Sign in to reply to this post

jeffmg279672

Ray - ignore that last message, not sure what happened there, but I realised I'd changed the main Connections file, not the one inside the CMS folder. Everything seems to be doing what it should now, thanks for your quick response.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...