Closed Thread
Results 1 to 3 of 3

Thread: database details
      
   

  1. #1
    Join Date
    Mar 2009
    Posts
    12

    Default database details

    Hi,

    Could someone help with the scrip below please, I am working my way through a set of instructions for something I have downloaded and am not sure what to put where in the script below. The intructions ask for my database details to be added but what and where? The database I have created is called 'rmt'. Do I need to change the word 'localhost' and if so to what. The same question for 'myroot' and finally the default is 'realestate' is this what I should call the database rather than 'rmt' which is what I have called it presetly.

    <database type="mysql">
    <server>localhost</server>
    <login>myroot</login>
    <password>mypass</password>
    <default>realestate</default>
    </database>

    Again, thanks for any help

    Rob

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: database details

    When you create a database in cpanel it will automatically be prefixed with your cpanel username.

    You also need to give permission for an existing username, or create a new database username to access the database. All of this can be done on the same page as you created the database. There should be a video tutorial on this on the cpanel tutorials page.

    Here's what your configuration should be like
    <database type="mysql">
    <server>localhost</server>
    <login>cpanel username_database username</login>
    <password>database username's password</password>
    <default>cpanel username_rmt</default>
    </database>

    Replace the blue text with your actual username, and the red text will depend on what you make it

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    Join Date
    Mar 2009
    Posts
    12

    Default Re: database details

    Thanks for the help, most appreciated.

    Rob

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49