<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://snipsnap.org/rdf'>
    <s:Snip rdf:about='http://snipsnap.org/rdf#SnipSnap+on+MySQL'
         s:cUser='keikelbo'
         s:oUser=''
         s:mUser='keikelbo'>
        <s:name>SnipSnap on MySQL</s:name>
        <s:content>~~This snip was written for SnipSnap 0.42. SnipSnap 0.5 has MySQL support. This means you do not have to run de database creation commands. It is stil needed to create de mySQL User and add the correct libraries~~&#xA;&#xA;I have SnipSnap working on MySQL. There was no need to change the code. The installation is a bit more complex. Below is described what I did. &#xA;&#xA;1.1 Create a mySQL database and a mySQL user (0.5 en 0.42).&#xA;&#xA;Login in mysql with the __mysql__ command. Execute the following command&#xA;{code}&#xA;GRANT ALL PRIVILEGES ON *.* to snipsnap@&apos;%&apos; &#xA;IDENTIFIED by &apos;snipsnap&apos; WITH GRANT OPTION;&#xA;GRANT ALL PRIVILEGES ON *.* &#xA;TO snipsnap@localhost IDENTIFIED &#xA;by &apos;snipsnap&apos; WITH GRANT OPTION;&#xA;create database snipsnap;&#xA;use database snipsnap;&#xA;{code}&#xA;Now you have an user snipsnap with the password snipsnap. For security reasons you can choose other values.&#xA;&#xA;1.1 Create the database structure (only 0.42).&#xA;&#xA;Run the script __createdb.sql__ (the file can be found{link:here|http://home.planet.nl/~himalaya/createdb.sql}) with the following command.&#xA;{code}&#xA;source createdb.sql&#xA;{code}&#xA;Now you have the snip tables, a default snip and an user __admin__ with the password __snipsnap__&#xA;&#xA;1.1 Create a snipsnap application (only 0.42).&#xA;&#xA;Now you can create snipsnap application with the standard installer. This application will use by default the mckoi database.&#xA;&#xA;1.1 Add the correct libraries (0.42 and 0.5).&#xA;&#xA;Copy the following libraries to the ~~applications\&lt;appname&gt;\WEB-INF\lib~~ directory:&#xA;* __mysql.jar__: The jdbc driver. You can download mysql.jar {link:here|http://home.planet.nl/~himalaya/mysql.jar} or from the official {link:MySQL Site|http://www.mysql.com/downloads/api-jdbc-stable.html}.&#xA;* __jdbcpool.jar__: This library can be found in the ~~snip\lib~~ directory. I do not know why this is needed, but otherwise it wil not work.&#xA;&#xA;1.1 Change the configuration file (only 0.42)&#xA;&#xA;Change the following values in the configuration file:&#xA;{code}&#xA;admin.login=snipsnap&#xA;admin.password=snipsnap&#xA;app.jdbc.url=jdbc:mysql://10.0.0.175/snipsnap&#xA;app.jdbc.driver=com.mysql.jdbc.Driver&#xA;{code}&#xA;&#xA;1.1 Import default snips (only 0.42)&#xA;Restart snipsnap. Your application wil point to mySQL. Most if the standard information is gone. It must be reloaded.&#xA;&#xA;* Login as admin with the password snipsnap (only 0.42).&#xA;* Go to the manager menu.&#xA;* Use import to import the __export.xml__.You can download this file from {link:here|http://home.planet.nl/~himalaya/export.xml}. This is an export off a just installed application.&#xA;</s:content>
        <s:mTime>2004-01-06 14:01:40.24</s:mTime>
        <s:cTime>2003-04-26 13:56:40.704</s:cTime>
        <s:comments>
            <rdf:Bag>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-1'
                         s:cUser='jmb'
                         s:oUser=''
                         s:mUser='jmb'>
                        <s:name>comment-SnipSnap on MySQL-1</s:name>
                        <s:content>thank you for the tips, I was able to adapt this info to get snipsnap working on MS sqlserver see [SnipSnap on MS sqlserver]</s:content>
                        <s:mTime>2003-04-29 03:19:50.384</s:mTime>
                        <s:cTime>2003-04-29 03:19:52.296</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-2'
                         s:cUser='keikelbo'
                         s:oUser=''
                         s:mUser='keikelbo'>
                        <s:name>comment-SnipSnap on MySQL-2</s:name>
                        <s:content>That is great. I think the same is possible for Oracle.</s:content>
                        <s:mTime>2003-04-29 08:04:51.928</s:mTime>
                        <s:cTime>2003-04-29 08:04:50.976</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-3'
                         s:cUser='akapp'
                         s:oUser=''
                         s:mUser='akapp'>
                        <s:name>comment-SnipSnap on MySQL-3</s:name>
                        <s:content>Should have come by earlier :-)&#xA;&#xA;My SnipSnap on MySQL runs pritty well. I suggest a small change to the JDBC URL:  {code}app.jdbc.url=jdbc:mysql://10.0.0.175/snipsnap__?autoReconnect=true__{code}&#xA;&#xA;So the driver reconnects to the database. MySQL shuts down idle connections in a connection pool after 8 hours (default config).</s:content>
                        <s:mTime>2003-05-01 09:34:49.224</s:mTime>
                        <s:cTime>2003-05-01 09:34:49.264</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-4'
                         s:cUser='soucpower'
                         s:oUser=''
                         s:mUser='soucpower'>
                        <s:name>comment-SnipSnap on MySQL-4</s:name>
                        <s:content>What&apos;s the advantage of using mysql ?</s:content>
                        <s:mTime>2003-05-03 10:13:21.368</s:mTime>
                        <s:cTime>2003-05-03 10:13:15.768</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-5'
                         s:cUser='keikelbo'
                         s:oUser=''
                         s:mUser='keikelbo'>
                        <s:name>comment-SnipSnap on MySQL-5</s:name>
                        <s:content>All my applications use mysql. It is convenient for me to use just one database (special for backup and recovery). If you do not use mysql mckoi is fine.</s:content>
                        <s:mTime>2003-05-03 21:38:13.744</s:mTime>
                        <s:cTime>2003-05-03 21:38:14.552</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-6'
                         s:cUser='lee'
                         s:oUser=''
                         s:mUser='lee'>
                        <s:name>comment-SnipSnap on MySQL-6</s:name>
                        <s:content>Good stuff. I might give this a go over the weekend. I&apos;ve been concerned about SnipSnap using McKoi.  Using MySQL, at least I will feel safe that all my data is being backed up.&#xA;&#xA;I&apos;ve got a couple of concerns though:&#xA;&#xA;1. Is it possible to migrate an existing SnipSnap to use MySQL?  Your example script just creates a new database, and doesn&apos;t do any sort of import from the look of it. Can you export an existing site, create the database, reconfigure SnipSnap, restart, and import?&#xA;&#xA;1. I&apos;ve not looked at the database or the code, so perhaps you could confirm that all of SnipsSnap&apos;s data in terms of snips, usage counters, trackbacks, users, etc are all stored on the database? ie. all of the non-config related stuff.&#xA;&#xA;1. What do we do when it&apos;s time to upgrade... can [funzel] and co bear in mind that users might be using alternative databases in their upgrade scripts?&#xA;</s:content>
                        <s:mTime>2003-08-21 14:58:08.472</s:mTime>
                        <s:cTime>2003-08-21 14:58:03.512</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-7'
                         s:cUser='funzel'
                         s:oUser=''
                         s:mUser='funzel'>
                        <s:name>comment-SnipSnap on MySQL-7</s:name>
                        <s:content>Yes. We take care about update the next versions. We want to make update as smooth as possible.&#xA;&#xA;For now you could export SnipSnap to XML and then reimport into a new installation. &#xA;&#xA;Yes. Everything is stored in the database except the config stuff (which will be stored in snips in 1.0 too) and CSS (which will be stored in snips after 1.0).&#xA;&#xA;</s:content>
                        <s:mTime>2003-08-21 15:17:10.24</s:mTime>
                        <s:cTime>2003-08-21 15:17:09.056</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-8'
                         s:cUser='keikelbo'
                         s:oUser=''
                         s:mUser='keikelbo'>
                        <s:name>comment-SnipSnap on MySQL-8</s:name>
                        <s:content>The import and export are database agnostic. This means you can use then to convert a McKoi installation into a MySQL installation. The __export.xml__ script I use for a new MySQL installation comes from a fresh McKoi install. </s:content>
                        <s:mTime>2003-08-22 12:17:35.832</s:mTime>
                        <s:cTime>2003-08-22 12:17:37.928</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-9'
                         s:cUser='prb'
                         s:oUser=''
                         s:mUser='prb'>
                        <s:name>comment-SnipSnap on MySQL-9</s:name>
                        <s:content>Works for me on 0.4.2a with MySQL4.0.15 and Connector-3.0.8-stable __if__ I add the user and password to the JDBC URL in the [application.conf] file.  (Without those parameters, the connections will timeout.)</s:content>
                        <s:mTime>2003-10-07 20:02:29.848</s:mTime>
                        <s:cTime>2003-10-07 20:02:29.44</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-10'
                         s:cUser='riaz_k'
                         s:oUser=''
                         s:mUser='riaz_k'>
                        <s:name>comment-SnipSnap on MySQL-10</s:name>
                        <s:content>Please Help!&#xD;&#xA;&#xD;&#xA;I&apos;m using what i believe is the latest version of snipsnap (downloaded the .war a few days ago, just says SnipSnap 1.0b1-uttoxeter). I&apos;m running mysql 4.023, and tomcat 5.0.28.&#xD;&#xA;&#xD;&#xA;I deployed the war. that&apos;s fine. Then i stopped the war site, and dumped the mysql jar and the jdbcpool jar files (weren&apos;t there already) into the /web-inf/lib folder. I&apos;ve also dumped them into nearly every lib folder for tomcat i could find.&#xD;&#xA;&#xD;&#xA;I then start the service. i authenticate, then try and create a mysql database. It says the url is wrong.&#xD;&#xA;&#xD;&#xA;I&apos;ve tried rebooting everything, still no luck. the database and username (no pass) exists - if i type the exact same data word for word into my connection string in Squirrel SQL it connects, no problems. but it doesn&apos;t like me!&#xD;&#xA;&#xD;&#xA;My connection string is jdbc:mysql://riaz01:3306/snipsnapdb. I&apos;ve tried it with localhost, still no luck. it&apos;s for our intranet - we have a file system at present and want to start using a database. riaz01 is the server the database is on.&#xD;&#xA;&#xD;&#xA;I&apos;m really stuck. I can&apos;t see what else i&apos;m missing. i&apos;ve tried the above tutorial but i still get nowhere. I&apos;ve done everything that it says to do for snipsnap 0.5 but it doesn&apos;t seem to work. Please help. Thanks. </s:content>
                        <s:mTime>2005-01-18 09:56:23.191</s:mTime>
                        <s:cTime>2005-01-18 09:56:22.655</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-11'
                         s:cUser='riaz_k'
                         s:oUser=''
                         s:mUser='riaz_k'>
                        <s:name>comment-SnipSnap on MySQL-11</s:name>
                        <s:content>It&apos;s just occured to me that the errors tomcat come out with say that it&apos;s trying to log into my database without the specified username/password - it&apos;s just using &apos;nobody&apos; without a password. how do i get around this? Can anyone tell me how to put this info in the jdbc url?</s:content>
                        <s:mTime>2005-01-18 10:08:39.244</s:mTime>
                        <s:cTime>2005-01-18 10:08:38.704</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-12'
                         s:cUser='riaz_k'
                         s:oUser=''
                         s:mUser='riaz_k'>
                        <s:name>comment-SnipSnap on MySQL-12</s:name>
                        <s:content>Fine! Just worked it out. You have to have a password otherwise snipsnap reverts to a &apos;nobody&apos; login. This is fine, but you may want to look into this. Hope this helps anyone else trying to do this.&#xD;&#xA;&#xD;&#xA;Excellent system by the way.</s:content>
                        <s:mTime>2005-01-18 10:24:35.286</s:mTime>
                        <s:cTime>2005-01-18 10:24:34.725</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-13'
                         s:cUser='leo'
                         s:oUser=''
                         s:mUser='leo'>
                        <s:name>comment-SnipSnap on MySQL-13</s:name>
                        <s:content>I guess the &quot;nobody&quot; is from the mysql driver itself. If you don&apos;t give it a name/password then the driver gets an empty string as far as I remember my programming. We should look into this anyway though.</s:content>
                        <s:mTime>2005-01-18 14:05:47.812</s:mTime>
                        <s:cTime>2005-01-18 14:05:47.288</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-14'
                         s:cUser='timb'
                         s:oUser=''
                         s:mUser='timb'>
                        <s:name>comment-SnipSnap on MySQL-14</s:name>
                        <s:content>....I can&apos;t find the jdbcpool.jar file anywhere! Where do you find it?&#xD;&#xA;Thanks,&#xD;&#xA;Timothy</s:content>
                        <s:mTime>2005-01-19 12:25:52.599</s:mTime>
                        <s:cTime>2005-01-19 12:25:52.061</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-15'
                         s:content='Bump.'
                         s:cUser='timb'
                         s:oUser=''
                         s:mUser='timb'>
                        <s:name>comment-SnipSnap on MySQL-15</s:name>
                        <s:mTime>2005-02-06 22:48:51.662</s:mTime>
                        <s:cTime>2005-02-06 22:48:51.637</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://snipsnap.org/rdf#comment-SnipSnap+on+MySQL-16'
                         s:cUser='suxx0011'
                         s:oUser=''
                         s:mUser='suxx0011'>
                        <s:name>comment-SnipSnap on MySQL-16</s:name>
                        <s:content>__I have latest guide, please see here: [Install SnipSnap with Tomcat and MySQL|suxx0011/Install SnipSnap with Tomcat and MySQL]__</s:content>
                        <s:mTime>2006-05-09 05:29:10.634</s:mTime>
                        <s:cTime>2006-05-09 05:21:28.317</s:cTime>
                        <s:commentedSnip rdf:resource='http://snipsnap.org/rdf#SnipSnap+on+MySQL'/>
                    </s:Comment>
                </rdf:li>
            </rdf:Bag>
        </s:comments>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#SnipSnap'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#database file system'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#SnipSnap on MS SqlServer'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#keikelbo'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#snipsnap-documentation/PureRenderedSnip'/>
                <rdf:li rdf:resource='#comment-PostgreSQL-1'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#SnipSnap on MS sqlserver'/>
                <rdf:li rdf:resource='#TWiki'/>
                <rdf:li rdf:resource='#snipsnap-changed'/>
                <rdf:li rdf:resource='#Sandbox'/>
                <rdf:li rdf:resource='#snipsnap'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#Radeox RenderEngine Tutorial'/>
                <rdf:li rdf:resource='#mtg'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#Feature Matrix'/>
                <rdf:li rdf:resource='#CSS'/>
                <rdf:li rdf:resource='#snipsnap-DOWNLOAD'/>
                <rdf:li rdf:resource='#BeanShell'/>
                <rdf:li rdf:resource='#jmb'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#2003-01-02'/>
                <rdf:li rdf:resource='#lee'/>
                <rdf:li rdf:resource='#comment-faq-59'/>
                <rdf:li rdf:resource='#lartsa'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#literate tar'/>
                <rdf:li rdf:resource='#Install'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#the book of wisdom'/>
                <rdf:li rdf:resource='#install'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#2sweet2sarcastic'/>
                <rdf:li rdf:resource='#comment-dysinger-1'/>
                <rdf:li rdf:resource='#Trygvis'/>
                <rdf:li rdf:resource='#fritzm'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#SnipSnap/'/>
                <rdf:li rdf:resource='#snipsnap-QuickTour'/>
                <rdf:li rdf:resource='#biobrain'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#snipsnap on mysql'/>
                <rdf:li rdf:resource='#Images'/>
                <rdf:li rdf:resource='#argh'/>
                <rdf:li rdf:resource='#hotmaz'/>
                <rdf:li rdf:resource='#snipsnap-download'/>
                <rdf:li rdf:resource='#Contributed'/>
                <rdf:li rdf:resource='#Bliki'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#Theme Tutorial'/>
                <rdf:li rdf:resource='#nfrank'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#start/2004-06-22/1'/>
                <rdf:li rdf:resource='#snipsnap-installed'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#2003-03-31'/>
                <rdf:li rdf:resource='#gotpa'/>
                <rdf:li rdf:resource='#comment-version-0.4.2a-21'/>
                <rdf:li rdf:resource='#comment-version-0.4.2a-52'/>
                <rdf:li rdf:resource='#HOW-TO'/>
                <rdf:li rdf:resource='#jawn'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#Test Link with á'/>
                <rdf:li rdf:resource='#snipsnap-help'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#2002-12-22'/>
                <rdf:li rdf:resource='#help-me-please'/>
                <rdf:li rdf:resource='#Xanadu'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#comment-SnipSnap on MySQL-8'/>
                <rdf:li rdf:resource='#FAQ'/>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#xslt extension function'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
