Jump to content
  • 0

Script remote mysql possible?


Smoke

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   8
  • Joined:  01/06/12
  • Last Seen:  

Hello,

Is it possible to use a data from a mysql database hosted on another vps via an npc script? somewhat like the way its possible with php.

I'd just like to know this and if possible, how to do it.

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

If that's not the default sql db that you're using, as in the one where your servers gets it's login, char and other table contents from, then I highly doubt it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

No it's not possible.

Scripts can only do SQL queries on the ragnarok and log databases defined in /conf/inter_athena.conf

You can use query_sql to access other databases on the same host, as long as the rAthena MySQL user has privileges on those databases and in the SQL query you use the full `database`.`table` name.

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...