Results 1 to 4 of 4

Thread: changing Database user

  1. #1
    New user
    Join Date
    08-24-12.
    Posts
    2

    Default changing Database user

    All

    can someone please advise how you change the user that is used to connect to Mysql and also the rights the user requires on the said database

    thanks
    Lee

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: changing Database user

    The rights you have on your DB are set by your hoster.

    Values to connect to your DB are stored in system/config/localconfig.php

    You can change values directly in this file or open the install tool contao/install.php and set your DB data there.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    08-24-12.
    Posts
    2

    Default Re: changing Database user

    Hi Andreas

    thank you for you reply, to confirm if I set up the user in mysql and change the details in system/config/localconfig.php
    with this take effect imediatley or will I need to restart the web server (apache) for it to read the localconfig.php file?

    thanks

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: changing Database user

    No apache restart needed. On every contao call from BE or FE contao is conversing with the DB and first think contao does is reading your localconfig.php. If contao can not connect to your DB you will get errors.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •