<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=Plugin%3AAutoDJ%3AQueue_MySQL</id>
	<title>Plugin:AutoDJ:Queue MySQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=Plugin%3AAutoDJ%3AQueue_MySQL"/>
	<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Plugin:AutoDJ:Queue_MySQL&amp;action=history"/>
	<updated>2026-05-09T23:55:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.shoutirc.com/index.php?title=Plugin:AutoDJ:Queue_MySQL&amp;diff=4263&amp;oldid=prev</id>
		<title>Indy: Text replacement - &quot;{{ircbot}}&quot; to &quot;{{radiobot}}&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Plugin:AutoDJ:Queue_MySQL&amp;diff=4263&amp;oldid=prev"/>
		<updated>2013-10-24T03:18:07Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;{{ircbot}}&amp;quot; to &amp;quot;{{radiobot}}&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:AutoDJ Plugins|MySQL Queue]]&lt;br /&gt;
This is a [[Plugins|plugin]] for [[Plugin:AutoDJ|AutoDJ]] which keeps your playlist and ID3 cache in a MySQL database. This plugin provides a few benefits over the memory queue, including less memory usage and easier integration with WebRequest systems.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
 You need this in your AutoDJ/Options section to load the MySQL Queue plugin:&lt;br /&gt;
 QueuePlugin			.\plugins\adjq_mysql.dll (Win32)&lt;br /&gt;
 - or -&lt;br /&gt;
 QueuePlugin			./plugins/adjq_mysql.so (Linux)&lt;br /&gt;
 &lt;br /&gt;
 And an AutoDJ/Queue_MySQL section as outlined [[Configuration:AutoDJ#AutoDJ/Queue_MySQL|here]].&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
 !songstop10&lt;br /&gt;
 This will PM you the top requested songs (requires KeepHistory set in [[Configuration#AutoDJ/Queue_MySQL|AutoDJ/Queue_MySQL]]).&lt;br /&gt;
&lt;br /&gt;
 !requesterstop10&lt;br /&gt;
 This will PM you the top requesters (requires KeepHistory set in [[Configuration#AutoDJ/Queue_MySQL|AutoDJ/Queue_MySQL]]).&lt;br /&gt;
&lt;br /&gt;
 !autodj-clear&lt;br /&gt;
 This will clear your MySQL queue database. Make sure you !autodj-reload afterwards or you won&amp;#039;t have any songs to play.&lt;br /&gt;
&lt;br /&gt;
 !autodj-qstat&lt;br /&gt;
 This will show some stats about your MySQL queue database.&lt;br /&gt;
&lt;br /&gt;
==Database Schema==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: This schema is subject to change and you SHOULD NOT create the table yourself, the plugin will do it automatically.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Here is the SQL query needed to create the AutoDJ table:&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE `AutoDJ` (&lt;br /&gt;
  `ID` int(10) unsigned NOT NULL,&lt;br /&gt;
  `Path` varchar(255) NOT NULL,&lt;br /&gt;
  `FN` varchar(255) NOT NULL,&lt;br /&gt;
  `mTime` int(11) NOT NULL,&lt;br /&gt;
  `LastPlayed` int(11) NOT NULL,&lt;br /&gt;
  `PlayCount` int(11) NOT NULL,&lt;br /&gt;
  `LastReq` int(11) NOT NULL,&lt;br /&gt;
  `ReqCount` int(11) NOT NULL,&lt;br /&gt;
  `Title` varchar(255) NOT NULL,&lt;br /&gt;
  `Artist` varchar(255) NOT NULL,&lt;br /&gt;
  `Album` varchar(255) NOT NULL,&lt;br /&gt;
  `Genre` varchar(255) NOT NULL,&lt;br /&gt;
  `SongLen` int(11) NOT NULL,&lt;br /&gt;
  PRIMARY KEY  (`ID`)&lt;br /&gt;
 );&lt;br /&gt;
&lt;br /&gt;
==Field Descriptions==&lt;br /&gt;
&lt;br /&gt;
 ID - The file ID.&lt;br /&gt;
  On Windows, this is the CRC of the full path and filename in lower case.&lt;br /&gt;
  On Linux/other, this is the CRC of the full path and filename, but not converted to lowercase first since those systems filesystems are case sensitive.&lt;br /&gt;
&lt;br /&gt;
 Path - The folder the file is in. &lt;br /&gt;
 FN - The filename of the file (without the path).&lt;br /&gt;
  Note: If you want the full path and filename in a query, you can use CONCAT(Path,FN)&lt;br /&gt;
&lt;br /&gt;
 mTime - The file&amp;#039;s last modification time in standard C time() style. AutoDJ uses this to know whether it should re-read the file&amp;#039;s meta tags.&lt;br /&gt;
&lt;br /&gt;
 LastPlayed - The timestamp of the last time the file was queued for playback.&lt;br /&gt;
&lt;br /&gt;
 PlayCount - The number of times the file has been queued for playback.&lt;br /&gt;
&lt;br /&gt;
 LastReq - This field will hold the last time the file was requested. Currently AutoDJ doesn&amp;#039;t fill this in for !request, etc., but should in the future.&lt;br /&gt;
&lt;br /&gt;
 ReqCount - This field will hold how many times the file has been requested. Currently AutoDJ doesn&amp;#039;t fill this in for !request, etc., but should in the future.&lt;br /&gt;
&lt;br /&gt;
 Title/Artist/Album/Genre - Holds the meta info read from the file, it should be obvious which is which.&lt;br /&gt;
&lt;br /&gt;
 SongLen - The length of the song in seconds, if available.&lt;br /&gt;
&lt;br /&gt;
{{radiobot}}&lt;/div&gt;</summary>
		<author><name>Indy</name></author>
	</entry>
</feed>