Skip to main content

MySQL-based store for tiddlyweb

Project description

tiddlywebplugins.mysql3
=======================

_A plugin for [TiddlyWeb](http://tiddlyweb.com) subclassing
[tiddlywebplugins.sqlalchemy3](https://github.com/cdent/tiddlywebplugins.sqlalchemy)
with MySQL specifics._

The main additions to sqlalchemy3 are:

* Optionally extend the search interface using mysql's fulltext.
* Support finding tiddlers that have geo.lat and geo.long fields
near a location.

Setup
-----

MySQL 5.5 or beyond is required for full Unicode support.

It is important to set some mysql my.cnf variables if you are using
the fulltext indexing otherwise searches will likely fail.

```
[mysqld]
ft_min_word_len = 3
ft_stopword_file = ''
```

You will need to create a database:

```
create database tiddlyweb character set = utf8mb4 collate = utf8mb4_bin;
```

Make sure you `GRANT` appropriate `PRIVILEGES` on the database.

Add the following to `tiddlywebconfig.py`:

```
'server_store': ['tiddlywebplugins.mysql', {
'db_config': 'mysql:///tiddlyweb?charset=utf8mb4'}],
'indexer': 'tiddlywebplugins.mysql', # optional
```

If you want to use the fulltext indexing capability you will need to
create the fulltext index:

```
CREATE FULLTEXT INDEX tiddlytext ON text(text);
```

Also set `mysql.fulltext` to `True` in `tiddlywebconfig.py`. This makes
sure the text table will be `MyISAM`.

Note that even if fulltext is not turned on, text searches will still
work, but not as flexibly.

See <http://tiddlyweb-sql.tiddlyspace.com/> for additional documentation and
assistance.

Thanks
------

Thanks to [Adrian Hosey](http://adrianhosey.blogspot.com/) for help over
some SQL humps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiddlywebplugins.mysql3-3.1.1.tar.gz (30.0 kB view details)

Uploaded Source

File details

Details for the file tiddlywebplugins.mysql3-3.1.1.tar.gz.

File metadata

File hashes

Hashes for tiddlywebplugins.mysql3-3.1.1.tar.gz
Algorithm Hash digest
SHA256 42db3a0a76df3d57982c442f919f57962f0777d698a4780dcfa3899a4ec93339
MD5 9c3ae9c22960712b525419ec85005800
BLAKE2b-256 b5cc24984aa8fd54ad6fdc1b7dbb046a26ac0e2f9368ccd40f7ed4b2bdd9d054

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page