embulk-plugin-mysql
DEPRECATION
embulk-plugin-mysql
is deprecated.
Please use embulk-output-mysql
instead.
What is this
embulk-plugin-mysql is a plugin for embulk. Currently, this plugin only useful for output.
Installation
- Make your work space directory.
- Make your bundle file such as followings:
gem 'embulk'
gem 'embulk-plugin-mysql'
- execute bundle install
$ bundle install
- make and guess embulk config
You can use output type config to mysql. see also Settings section.
exec: {}
in:
type: file
paths: [test.csv]
out:
type: mysql
host: 127.0.0.1
username: root
password: abcdefghijklmn
database: embulk_test
table: test000
then guess, and run.
$ bundle exec embulk guess partial-config.yml -o config.yml
$ bundle exec embulk run config.yml
Settings
You can use output settings as followings:
Setting element | value |
---|---|
type | mysql |
host | Your mysql host address |
port | Your mysql port number |
username | Your mysql user name |
password | Your mysql password |
database | Your mysql database name |
table | Your mysql table name |
if password is empty or not setted, then embulk-plugin-mysql don't use authorization.
Contributing
- Fork it ( https://github.com/shiracha/embulk-plugin-mysql/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request