DESCRIPTION
This tests the Yancy::Backend::Mysql module which uses Mojo::mysql to connect to a MySQL database.
Set the TEST_ONLINE_MYSQL
environment variable to a Mojo::mysql connect string to run this script.
To make a local MySQL server:
# In another terminal
$ mysqld --initialize --datadir=db
$ mysqld --skip-grant-tables --datadir=db
# In the current terminal
$ mysqladmin create yancy_mysql_test
$ export TEST_ONLINE_MYSQL=mysql://localhost/yancy_mysql_test
NOTE: The only way to kill the MySQL from the other terminal is to use kill(1)
from the first terminal.
SEE ALSO
t/lib/Local/Test.pm
, Mojo::mysql, Yancy