Jump to content

Create metin2 site on localhost


Recommended Posts

Hi ..
I do not understand much of the area of websites, mainly metin2, was wondering how I would test a site for metin2 in localhost mode (in the address bar type localhost using xampp) without me this error as image ...
I want to test a site like funcionabilidades pages, check icons etc without opening the server ... just using the site ... how?

Translation: I want to test a site without having to open the server every time I want to fix / test my site, and at the end of all this I can work with the server with it on, but do the test, with only a local server off. ..

Thank you

 

Image:

 

9pXEzP3.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Paste your config.php maybe there is wrong thing in config.php

 

Best Regards

Ellie

 

 

Look in your config.php at line 16, maybe you found your problem or show us your config file in this thread.

 

Kind regards

 

My Config.php (all)

<?php 
	/*
	|-------------------------------------------------------------------
	| Datenbank Connection Details
	|-------------------------------------------------------------------
	*/
		$mysql_host 	= "MY IP END .100";
		$mysql_user 	= "MY USER";
		$mysql_pass 	= "MY PASS";
		$mysql_db	= "MY DB";
	/*
	|-------------------------------------------------------------------
	| Datenbank Verbindung herstellen
	|-------------------------------------------------------------------
	*/	
		mysql_connect($mysql_host, $mysql_user, $mysql_pass) OR
		die("Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error());	
		
		mysql_select_db($mysql_db) OR
		die("Die Datenbank konnte nicht benutzt werden.<br /> Fehlermeldung: ".mysql_error());
?>

(Edited the ip field, user and password for database security)

 

This error happens because my server is down when linked works perfectly, but I wanted to test my website without having to turn on the server every time, one that I think it unnecessary, since I will not tamper with the website and yes the server. If I turn on my website without the config.php is possible that there is an error in the future after I deploy this file again?. (I like in your comments, thanks for the help)

Link to comment
Share on other sites

 
 mysql_connect($mysql_host, $mysql_user, $mysql_pass) OR
        die("Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error()); 

 

 

^This option is chosen, which means that you might not typed in the correct data. 

 

Now you can check whether the IP, the User or the Password is incorrect.

 

Just add the following lines to your config.php.inc file and remove the one I quoted above.

 

 

 mysql_connect($mysql_host) OR
        die("IP wrong);


mysql_connect($mysql_user) OR
        die("Username wrong);


mysql_connect($mysql_pass) OR
        die("Password wrong);
 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      [Discussion] Rain - The First Person that leaked the M2 Files

    2. 0

      [Client] All tabs opening after quest/npc talk or even shop // PORTS

    3. 0

      Arrow does not hide at warp

    4. 0

      Problem with sidebar by vegas

    5. 58

      Discord Rich Presence

    6. 145

      Full Costume Mount System

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.