Nextcloud snap install how to access mysql by tcp port

and not possible to reenable? i have tried already AIO-vm AIO-docker and snap and both always come to some limitations. is not there any more flexible way to install with normal apt-get install ?