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

[REQ] Help with hosting my own Link Shortener

Discussion in 'Making Money' started by Boshondi, Aug 15, 2012.

  1. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    I have recently made a few attempts to create my own URL shortener to help with my ads on Twitter. It has been a total hassle, but I almost have it working. My only problem is that I get this error after injecting my files, and attempting to install YOURLS. "Error establishing mySQL database connection. Correct user/password? Correct hostname? Database server running? in /home/a4423722/public_html/includes/class-mysql.php on line 298"
     
  2. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,323
    You will probably get better help from the experts with this sort of thing in the programming sections, specifically like this one:

    http://www.blackhatworld.com/blackhat-seo/f127-php-perl/

    But, it appears it is just telling you that you don't have the correct settings for your database. Are you using a nulled script you found online? Or something you paid for? Or did you make the script yourself?
     
  3. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    I am using scripts from yourls.
    And yes, I am sure all of the settings are correct, I made sure of it and even re-did it a few times to see if there would be any change. But I'm still getting that error.
     
  4. spmcnerd

    spmcnerd Regular Member

    Joined:
    Dec 20, 2010
    Messages:
    310
    Likes Received:
    107
    Edit config.php and be sure it matches you database
    Toward top in notepad. I think I had to edit sample-config.php and save as config.php in user folder.


    /** MySQL database username */
    define( 'YOURLS_DB_USER', 'YOUR prefix_bobby' );


    /** MySQL database password */
    define( 'YOURLS_DB_PASS', 'NO Prefix password' );


    /** The name of the database for YOURLS */
    define( 'YOURLS_DB_NAME', 'YOUR prefix_shorty' );


    /** MySQL hostname */
    define( 'YOURLS_DB_HOST', 'localhost' ); Keep as is


    /** MySQL tables prefix */
    define( 'YOURLS_DB_PREFIX', 'YOUR prefix_' );
     
  5. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    I did all of that, but it is still giving me the same error. I am almost 100% sure that all the information I added was correct, so I still have no idea why I'm still getting that error.
     
  6. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    Bump...
     
  7. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    Solved the problem, it is now up and running. Thanks to the people who attempted to help me.
     
  8. SEOnetic

    SEOnetic Senior Member

    Joined:
    May 21, 2012
    Messages:
    995
    Likes Received:
    120
    Wrong section bro. Thread reported for moving to correct section.
     
  9. Boshondi

    Boshondi Newbie

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    1
    That's nice? I already said I solved my problem, your post was unnecessary.