First is faster, but requires libmysqlclient. Library is presented in python:2 docker image (by mistake?).