[REQ] Help with hosting my own Link Shortener

Boshondi

Newbie
Joined
Feb 12, 2012
Messages
42
Reaction score
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"
 
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?
 
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.
 
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_' );
 
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.
 
Solved the problem, it is now up and running. Thanks to the people who attempted to help me.
 
Wrong section bro. Thread reported for moving to correct section.
 
That's nice? I already said I solved my problem, your post was unnecessary.
 
Back
Top