Antville Project

MySQL instead of McKoi

Hello,

don't want to bother again, but I'd like to switch to MySQL and did not figure it quite out.

I used db.properties.mysql from ./apps/antville/db_support and copied it to ./apps/antville/db.properties. This does not seem to cut the deal.

There is a script called antville_mysql.sql which creates the tables and user/pass in MySQL, how is this executed? Did I miss something?

Thank you!

comment    

 
hns, April 16, 2003 at 11:19:44 AM CEST

If you just want to configure antville to use MySQL instead of Mckoi, here's the basic setup procedure:

  1. Have a working installation of MySQL.
  2. Make sure you have the MySQL JDBC driver installed. You can download the latest version from the MySQL web site. Place the driver .jar file into the lib/ext folder of your installation.
  3. Import antville_mysql.sql. I think this can be done with

    mysql -u root -p < /path/to/antville_mysql.sql

    (you'll be prompted for the mysql root password). You should change the antville user password (IDENTIFIED BY 'antville') in the GRANT statement at the beginning of the file before performing this step!

  4. Copy db.properties.mysql to apps/antville/db.properties (like you did already) and adapt it to your actual setup (URL, user, password)

This should be it.

If you want to transfer existing date from Mckoi to MySQL, that could be a bit trickier. It may be possible with 3rd party JDBC tools. It may also be possible to do this using a low level Helma hack. Let me know if you need this and I may be able to provide something later today.

link  

 
Boolean, April 16, 2003 at 1:34:29 PM CEST

Thanks

for the clear outlining.

I am indeed looking for a mechanism to translate an existing antville-mckoi database into mysql. Nex provided some hints, but I was not able to find a command-line tool.

I would greatly appreciate if you could come up with a solution. Thanks for your effort.

I will include everything in a step-by-step guide to installing antville on linux (including start/stop scripts, connecting to apache, choosing mysql etc.) I currently have in the works.

link  

 
hns, April 16, 2003 at 2:25:03 PM CEST

OK

I can provide a script to do the transfer. However, it'll require Helma 1.2.4 (coming out later today), and I won't be able to post the script here earlier than tomorrow.

To anybody interested, Helma 1.2.4 will contain a feature to export existing relational HopObjects into other (compatible) DbSources.

link  

 
robert, April 16, 2003 at 3:31:43 PM CEST

To anybody interested, Helma 1.2.4 will contain a feature to export existing relational HopObjects into other (compatible) DbSources.

that sounds really interesting!

link  

 
hns, April 16, 2003 at 3:33:50 PM CEST

I just committed the feature. The code for exporting one singular HopObject looks like this:

var nmgr = app.app.getNodeManager(); var dbs = app.app.getDbSource("antville-new"); nmgr.exportNode(this.node, dbs);

An export script would loop over all (relevant) HopObjects and invoke nmgr.exportNode() on them.

link  

 
hns, April 16, 2003 at 9:35:34 PM CEST

oops, doesn't work with today's 1.2.4 builds. new builds will be out tomorrow. on the upside, the export script is finished and runs well.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8578 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
December 2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher