Jump to content
  • 0

Possible to connect to another DB?


ccjosh

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

Currently facing a problem with vote for points; I can't seem to point my 2nd server to my 1st server's vote for points' table, which is in the 1st database.

 

Is it possible to point my npc script to the 1st server? I tried putting db_name.v4p_table but it goes like 1st_db.db_name.v4p

 

Thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

In each of your SQL queries, you have to qualify the full "database.table" name.

Ex:

SELECT `value` FROM `ragnarok_db1`.`global_reg_value` WHERE `str`='VOTE_POINTS' AND `account_id`="+getcharid(3), .@value;
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...