Title: HELP Can't connect to database. Check your config.php Post by: ezajavo on January 04, 2016, 04:40:06 PM help me please, im having problem with steadyturtle.com hosting
i get this message on the site "Can't connect to database. Check your config.php." This is the faucet site (http://www.eza3e.pw/) Database Size Privileged Users ezaepw_1 0.00 MB ezaepw_2 config.php <?php $dbhost = "ezaepw_1"; $dbuser = "ezaepw_2"; $dbpass = "******"; $dbname = "ezaepw_2"; $display_errors = false; $disable_admin_panel = false; $connection_options = array( 'disable_curl' => false, 'local_cafile' => false, 'force_ipv4' => false // cURL only ); // dsn - Data Source Name // if you use MySQL, leave it as is // more information: // http://php.net/manual/en/pdo.construct.php $dbdsn = "mysql:host=$dbhost;dbname=$dbname"; thanks :'( Title: Re: HELP Can't connect to database. Check your config.php Post by: mavenraven on January 04, 2016, 04:44:18 PM try changing your db_user and db_name around ? from what you posted it looks like you've mistaken them
Title: Re: HELP Can't connect to database. Check your config.php Post by: ezajavo on January 04, 2016, 04:54:41 PM try changing your db_user and db_name around ? from what you posted it looks like you've mistaken them change it to what?Iam so noob Title: Re: HELP Can't connect to database. Check your config.php Post by: FaucetRank.com on January 04, 2016, 04:55:37 PM dbhost = localhost
I see your username and dB host is same please correct this problem. Title: Re: HELP Can't connect to database. Check your config.php Post by: minifrij on January 04, 2016, 04:57:26 PM dbhost = localhost It could be localhost, though you would also possibly need to put in a custom URL depending on your host. It will say on your MySQL settings within your cPanel.I see your username and dB host are same please correct this problem. Title: Re: HELP Can't connect to database. Check your config.php Post by: mavenraven on January 04, 2016, 04:58:16 PM dbhost = localhost I see your username and dB host is same please correct this problem. $dbhost = "localhost"; $dbuser = "ezaepw_2"; $dbpass = "******"; $dbname = "ezaepw_1"; try this... Title: Re: HELP Can't connect to database. Check your config.php Post by: FaucetRank.com on January 04, 2016, 04:59:50 PM dbhost = localhost It could be localhost, though you would also possibly need to put in a custom URL depending on your host. It will say on your MySQL settings within your cPanel.I see your username and dB host are same please correct this problem. Title: Re: HELP Can't connect to database. Check your config.php Post by: ezajavo on January 04, 2016, 05:08:43 PM dbhost = localhost I see your username and dB host is same please correct this problem. $dbhost = "localhost"; $dbuser = "ezaepw_2"; $dbpass = "******"; $dbname = "ezaepw_1"; try this... $dbuser = "ezaepw_2"; $dbpass = ".........."; $dbname = "ezaepw_1"; not work, I will send my username and password login here https://server5.steadyturtle.com:2083/ (https://server5.steadyturtle.com:2083/) Title: Re: HELP Can't connect to database. Check your config.php Post by: mavenraven on January 04, 2016, 05:10:53 PM not work, I will send my username and password login here https://server5.steadyturtle.com:2083/ (https://server5.steadyturtle.com:2083/) ok, thanks for the trust, I will not abuse it, but it's really not a good idea to send your passwords to random strangers on internet, just a tip for the future Title: Re: HELP Can't connect to database. Check your config.php Post by: FaucetRank.com on January 04, 2016, 05:20:26 PM dbhost = localhost I see your username and dB host is same please correct this problem. $dbhost = "localhost"; $dbuser = "ezaepw_2"; $dbpass = "******"; $dbname = "ezaepw_1"; try this... $dbuser = "ezaepw_2"; $dbpass = ".........."; $dbname = "ezaepw_1"; not work, I will send my username and password login here https://server5.steadyturtle.com:2083/ (https://server5.steadyturtle.com:2083/) Why are you put dbhost=ip address simply use localhost word and never give c panel pass to anyone just try to get live help from hosting provider if you still can't do. use this $dbhost = "localhost"; $dbuser = "ezaepw_2"; $dbpass = ".........."; Title: Re: HELP Can't connect to database. Check your config.php Post by: ezajavo on January 04, 2016, 05:24:43 PM not work, I will send my username and password login here https://server5.steadyturtle.com:2083/ (https://server5.steadyturtle.com:2083/) ok, thanks for the trust, I will not abuse it, but it's really not a good idea to send your passwords to random strangers on internet, just a tip for the future ty Title: Re: HELP Can't connect to database. Check your config.php Post by: mavenraven on January 04, 2016, 05:32:51 PM not work, I will send my username and password login here https://server5.steadyturtle.com:2083/ (https://server5.steadyturtle.com:2083/) ok, thanks for the trust, I will not abuse it, but it's really not a good idea to send your passwords to random strangers on internet, just a tip for the future ty FaucetRank.com was right, just use "localhost". it's done, go and see. Title: Re: HELP Can't connect to database. Check your config.php Post by: ezajavo on January 04, 2016, 05:42:14 PM thanks FaucetRank.com and mavenraven, I hope u lucky and get rich quick
sorry can't give you anything, newbie and fool lol Title: Re: HELP Can't connect to database. Check your config.php Post by: mavenraven on January 04, 2016, 05:47:05 PM np, but please do the following:
- change your cpanel password - change your db password - change your script admin password - change your faucetbox API KEY (in this order) so I won't be held responsible if someone hacks you Title: Re: HELP Can't connect to database. Check your config.php Post by: ~Bitcoin~ on January 04, 2016, 05:58:14 PM I can set it up for you for tips or only for help. I am quite experienced coder. Pm me i will help you step by step.
|