vasan's deck

...to use the less safe log_bin_trust_function_creators variable) login into the mysql container docker exec -it wow-mysql-cont /bin/bash cd /etc/mysql/ cp my.cnf mycnfbk

echo 'log_bin_trust_function_creators = 1' >> my.cnf OR login as root user mysql -h50.0.0.41 -uroot -p mysql> set global log_bin_trust_function_creators=1; cleaning dump database...

vasan's deck

Mysql Secure Installation in ubuntu 18.04 sudo apt install mysql-server enter Y to install 2. sudo mysql_secure_installation to run automated securing script 3. Press N for VALIDATE...

...database and access to it? Y 8. Reload privilege tables now? Y 9. sudo mysql to enter MySQL CLI 10. SELECT user,authentication_string,plugin,host FROM mysql.user;

networks: pwa_net: ipam: driver: default config: - subnet: 60.0.0.0/24 gateway: 60.0.0.1 services: mysql-cont: image: mysql:8.0 container_name: springboot-mysql-cont networks: pwa_net: ipv4_address...

networks: pwa_net: ipam: driver: default config: - subnet: 60.0.0.0/24 gateway: 60.0.0.1 services: mysql-cont: image: mysql:8.0 container_name: springboot-mysql-cont networks: pwa_net: ipv4_address...

.../home/suresh/works/projects/magentoEnt242:/var/www/html environment: SERVER_NAME: magentoent242.dev.local USER_ID: 1000 networks: pwa_net: ipv4_address: 40.0.0.10 mysql-cont: image: mysql:8.0 container_name: magentoent242-mysql-cont networks: pwa_net: ipv4_address...

MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: magentoent242 MYSQL_USER: magentoent242 MYSQL_PASSWORD: magentoent242 mailhog-cont: container_name: magentoent242-mailhog image: mailhog/mailhog networks: pwa_net: ipv4_address: 40.0.0.12 elastic-cont...

.../home/suresh/works/projects/magentoEnt242:/var/www/html environment: SERVER_NAME: magentoent242.dev.local USER_ID: 1000 networks: pwa_net: ipv4_address: 40.0.0.10 mysql-cont: image: mysql:8.0 container_name: magentoent242-mysql-cont networks: pwa_net: ipv4_address...

MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: magentoent242 MYSQL_USER: magentoent242 MYSQL_PASSWORD: magentoent242 mailhog-cont: container_name: magentoent242-mailhog image: mailhog/mailhog networks: pwa_net: ipv4_address: 40.0.0.12 elastic-cont...

Best results in other decks

mysqlperformanceblog.com

When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One of them might be conditions with improper data types.

...assume you have a users table with an email field (varchar) which is indexed. MySQL will use the index when your query is well-formed: mysql> EXPLAIN SELECT * FROM users...

If replication is broken by a simple invalid query, i.e. grants change, etc. you can force-skip that query:

Search in all decks