Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
Labels
Friday, 29 January 2021
MySQL DELETE FROM - removing entries from a table bases on some value or values.
Friday, 22 January 2021
Restore lost or broken configurations files in Debian
If we've deleted or messed up a configuration file, then we can restore by doing the following;
Thursday, 21 January 2021
Read my.cnf file
If we want to read an option group within a my.cnf config file for MySQL, then we can do so as follows;
my_print_defaults --config-file=/etc/mysql/my.cnf mysqld2
The following works quite well;
my_print_defaults mysqld1
this will read from all configuration files (assuming they are included), where mysqld1 is the group
Tuesday, 12 January 2021
Running Multiple MySQL Instances on One Machine
WIP
Resources;
https://dev.mysql.com/doc/refman/8.0/en/multiple-servers.html
https://mariadb.com/kb/en/running-multiple-mariadb-server-processes/#systemd
https://www.percona.com/blog/2014/08/26/mysqld_multi-how-to-run-multiple-instances-of-mysql/
Master-Slave
https://www.toptal.com/mysql/mysql-master-slave-replication-tutorial this one rocks
https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql
See also https://stackoverflow.com/a/2896718
and my previous post here
For an overview of Replication specific Filters, see here https://mydbops.wordpress.com/2021/09/24/replication-filters-in-mysql-an-overview/
See here for copies of my 3 cnf files from a working configuration on a Slackware box.
Monday, 11 January 2021
Wednesday, 6 January 2021
Problem building meslink
I had trouble building mesllink using Netbeans but note that it did build correctly from the original source on the box, from the command line by running make.
This is similar to a problem I had with mesdb detailed here. (worth reading first).