Can't get occ to work for changing database

I can’t for the life of me figure out the format to use to convert my sqlite db to mysql using the web occ commands. I’ve tried everything every witch way and run into errors with everything…

the closest i’ve gotten anything to work was using =

db:convert-type --all-apps mysql hack 127.0.0.1 cloudfiles

i get - In Connection.php line 68: Failed to connect to the database: An exception occurred in driver: could not find driver

using =

db:convert-type mysql hack 127.0.0.1 cloudfiles

gives the same error.

using =

php occ db:convert-type --all-apps mysql hack 127.0.0.1 cloudfiles

says php is not defined

using =

sudo -u www-data php occ db:convert-type mysql hack 127.0.0.1 cloudfiles

says sudo is not defined

Nextcloud version (eg, 18.0.2):
Operating system and version (buster lite on raspberry pi):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

this is my first time using this occ command line and i’m at a complete loss with all the documentation i’ve found in the help docs.

You did not fill out important fields.

Nextcloud version (eg, 18.0.2) :
Operating system and version (buster lite on raspberry pi) :
Apache or nginx version (eg, Apache 2.4.25) :
PHP version (eg, 7.1) :

We need that information to help you. When it says “php is not defined”, “sudo is not defined” it means just that, you have to install the packages.

1 Like

false, those are installed…

i was just asking about the format for the commands. after a while of playing with it, i figured out you can’t use sudo or php commands in the web occ interface.

seems like you just misunderstood the easy question ( that doesn’t need all this useless info )

thanks anyways…