sudo -u www php occ db:convert-type mysql nextcloud localhost nextcloud
What is the database password? [REDACTED]
Creating schema in new database
In Connection.php line 233:
Failed to connect to the database: An exception occurred in the driver: SQL
STATE[HY000] [2002] No such file or directory
and no, the longer form
sudo -u www php occ db:convert-type --port 3306 --password [REDACTED] -- mysql nextcloud localhost nextcloud
doesn’t work either.
This might lead one to think the database doesn’t exist. But it doesn’t. The nextcloud user can login in the provided password.
This seems to be a persistent problem. The only solution I have seen requires hacking the PHP files that manage the process/interaction. Sorry, what? How is that a solution?
I propose removing the endless exhortations to move from sqlite to something else if there is no actual way to do that.
FWIW, Wordpress is running on the same host, using the same database, as it has been for 20 years.