<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.anope.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fm_sql</id>
		<title>2.0/Modules/m sql - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fm_sql"/>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/m_sql&amp;action=history"/>
		<updated>2026-05-29T18:35:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.4</generator>

	<entry>
		<id>//wiki.anope.org/index.php?title=2.0/Modules/m_sql&amp;diff=1012&amp;oldid=prev</id>
		<title>Azander: Created page with &quot;{{Language|2.0/Modules/m_sql}} {{Header|m_sql &amp;amp; m_sql_live|Database|Anope}}  == &lt;div class=&quot;moduleheader&quot;&gt;Description&lt;/div&gt; == This modules allows you to store all of nick...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/m_sql&amp;diff=1012&amp;oldid=prev"/>
				<updated>2014-05-30T19:36:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language|2.0/Modules/m_sql}} {{Header|m_sql &amp;amp; m_sql_live|Database|Anope}}  == &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; == This modules allows you to store all of nick...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language|2.0/Modules/m_sql}}&lt;br /&gt;
{{Header|m_sql &amp;amp;amp; m_sql_live|Database|Anope}}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; ==&lt;br /&gt;
This modules allows you to store all of nickserv, chanserv, memoserv, and operserv's data in a mysql database.&lt;br /&gt;
&lt;br /&gt;
If you use '''m_sql_live''' it reads and writes the database in real time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''NOTE''': Requres a SQL backend module to be present and properly configured. &lt;br /&gt;
&lt;br /&gt;
;name= :Name of this module&lt;br /&gt;
&lt;br /&gt;
;engine= :Database engine to use&lt;br /&gt;
&lt;br /&gt;
;prefix= :table prefix to pre-append to table names&lt;br /&gt;
&lt;br /&gt;
;import= :Flag to tell it to import data from other data sources, can only be used with m_sql and '''not''' with m_sql_live (see nots in configuration)&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Schema&amp;lt;/div&amp;gt; ==&lt;br /&gt;
See [[2.0/Mysql:Scheme|Mysql:Scheme]] for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Default Configuration&amp;lt;/div&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;code&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * db_sql and db_sql_live&lt;br /&gt;
 *&lt;br /&gt;
 * db_sql module allows saving and loading databases using one of the SQL engines.&lt;br /&gt;
 * This module loads the databases once on startup, then incrementally updates&lt;br /&gt;
 * objects in the database as they are changed within Anope in real time. Changes&lt;br /&gt;
 * to the SQL tables not done by Anope will have no effect and will be overwritten.&lt;br /&gt;
 *&lt;br /&gt;
 * db_sql_live module allows saving and loading databases using one of the SQL engines.&lt;br /&gt;
 * This module reads and writes to SQL in real time. Changes to the SQL tables&lt;br /&gt;
 * will be immediately reflected into Anope. This module should not be loaded&lt;br /&gt;
 * in conjunction with db_sql.&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
#module&lt;br /&gt;
{&lt;br /&gt;
   name = &amp;quot;db_sql&amp;quot;&lt;br /&gt;
   #name = &amp;quot;db_sql_live&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   /*   &lt;br /&gt;
    * The SQL service db_sql(_live) should use, these are configured in modules.conf.&lt;br /&gt;
    * For MySQL, this should probably be mysql/main.&lt;br /&gt;
    */   &lt;br /&gt;
   engine = &amp;quot;sqlite/main&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   /*   &lt;br /&gt;
    * An optional prefix to prepended to the name of each created table.&lt;br /&gt;
    * Do not use the same prefix for other programs.&lt;br /&gt;
    */   &lt;br /&gt;
   #prefix = &amp;quot;anope_db_&amp;quot;&lt;br /&gt;
   /* Whether or not to import data from another database module in to SQL on startup.&lt;br /&gt;
    * If you enable this, be sure that the database services is configured to use is&lt;br /&gt;
    * empty and that another database module to import from is loaded before db_sql.&lt;br /&gt;
    * After you enable this and do a database import you should disable it for&lt;br /&gt;
    * subsequent restarts.&lt;br /&gt;
    *    &lt;br /&gt;
    * Note that you can not import databases using db_sql_live. If you want to import&lt;br /&gt;
    * databases and use db_sql_live you should import them using db_sql, then shut down&lt;br /&gt;
    * and start services with db_sql_live.&lt;br /&gt;
    */&lt;br /&gt;
   import = false&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Azander</name></author>	</entry>

	</feed>