Jump to content
  • 0

[HELP] Connection to DB


Question

Posted

Hello i want help :(

 

I have problem with connect to my DB.

 

Normally i use localhost (in navicat) and work perfect...

 

I want make ex. TOP 10 - pk/pvp. I have web with script in other hosting than my PC. If i put my IP to navi i can't connect (2003 -  Can't connect to MySQL server on 'xx.xxx.xxx.xx" (10060).

 

How i can make it? How i can connect my pc with web ;p

9 answers to this question

Recommended Posts

  • 0
Posted

Men I can't change "localhost" to my "external ip" -> bcoz if i connect by localhost it can't be handled with website outside...

 

Can u tell me where i can find it in navi?

That cfg where i can set connection from outside...

 

Ty for answer ;)

  • 0
Posted

2 Options

 

1) As your web provider or server hoster (or if you have root access) to allow remote access to your database (Not recommended)

 

2) Create a script on the same server as the SQL database that will listen for HTTP requests. With the script read the database for the relevant information and return it to the person calling the script via json/xml. (recommended).

 

Option 2 will ensure read only access to your database as well from outside sources.

  • 0
Posted

2 Options

 

1) As your web provider or server hoster (or if you have root access) to allow remote access to your database (Not recommended)

 

2) Create a script on the same server as the SQL database that will listen for HTTP requests. With the script read the database for the relevant information and return it to the person calling the script via json/xml. (recommended).

 

Option 2 will ensure read only access to your database as well from outside sources.

 

Bullsh1ts...

 

Men I can't change "localhost" to my "external ip" -> bcoz if i connect by localhost it can't be handled with website outside...

 

Can u tell me where i can find it in navi?

That cfg where i can set connection from outside...

 

Ty for answer ;)

 

You can config it in "MySQL Server Instance Config Wizard" wich is in your mysql folder, just run it...

  • 0
Posted

That's what I said with option number 1. Just replace the web provider with him.

 

Also, option 2 not allowing remote access to your database:

http://www.greensql.com/articles/mysql-security-best-practices

 

 

Why do you think i spend time to read all your post... i've just read the begin wich was bullsh1ts :D

  • 0
Posted

Why do you think i spend time to read all your post... i've just read the begin wich was bullsh1ts :D

 

"Why do you think I spent time to read all your post..."

 

Now you want me to believe you're a compontent developer when you stormed in here, called my idea bullshit, and then when I defend it you say "yea whatever." Good way to illustrate to everybody you really know what you're doing.

 

1) The only things that should have a direct connection to the l2j database on a production server is the gameserver and database administrators with only the permissions they need using SSL. THE DATABASE IS ESSENTIALLY YOUR GAMESERVER, IT IS THE DATA THAT DESCRIBES IT AND MOST OF IT'S BEHAVIOR.

 

2) It's not significant but you shouldn't be putting anymore strain on the gameserver processes than need already be. Java already has standard objects for doing things like HTTP GET/POST requests. It'd be less strain on your SQL server and you'd be using less connections by sending an HTTP post request to your webserver and uploading a json object containing the live gameserver data which can be updated in different intervals of your chosing rather than the standard L2j database updates. You'd have to build the json object via the gameserver but once the request is sent the gameserver database or application itself won't have to worry about it.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Only 3 days left and we'll start with some events, you can check our Discord for more info!
    • Tired of frantically switching between windows trying to find that specific Warlock who should be casting saves? Forgot which server you left your Warsmith on? This mod solves these problems! What it does: Turns the boring window title into an information panel: Server Name - Character Name [Class] Real-life examples: - ServerName - HardcoreFarm [Spoilerr] (who's been spoiling for 3 months already) - ServerName - ClericHelper [Buffer] (eternal buffer on standby) - ServerName - MainChar [Gladiator] (main character who's always AFK) Why you need this: For multiboxers - to avoid confusing where the DD is and where the healer is For the forgetful - if your memory is like a goldfish For streamers - viewers immediately see who's on screen For adults - when playing at work and need to quickly hide the window DLL only - no Interface files needed Installation (more complicated than making tea): 1. Download the DLL 2. Drop it into the System folder 3. Launch the client 4. Be amazed how you lived without this before! Purchase Conditions: Price: 100$ Payment Method: USDT. How to Buy: Contact me on Telegram: @kiselevwv for a quick response. I will answer all your questions and provide additional information if needed. I guarantee functionality at the moment of sale and prompt assistance with setup after purchase.
    • I agree, l2damage crap to compare to l2java which was the father of pvp servers and till this days people playing there for good time.
    • 📝 Registration — Account Registration Creating a new player account. Usually includes: login password password confirmation email Result: a new record is created in the accounts table (loginserver). 🔑 Change Password — Password Change The player changes the password knowing the current one. Required: current password new password new password confirmation Result: the password field is updated in the accounts table. ♻️ Password Recovery — Password Reset If the player forgot the password. Implementation only via email: the player enters their login, email the system sends an email with a link or code the player opens the link / enters the code sets a new password Result: the password is updated in the accounts table.   All fields are validated (required, format, length, uniqueness, security checks).   Price: 80$   and i can rewrite script for PTS server.   Contacts:   Telegram Discord
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..