How to connect mysql workbench to running mysql inside docker?

By default after deployment MySQL has following connection restrictions: mysql> select host, user from mysql.user; +———–+—————+ | host | user | +———–+—————+ | localhost | healthchecker | | localhost | mysql.session | | localhost | mysql.sys | | localhost | root | +———–+—————+ 4 rows in set (0.00 sec) Apparently, for the security purposes you … Read more

How to access remote server with local phpMyAdmin client?

Just add below lines to your /etc/phpmyadmin/config.inc.php file in the bottom: $i++; $cfg[‘Servers’][$i][‘host’] = ‘HostName:port’; //provide hostname and port if other than default $cfg[‘Servers’][$i][‘user’] = ‘userName’; //user name for your remote server $cfg[‘Servers’][$i][‘password’] = ‘Password’; //password $cfg[‘Servers’][$i][‘auth_type’] = ‘config’; // keep it as config You will get Current Server: drop down with both 127.0.0.1 and … Read more

Problems with contenttypes when loading a fixture in Django

manage.py dumpdata –natural will use a more durable representation of foreign keys. In django they are called “natural keys”. For example: Permission.codename is used in favour of Permission.id User.username is used in favour of User.id Read more: natural keys section in “serializing django objects” Some other useful arguments for dumpdata: –indent=4 make it human readable. … Read more

MySQL maximum memory usage

MySQL’s maximum memory usage very much depends on hardware, your settings and the database itself. Hardware The hardware is the obvious part. The more RAM the merrier, faster disks ftw. Don’t believe those monthly or weekly news letters though. MySQL doesn’t scale linear – not even on Oracle hardware. It’s a little trickier than that. … Read more