I’m trying to install Insights by following the script here:
(but using edx configuation at koa.2a tag)
However, I got error at “TASK [edx_django_service : migrate database]” which try to connect to local MySQL server:
django.db.utils.OperationalError: (2002, “Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)”)
I have already set the DB_HOST, DB_USERNAME … in the script to the DB server (on another host). I have tried changing INSIGHTS_DATABASE_HOST and other database parameters in playbooks/roles/insights/defaults/main.yml, but it still try to connect to local MySQL.
My question are:
- Do I need to install a local MySQL server? (the script/playbook doesn’t install it)
- If we don’t need local MySQL server, how to specify the remote host to connect to.