I think its because u didnt set the SQL host password into ur config file.
I am pretty sure 000webhost has it.
Btw what do u mean 000webhost has it ?what exactly do they have ? im a bit lost im new to this.
why just not to make a new user?
Well to be honest this is exactly what i did
Steps i did :
1. Register in 000webhost.com
2.Confirm 000webhost in my email...
3.Edited the settings.php inside my website folder ( include folder)
4.Uploaded website( which i think its messed up) not really sure
5.I Created a mysql pass, username name etc etc. then i included em in the settings.php( does it go there or not?)
This is what i got in my website settings.php i dont know what else to add:
<?php
$server_ip = 31.170.160.87;
$password = ;
$user = root;
$database = newproject_db;
$database1 = testwebsite; //site database
$database2 = newproject_db_auth;
$youtube = <iframe width="560" height="315" src="//www.youtube.com/embed/EHFCXH6FILk" frameborder="0" allowfullscreen></iframe>;
//Youtube embed link (Always width="500" height="290")
$download =
<p>These are all the downloads avaliable.<br />Each option has a different download speed so try each of them for best results.<br/>If you have any problems report it <a href="
2
<p><br /><a href="
2"><font color=green>Option 1</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="http://www.7-zip.org/">7-Zip</a></p>
<p><br /><a href="
2"><font color=green>Option 2</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="http://www.7-zip.org/">7-Zip</a></p>
<p><br /><a href="
2"><font color=green>Option 3</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="http://www.7-zip.org/">7-Zip</a></p>
; //Download info
$features = This is a new highrate Episode1 LastChaos Private Server.<br />
We have lots of custom content for you waiting to be discovered!<br />
This server includes nightshadow 100% working like no other with all skills and armour.</p>
<p><strong>Our rates are :</strong><br />
Exp : x250<br />
SP : x0 ( All skills are free! )<br />
Gold : x20<br />
Droprate : x35<br />
Upgrade : 99%<br />
Pet Exp : x200<br />
Start level : 90 ( with 150k sp and 50mill! ) </p>;
//Dont edit below!!!!
$connect = mysql_connect($server_ip, $user, $password) or die(mysql_error());
mysql_select_db($database1) or die(mysql_error());
$settings = mysql_query("SELECT title, forum FROM t_settings");
$get_settings = mysql_fetch_array( $settings );
$title = $get_settings[title];
$forum = $get_settings[forum];
?>
I change alot of things inside the setting.php and i keep getting over and over same error " Access denied for user... (using password: NO)