Jump to content
  • 0

Possible to connect to another DB?


Question

Posted

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!

1 answer to this question

Recommended Posts

Posted

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;

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.

  • Recently Browsing   0 members

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