using cmsms content management system made simple how to change the name of a database

Posted on 2011-10-28
Last Modified: 2012-05-12
using cmsms

want to change the name of the database from cms to cms2
Question by:rgb192
    LVL 107

    Expert Comment

    by:Ray Paseur
    The data base name is either included in the query, in the FROM clause or set by mysql_select_db()

    SELECT thing FROM dbname.tablename... or
    LVL 107

    Expert Comment

    by:Ray Paseur
    So you might want to track the data base name back to its point of origin in the code.  It may be in an ini value or a defined constant or something like that.
    LVL 30

    Accepted Solution

    You'll find that variable in file config.php in the root directory of your cmsms installation. I have it in


    Look for

    $config['db_name'] = '';


    Author Closing Comment

    this is the edit that I need. thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now