Jump to content
  • 0

Configure MySQL


Hans Yulian

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  10/03/18
  • Last Seen:  

How do i configure MySQL when or after compiling the source from github? because currently when i run it, it will show error as follow:

```

[Error]: Couldn't connect with username = 'ragnarok', password = 'ragnarok', host = '127.0.0.1', port = '3306', database = 'ragnarok'
```

This is caused by my MySQL server already configure to different port and i am using different username, password, and database. How do i reconfigure this database settings? Thank you.

Platform: uBuntu 18.04

Edited by Hans Yulian
adding platform
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   8
  • Joined:  01/02/14
  • Last Seen:  

You can configure your custom MySQL settings by editing file on conf/import/inter_conf.txt

// MySQL Login server
login_server_ip: 127.0.0.1
login_server_port: 3306
login_server_id: root
login_server_pw: secret
login_server_db: rathena
login_codepage:
login_case_sensitive: no

ipban_db_ip: 127.0.0.1
ipban_db_port: 3306
ipban_db_id: root
ipban_db_pw: secret
ipban_db_db: rathena
ipban_codepage:

// MySQL Character server
char_server_ip: 127.0.0.1
char_server_port: 3306
char_server_id: root
char_server_pw: secret
char_server_db: rathena

// MySQL Map Server
map_server_ip: 127.0.0.1
map_server_port: 3306
map_server_id: root
map_server_pw: secret
map_server_db: rathena

// MySQL Log Database
log_db_ip: 127.0.0.1
log_db_port: 3306
log_db_id: root
log_db_pw: secret
log_db_db: rathena
log_codepage:
log_login_db: loginlog

Edit this thing according to your MySQL settings (Port, Username, Password). If your MySQL server is on different server than your emulator server (either different locations or different hosting) you need to change the IP address as well.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  10/03/18
  • Last Seen:  

oh actually in the end i managed to find this one, but anyway thx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...