The easy Weblog and Wiki Software
[ start | index | login ]
start > SnipSnap on MySQL

SnipSnap on MySQL

Created by keikelbo. Last edited by keikelbo, 4 years and 196 days ago. Viewed 3,751 times. #1
[edit] [rdf]
labels
attachments
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

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.

Create a mySQL database and a mySQL user (0.5 en 0.42).

Login in mysql with the mysql command. Execute the following command

GRANT ALL PRIVILEGES ON *.* to snipsnap@'%' 
IDENTIFIED by 'snipsnap' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* 
TO snipsnap@localhost IDENTIFIED 
by 'snipsnap' WITH GRANT OPTION;
create database snipsnap;
use database snipsnap;
Now you have an user snipsnap with the password snipsnap. For security reasons you can choose other values.

Create the database structure (only 0.42).

Run the script createdb.sql (the file can be found>>here) with the following command.

source createdb.sql
Now you have the snip tables, a default snip and an user admin with the password snipsnap

Create a snipsnap application (only 0.42).

Now you can create snipsnap application with the standard installer. This application will use by default the mckoi database.

Add the correct libraries (0.42 and 0.5).

Copy the following libraries to the applications<appname>WEB-INFlib directory:

  • mysql.jar: The jdbc driver. You can download mysql.jar >>here or from the official >>MySQL Site.
  • jdbcpool.jar: This library can be found in the sniplib directory. I do not know why this is needed, but otherwise it wil not work.

Change the configuration file (only 0.42)

Change the following values in the configuration file:

admin.login=snipsnap
admin.password=snipsnap
app.jdbc.url=jdbc:mysql://10.0.0.175/snipsnap
app.jdbc.driver=com.mysql.jdbc.Driver

Import default snips (only 0.42)

Restart snipsnap. Your application wil point to mySQL. Most if the standard information is gone. It must be reloaded.
  • Login as admin with the password snipsnap (only 0.42).
  • Go to the manager menu.
  • Use import to import the export.xml.You can download this file from >>here. This is an export off a just installed application.
16 comments (by lee, akapp, prb, suxx0011, timb, leo, riaz_k, keikelbo, soucpower, funzel, jmb) | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13712 Snips. Installed 6 years and 9 days ago

Logged in Users: (2)
… and 9 Guests.

snipsnap-changed for older changes.

< July 2008 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST