Correct syntax for db:convert?

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.

Hello there ,

You started a topic in support category.
Unfortunately you ignored the template and a lot of information to help you is missing.

Please add all necessary information like Nextcloud version, webserver type and version, os version, related log file content.
Use the support template.

Without additional information the community members cannot help you.

Regards,
rakekniven

Btw. Is php Module for new db type installed and enabled ?