Extracting mysql database from a Nextcloud snap?

@kyrofa I received an error after running nextcloud.mysqldump

mysqldump: Got error: 2002: Can’t connect to local MySQL server through socket ‘/tmp/sockets/mysql.sock’ (2) when trying to connect

I then ran sudo snap services to check if nextcloud.mysql was running

Service                    Startup  Current   Notes
nextcloud.apache           enabled  active    -
nextcloud.logrotate        enabled  inactive  timer-activated
nextcloud.mdns-publisher   enabled  active    -
nextcloud.mysql            enabled  active    -
nextcloud.nextcloud-cron   enabled  active    -
nextcloud.nextcloud-fixer  enabled  active    -
nextcloud.php-fpm          enabled  active    -
nextcloud.redis-server     enabled  active    -
nextcloud.renew-certs      enabled  active    -

Did I leave something out?

Additionally, when trying sudo nextcloud.export -b -c I get Waiting for MySQL...

Why would MySQL be waiting if the above shows enabled?