NextCloud Command Line Installation Error MySQL Not Supported


  • Service Provider

    Working with the NextCloud installation instructions here: https://docs.nextcloud.com/server/11/admin_manual/installation/command_line_installation.html

    0_1489026082875_Screenshot from 2017-03-09 03-21-12.png

    sudo -u apache php occ maintenance:install --database "mysql" --database-name "nextcloud" --database-user "root" --database-pass "" --admin-user "admin" --admin-pass "superdupercrazysecretepasswordthatnooneknows"
    Nextcloud is not installed - only a limited number of commands are available
    
                                           
      [InvalidArgumentException]          
      Database <mysql> is not supported.  
    

    Why would MySQL not be supported? It's the database from the example.


  • Service Provider

    If you see this, check your logs, I found this in mind, it was php-pdo missing. Actually it was not missing, but httpd had not been restarted since it was installed.

    [Thu Mar 09 02:49:16.682471 2017] [:error] [pid 3611] [client 192.168.88.245:34266] {"reqId":"WMC0nFFrJ-GCwZGoc2zWYQAAAAo","remoteAddr":"192.168.88.245","app":"index","message":"Exception: {\\"Exception\\":\\"Error\\",\\"Message\\":\\"Class 'PDO' not found\\",\\"Code\\":0,\\"Trace\\":\\"#0 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/lib\\\\\\/private\\\\\\/Setup.php(171): OC\\\\\\\\Setup->getAvailableDbDriversForPdo()\\\\n#1 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/lib\\\\\\/private\\\\\\/legacy\\\\\\/util.php(658): OC\\\\\\\\Setup->getSupportedDatabases()\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/lib\\\\\\/base.php(692): OC_Util::checkServer(Object(OC\\\\\\\\AllConfig))\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/lib\\\\\\/base.php(1092): OC::init()\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/index.php(38): require_once('\\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/n...')\\\\n#5 {main}\\",\\"File\\":\\"\\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud\\\\\\/lib\\\\\\/private\\\\\\/Setup.php\\",\\"Line\\":115}","level":3,"time":"2017-03-09T01:49:16+00:00","method":"GET","url":"\\/nextcloud\\/index.php","user":"--","version":""}
    

Log in to reply
 

Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.