<commit_before>dokku-ephemeral-mysql-plugin
============================

Dokku plugin to create and link to an ephemeral mysql container<commit_msg>Write first version of readme<commit_after>dokku-ephemeral-mysql-plugin
============================

Dokku plugin to create and link to an ephemeral mysql container

## Install

```bash
cd /var/lib/dokku/plugins
git clone https://github.com/udzura/dokku-ephemeral-mysql-plugin.git ephemeral_mysql
dokku plugins-insall ephemeral_mysql
```

## Commands

```
    ephemeral_mysql:create <mysql_app> Create a ephemeral MySQL container
    ephemeral_mysql:delete <mysql_app> Delete specified MySQL container
    ephemeral_mysql:info <mysql_app> Display container informations
    ephemeral_mysql:link <main_app> <mysql_app> Link an app to a MySQL container
    ephemeral_mysql:logs <mysql_app> Display last logs from MySQL container
```

## Simple usage

```bash
ssh -t dokku@server ephemeral_mysql:create sample
git remote add dokku dokku@server:sample
git push dokku master
# Automatically linked
ssh -t dokku@server ephemeral_mysql:info sample

Host:          172.17.0.9
    Internal port: 3306
    Public port:   49214
    User name:     root
    Password:      <PASSWORD>
    DB name:       sample

ssh -t dokku@server config sample

=== sample config vars ===
DATABASE_URL: mysql://root:docker@172.17.0.9:3306/sample
MYSQL_URL:    mysql://root:docker@172.17.0.9:3306/sample
Connection to dokku@server closed.

```

## See also

* MariaDB Plugin https://github.com/Kloadut/dokku-md-plugin
* Redis Plugin https://github.com/jezdez/dokku-redis-plugin
{'fraction_non_alphanumeric': 0.12273011897307451, 'fraction_numerical': 0.023794614902943018, 'mean_word_length': 4.510344827586207, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5638356', 'n_tokens_mistral': 563, 'n_tokens_neox': 515, 'n_words': 139}