1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Db.php config problem solvers??

Discussion in 'Black Hat SEO' started by moneyplox, Dec 2, 2012.

  1. moneyplox

    moneyplox Registered Member

    Joined:
    Nov 18, 2012
    Messages:
    52
    Likes Received:
    1
    <?php


    define('HOST', 'localhost');


    define('USER', '');


    define('PASS', '');


    define('DBNAME', '');





    $link = mysql_connect(HOST, USER, PASS);


    mysql_select_db(DBNAME, $link);





    ?>

    Im new to this whole website making if someone could get on skype & help me That would be sweet thank you and godbless



    Skype: i7up37t
     
  2. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    I take it that this is for Wordpress? If so, here's some basic instructions for you:

    Code:
    define('HOST', 'localhost');
    This is the name of the host where the database is stored. Some hosts have different names other than "localhost", and they should be available in your user account panel. Some providers send the details to you via email, so it may be worth checking older emails if need be. It pays to keep these details somewhere safe.


    Code:
    define('USER', '');
    This is where you put the user-name for the user that you have given access privileges for the database. For example, you could have something like ('USER', 'bobJones');. If you haven't yet created a user, do this now - this should be reasonably easy if you're using cPanel (it's the only interface I've used), but if you use something different, let me know.

    Code:
    define('PASS', '');
    This is where you put the password of the user defined above. When you create a user, you will need to create a password. If you can, try and make it reasonably strong (mix the password string up with alpha-numeric characters and special characters). Remembering this password you created for the user, you would add it something like this: ('PASS', 'jkg!%^kU17!78g');. Make sure you have the correct password for the given user.

    Code:
    define('DBNAME', '');
    This is the name of the database you plan to use for the website (I'm assuming Wordpress). Make sure that the user you created is assigned access privileges to this database. An example would be something like this: ('DBNAME', 'wordpressBlog');.

    If you're still confused, PM me. I can set this up for you for free - although I would need your database details etc (you can always change the passwords etc later on, but you will need to update the code if you do).
     
  3. moneyplox

    moneyplox Registered Member

    Joined:
    Nov 18, 2012
    Messages:
    52
    Likes Received:
    1
    Alright thank you sooo much mannnnn got it :)