Lemongrass3110 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
..
compatibility 04cfe17b2b Converted item database to YAML (#4335) 4 năm trước cách đây
tools b49e7a0dd9 Adds SQL to TXT dump (#5527) 4 năm trước cách đây
upgrades 46d9d3f87b Increased the lengh of name_english in item db SQL (#6065) 3 năm trước cách đây
README.md b49e7a0dd9 Adds SQL to TXT dump (#5527) 4 năm trước cách đây
item_cash_db.sql 3776bfbaa3 Support itemids up to ~2 billion (#5141) 4 năm trước cách đây
item_cash_db2.sql 3776bfbaa3 Support itemids up to ~2 billion (#5141) 4 năm trước cách đây
item_db.sql 46d9d3f87b Increased the lengh of name_english in item db SQL (#6065) 3 năm trước cách đây
item_db2.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
item_db2_re.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
item_db_equip.sql ef515f1337 Corrected the item trade restriction for BF_Sword2 (Id: 13411) on pre-renewal (#6168) 3 năm trước cách đây
item_db_etc.sql 8fc0ab44cd Fixes Increase Soil Card effects (#5948) 4 năm trước cách đây
item_db_re.sql 46d9d3f87b Increased the lengh of name_english in item db SQL (#6065) 3 năm trước cách đây
item_db_re_equip.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
item_db_re_etc.sql cb83cb8fa4 Adds missing effect to ID29463 Rune Knight Stone (Garment) (#6225) 3 năm trước cách đây
item_db_re_usable.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
item_db_usable.sql ea872f159d Reduced getrandgroupitem to a one structure standard (pre-re) (#6149) 3 năm trước cách đây
logs.sql 3a8e4ffbc7 Improved support for enchantgrade (#5975) 4 năm trước cách đây
main.sql d01b718cc0 Initial support for enchantgrade (#5445) 4 năm trước cách đây
mob_db.sql 26632604f4 Adds support for Green Aura MVP damage (#5749) 4 năm trước cách đây
mob_db2.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
mob_db2_re.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
mob_db_re.sql dea0840785 Updated the monster mob db drop (#6074) 3 năm trước cách đây
mob_skill_db.sql c9e63215fc Follow up to 276ae42 4 năm trước cách đây
mob_skill_db2.sql 487f84ef92 * Changed some item_db's fields on MySQL table to use char types rather than numeric types (those fields are never been used for calculation) 11 năm trước cách đây
mob_skill_db2_re.sql 487f84ef92 * Changed some item_db's fields on MySQL table to use char types rather than numeric types (those fields are never been used for calculation) 11 năm trước cách đây
mob_skill_db_re.sql 029d8dff9b Fixed a few problems with SQL databases (#6242) 3 năm trước cách đây
roulette_default_data.sql c3b6951ba7 Fixed default roulette data 8 năm trước cách đây

README.md

SQL Imports

Explanation of SQL import files

The files in this directory are basic SQL table building scripts. The contained scripts are needed for initial installs as well as subsequent updates.

New Install


For a new install, the following needs to be imported into the 'ragnarok' schema: Note: The schema name is defined in conf/inter_athena.conf::map_server_db.

  • main.sql - Contains tables for normal server usage.
  • roulette_default_data.sql - Contains data for the client's roulette game.

For a new install, the following needs to be imported into the 'log' schema: Note: The schema name is defined in conf/inter_athena.conf::log_db_db.

  • logs.sql - Contains tables for logging of server events.

If your server is setup to read SQL database data, import the following: Note: If conf/inter_athena.conf::use_sql_db is set to yes continue with these imports else these can be skipped. Not all files have to be imported, only the ones that apply to the same mode as the server being ran.

  • item_cash_db.sql - Used for client's cash shop.
  • item_cash_db2.sql - Used for client's cash shop (import).
  • item_db.sql - Contains pre-renewal item data table structure.
  • item_db_equip.sql - Contains pre-renewal equipment item data.
  • item_db_etc.sql - Contains pre-renewal etcetera item data.
  • item_db2.sql - Contains pre-renewal item data (import).
  • item_db_re.sql - Contains renewal item data table structure.
  • item_db_re_equip.sql - Contains renewal equipment item data.
  • item_db_re_etc.sql - Contains renewal etcetera item data.
  • item_db_re_usable.sql - Contains renewal usable item data.
  • item_db_usable.sql - Contains pre-renewal usable item data.
  • item_db2_re.sql - Contains renewal item data (import).
  • mob_db.sql - Contains pre-renewal mob data.
  • mob_db2.sql - Contains pre-renewal mob data (import).
  • mob_db_re.sql - Contains renewal mob data.
  • mob_db2_re.sql - Contains renewal mob data (import).
  • mob_skill_db.sql - Contains pre-renewal mob skill data.
  • mob_skill_db2.sql - Contains pre-renewal mob skill data (import).
  • mob_skill_db_re.sql - Contains renewal mob skill data.
  • mob_skill_db2_re.sql - Contains renewal mob skill data (import).

Updates


Over the course of time new features and optimizations will take place. This may require SQL changes to happen. In the upgrades folder will be upgrade files with an attached date. These imports only have to executed if an update has occurred after the initial installation. Many times a SQL error will be displayed on the server console stating the format differs from what is required.

Compatibility


The compatibility folder contains SQL views which are used with helping control panels or websites grab prevalent data for a table that may have changed structure.

These are optional imports but website data such as item databases will not work properly when using the new YAML format without these views:

  • item_db_compat.sql - Creates a view for the item_db.
  • item_db2_compat.sql - Creates a view for the item_db2 (import).
  • item_db_re_compat.sql - Creates a view for the item_db_re.
  • item_db2_re_compat.sql - Creates a view for the item_db2_re (import).

Tools


The tools folder contains some simple adjustments if needed for an administrator's personal preferences.

  • convert_engine_innodb.sql - Converts the SQL table engine setting to InnoDB.
  • convert_engine_myiasm.sql - Converts the SQL table engine setting to MyISAM.
  • convert_passwords.sql - Converts the login table's password value to MD5.

Useful tools for converting custom SQL items to TXT and then YAML. Please adjust the INTO OUTFILE in the query to a desired location. To run these queries the user requires the FILE permission. It's also required to either set or disable the secure-file-priv.

  • item_db_re_to_txt.sql - Dumps the renewal item data table to TXT format.
  • item_db_to_txt.sql - Dumps the pre-renewal item data table to TXT format.
  • item_db2_re_to_txt.sql - Dumps the renewal item data table (import) to TXT format.
  • item_db2_to_txt.sql - Dumps the pre-renewal item data table (import) to TXT format.