Thread: MySQL, need help.

Results 1 to 5 of 5
  1. #1 MySQL, need help. 
    Registered Member Kaligrok's Avatar
    Join Date
    Nov 2007
    Posts
    112
    Thanks given
    4
    Thanks received
    1
    Rep Power
    16
    I feel like such a noob.... Alright I have my own website, and GoDaddy is hosting for me, so I went into my hosting control center and made a MySQL database, user and pass, and put the files into my "Files" section, so I have everything set up. This is how the server status looks:
    http://runekings.com/sstatus/

    But it has a Warning at the top.


    This is my code:

    <?php
    $host = 'What do I put here?';
    $username = 'My user, I know what this is';
    $pass = 'My pass, I know what this is.';
    $database = 'I know what this is.';

    $sitename = 'My site is RuneKings.com, so do I just put RuneKings?';
    $website = 'Do I just put www.RuneKings.com ?';
    ?>
    So please help me :/ Thanks

    ---------- Post added at 04:12 AM ---------- Previous post was at 04:03 AM ----------

    No one helps in this section aynmore

    ---------- Post added at 04:17 AM ---------- Previous post was at 04:12 AM ----------

    Bumpppp

    ---------- Post added at 04:22 AM ---------- Previous post was at 04:17 AM ----------

    Bump
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2007
    Posts
    1,087
    Thanks given
    4
    Thanks received
    28
    Rep Power
    624
    There virables.

    <?php
    $host = 'localhost';
    $username = 'database username';
    $pass = database username Password.';
    $database = 'Database name linked to user.';

    $sitename = 'Title I think.';
    $website = 'Give it a try.';
    ?>
    Reply With Quote  
     

  3. #3  
    Registered Member Kaligrok's Avatar
    Join Date
    Nov 2007
    Posts
    112
    Thanks given
    4
    Thanks received
    1
    Rep Power
    16
    Nope
    Reply With Quote  
     

  4. #4  
    Brugerman
    Guest
    what about you do it this way.
    adding onto johnny's post.

    <?php
    $host = 'localhost';
    $username = 'username'; - Create a user in your phpmyadmin
    $pass = Password.'; - The password for the user you just created
    $database = 'database name you just created >.'; - Create a database which should be simple.

    $sitename = 'Title I think.';
    $website = 'Give it a try.';
    ?>

    so say you hosted from your own computer. and you wanted to use the root access *not recommended* but still. you would do it soemthing like this.

    <?php
    $host = 'localhost';
    $username = 'root';
    $pass = 'password.';
    $database = 'website';

    $sitename = 'e.g. Runeserver.';
    $website = 'simple stuff';
    ?>
    Reply With Quote  
     

  5. #5  
    is serisiuly cul.

    DJ Dan's Avatar
    Join Date
    Apr 2007
    Posts
    1,324
    Thanks given
    6
    Thanks received
    5
    Rep Power
    223
    You can get the DB host from GoDaddy.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

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