Commit graph

10 commits

Author SHA1 Message Date
Lance Edgar 075f931b5e Add separate functions for dump, restore of mysql DB 2023-07-18 15:17:18 -05:00
Lance Edgar 9ae0015aba Allow skipping of triggers when dumping MySQL DB
specifically this is b/c of a production demo which makes use of multiple
triggers of the same "type" but my dev maching has older MariaDB which doesn't
allow such multiple triggers
2021-02-02 11:31:27 -06:00
Lance Edgar 96f950d958 Try to set mysql user password in 2 different ways
so some versions of MySQL and/or MariaDB do not agree as to how the password
should be set?  weird, but oh well, hopefully this works everywhere...
2020-09-30 18:19:36 -05:00
Lance Edgar c9aebd84e9 Change how we set password when creating a MySQL user
the way we were doing it just failed on MySQL (proper, not MariaDB) 8.0
2020-09-26 14:35:52 -05:00
Lance Edgar 7590760569 Add some more mysql functions, copied from rattail-fabric 2020-03-21 16:42:19 -05:00
Lance Edgar 477af6c6a0 Add TODO comment 2019-09-26 22:02:02 -05:00
Lance Edgar 039af4b394 Tweak mysql.sql() to allow suppressing echo and output
also install default-mysql-server now, per latest debian
2019-09-09 14:18:11 -05:00
Lance Edgar eae08ad5d4 Force using sudo "as root" for various mysql commands
this lets us leverage `/root/.my.cnf` b/c it uses `sudo -H`
2019-08-10 02:44:44 -05:00
Lance Edgar 5a7a122e2d Add mysql.table_exists() convenience function 2019-08-06 18:25:14 -05:00
Lance Edgar c2fe7586da Port "most" of mysql logic from rattail-fabric
seems i maybe just forgot to commit this last time?
2019-01-06 14:14:21 -06:00