![]() |
|
Website Not Working Properly - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197) +---- Forum: Webmasters Help & Talk (https://lckb.dev/forum/forumdisplay.php?fid=142) +----- Forum: Help & Requests (https://lckb.dev/forum/forumdisplay.php?fid=116) +----- Thread: Website Not Working Properly (/showthread.php?tid=2783) |
- BayBay - 12-07-2013 Well i been currrently messing with website since im completely new to this. I went to 000webhost.com and started messing around. Manage to upload my website and everything but its not showing how it supposed to be. Im a bit confused in this also: $server_ip = ; $password = ; $user = ; $database = ; $database1 = a6198298_lc (2); //site database $database2 = ; can u guys please tell me what goes in every one ? Take a look: 2 All i know my password is not letting or giving me permissions. But i dont know which password!! I get same error everytime: Access denied for user "a6198298" - Monkey - 12-08-2013 using Password: NO The SQL Server has a password and you didnt entry it. - BayBay - 12-09-2013 using Password: NO The SQL Server has a password and you didnt entry it. i tried wih password and without password in the settings.php of my website but same results. What else should i try? when i created my mysql databases and everything else i got this: $mysql_host = "server13.000webhost.com"; $mysql_database = "a6198298_baylc"; $mysql_user = "a6198298_baybay"; $mysql_password = "123abc" do i insert it in settings.php? or where does it go i keep getting this same error: Access denied for user "a6198298" - Monkey - 12-09-2013 Then I guess the Server isnt allowed to connect there. Since it says that its Denied, maybe you have to set the permissions to allow your Webserver (you will need ip of it) to connect to the Mysql. Or if its localhost, but i guess not connect to local - BayBay - 12-10-2013 Then I guess the Server isnt allowed to connect there. Since it says that its Denied, maybe you have to set the permissions to allow your Webserver (you will need ip of it) to connect to the Mysql. Or if its localhost, but i guess not connect to local So is it the website i got not working properly or what did i do wrong? im completely lost - Nymphetamine - 12-10-2013 So is it the website i got not working properly or what did i do wrong? im completely lost I think its because u didnt set the SQL host password into ur config file. I am pretty sure 000webhost has it. - Paramount - 12-10-2013 why just not to make a new user? - BayBay - 12-10-2013 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) |