I have seen a number of solutions suggested for this error but none have worked for me. I think it is because the installations are slightly different from what I am doing.
Here is what I have going…
I am trying to install Nextcloud on a macOS machine using the Docker container.
I want to run the DB off of the local drive.
I have installed mariaDB and created a db and and db user for Nextcloud
I have set the folder privileges containing the db to allow the www user to read and write.
When running the setup wizard I get following error “Can’t create or write into the data directory /usr/local/var/mysql”.
I suspect this has something to do with trying to access the db outside of the container. I am not even sure running the db on the local drive is the best idea and maybe I should be running it from the container itself. If so, I can’t figure out how to do that either.
I have read a bunch of posts and looked the Nextcloud documentation. I am beginning to feel like a dunce. Any help is greatly appreciated.