su - postgres createuser -U postgres appdbuser --pwprompt -S -R -D psql create database cakephp OWNER = appdbuser TEMPLATE = template0 ENCODING = 'UTF8';
su - postgres build/bin/pgloader mysql://user:password@localhost/DB_NAME pgsql:///DB_NAME
timeoutとか結構失敗確立高いのでパラメータ調整必要そう。
MariaDB [cakephp]> show global variables like "%net%timeout%"; +-------------------+-------+ | Variable_name | Value | +-------------------+-------+ | net_read_timeout | 30 | | net_write_timeout | 60 | | slave_net_timeout | 3600 | +-------------------+-------+ 3 rows in set (0.01 sec)
MariaDB [(none)]> SET GLOBAL net_read_timeout = 60;