canonical / charmed-mysql-snap

SNAP for Charmed MySQL charm.
https://snapcraft.io/charmed-mysql
Apache License 2.0
0 stars 4 forks source link

Add slots to access mysqld and mysqlrouter socket files #22

Closed shayancanonical closed 1 year ago

shayancanonical commented 1 year ago

Issue

The mysqld and mysqlrouter socket files will need to be accessible by other snaps (or charms with other snaps). The charmed-mysql snap is strictly confined.

Solution

Add slots for the $SNAP_COMMON/var/run/mysqld folder to access mysqld socket files Add slots for the $SNAP_COMMON/var/run/mysqlrouter folder to access the mysqlrouter socket files

taurus-forever commented 1 year ago

Should we remove mysql-8.0 here:

package-repositories:
  - type: apt
    components:
      - mysql-8.0

Otherwise SNAP will install MySQL 8.0.33 from Oracle and we need 8.0.32 from Canonical. Isn't it?

shayancanonical commented 1 year ago

Should we remove mysql-8.0 here:

package-repositories:
  - type: apt
    components:
      - mysql-8.0

Otherwise SNAP will install MySQL 8.0.33 from Oracle and we need 8.0.32 from Canonical. Isn't it?

The issue is that mysql-tools contains both mysqlrouter and mysqlsh, which when installed from MySQL will install 8.0.33. I am trying to determine how to install mysqlsh 8.0.32, but they only expose tar files for older versions and the deb is only for the latest version