Open moll-re opened 3 years ago
For django, set the backend to django.db.backends.mysql
and install mysqlclient
through pip. This also requires system-packages:
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
EDIT: for arch-linux the package is:
mariadb-libs
Aditionally: enable emoji support and utf8 in general: Is a client issue. TODO: change in django and peewee!
mariadb-server
from apt./etc/mysql/my.cnf
to allow external access (set running ip to0.0.0.0
): Actually directly overwrite the parameter in/etc/mysql/mariadb.conf.d/50-server.cnf
sudo mysql_secure_installation
sudo mysql
)CREATE DATABASE aio_logging;
CREATE USER 'aio_logger'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON aio_logging.* to 'aio_logger'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root -p mysql
FLUSH PRIVILEGES;