Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * [REQUIRED] Database configuration.
- *
- * This section is used to configure databases used by Anope.
- * You should at least load one database method, otherwise any data you
- * have will not be stored!
- */
- /*
- * [DEPRECATED] db_old
- *
- * This is the old binary database format from late Anope 1.7.x, Anope 1.8.x, and
- * early Anope 1.9.x. This module only loads these databases, and will NOT save them.
- * You should only use this to upgrade old databases to a newer database format by loading
- * other database modules in addition to this one, which will be used when saving databases.
- */
- #module
- {
- name = "db_old"
- /*
- * This is the encryption type used by the databases. This must be set correctly or
- * your passwords will not work. Valid options are: md5, oldmd5, sha1, and plain.
- */
- #hash = "md5"
- }
- /*
- * [DEPRECATED] db_plain
- *
- * This is the flatfile database format from Anope-1.9.2 to Anope-1.9.5.
- * To convert from this format, load both this and db_flatfile. Be sure to name db_flatfile's
- * target database to something else. Start Anope then shut down so the new database will be written.
- * Then unload this and restart Anope, loading from the new database.
- */
- #module { name = "db_plain" }
- /*
- * db_flatfile
- *
- * This is the default flatfile database format.
- */
- #module
- {
- name = "db_flatfile"
- /*
- * The database name db_flatfile should use
- */
- database = "anope.db"
- /*
- * Sets the number of days backups of databases are kept. If you don't give it,
- * or if you set it to 0, Services won't backup the databases.
- *
- * NOTE: Services must run 24 hours a day for this feature to work.
- *
- * This directive is optional, but recommended.
- */
- keepbackups = 3
- /*
- * Allows Services to continue file write operations (i.e. database saving)
- * even if the original file cannot be backed up. Enabling this option may
- * allow Services to continue operation under conditions where it might
- * otherwise fail, such as a nearly-full disk.
- *
- * NOTE: Enabling this option can cause irrecoverable data loss under some
- * conditions, so make CERTAIN you know what you're doing when you enable it!
- *
- * This directive is optional, and you are discouraged against enabling it.
- */
- #nobackupokay = yes
- /*
- * If enabled, services will fork a child process to save databases.
- *
- * This is only useful with very large databases, with hundreds
- * of thousands of objects, that have a noticeable delay from
- * writing databases.
- */
- fork = no
- }
- /*
- * db_sql and db_sql_live
- *
- * db_sql module allows saving and loading databases using one of the SQL engines.
- * This module loads the databases once on startup, then incrementally updates
- * objects in the database as they are changed within Anope in real time. Changes
- * to the SQL tables not done by Anope will have no effect and will be overwritten.
- *
- * db_sql_live module allows saving and loading databases using one of the SQL engines.
- * This module reads and writes to SQL in real time. Changes to the SQL tables
- * will be immediately reflected into Anope. This module should not be loaded
- * in conjunction with db_sql.
- *
- */
- module
- {
- name = "db_sql"
- #name = "db_sql_live"
- /*
- * The SQL service db_sql(_live) should use, these are configured in modules.conf.
- * For MySQL, this should probably be mysql/main.
- */
- engine = "mysql/main"
- /*
- * An optional prefix to prepended to the name of each created table.
- * Do not use the same prefix for other programs.
- */
- prefix = "anope_db_"
- /* Whether or not to import data from another database module in to SQL on startup.
- * If you enable this, be sure that the database services is configured to use is
- * empty and that another database module to import from is loaded before db_sql.
- * After you enable this and do a database import you should disable it for
- * subsequent restarts.
- *
- * Note that you can not import databases using db_sql_live. If you want to import
- * databases and use db_sql_live you should import them using db_sql, then shut down
- * and start services with db_sql_live.
- */
- import = false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement