sudo service mysql stopsudo mysqld --skip-grant-tables --user=root/etc/mysql/mysql.conf.d/mysqld.cnf в секцию [mysqld] добавить строчкуskip-grant-tables и выполнить sudo service mysql restartmysql -u rootUPDATE mysql.user SET authentication_string=PASSWORD('<новый пароль>'), plugin='mysql_native_password' WHERE User='root' AND Host='localhost';
FLUSH PRIVILEGES;sudo service mysql restartskip-grant-tables в /etc/mysql/mysql.conf.d/mysqld.cnf - удалить эту строчку.q_filial = TbPeople.objects.raw("SELECT DISTINCT web_tbpeople.szFilial, 1 AS id "
"FROM web_tbpeople ORDER BY web_tbpeople.szFilial;")szID и это строковая переменная. Таким образом для моего случая рабочий код вот такой:q_filial = TbPeople.objects.raw("SELECT DISTINCT web_tbpeople.szFilial, '1' AS szID "
"FROM web_tbpeople ORDER BY web_tbpeople.szFilial;")q_filial = TbPeople.objects.raw("SELECT DISTINCT web_tbpeople.szFilial AS szID"
"FROM web_tbpeople;")docker run --name 10.1.23-mariadb --net=host -v /opt/test/mariadb:/var/lib/mysql -v /opt/test/mariacnf:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=password -d mariadb:10.1.23как вносить изменения в проект при запущенном контейнере
version: '3.4'
services:
app:
volumes:
- ./app:/app/app
- ./frontend:/app/frontendsystemctl status postgresqllocal all postgres all