michondr / leazy

linux eazy - dotfiles & config for fresh install of ubuntu
1 stars 0 forks source link

mysql-8.0 incompatibility with python connectors #2

Open michondr opened 5 years ago

michondr commented 5 years ago
michondr commented 5 years ago

quic solution is to run mysql in docker:

configuring docker if you dont have it:

installing mysql container:

setup db:

CREATE DATABASE \`pytest-portal\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE \`pytest-datamall\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'pytest'@'%' IDENTIFIED BY 'pytest';
GRANT ALL PRIVILEGES ON *.* TO 'pytest'@'%' WITH GRANT OPTION;