Hello!
I tried to install nextcloud with the setup-nextcloud.php but have an error when creating the database.
mysql Ver 8.0.16
PHP 7.3.7 (cli) (built: Jul 3 2019 11:30:22) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright © 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.3.7, Copyright © 2002-2019, by ionCube Ltd.
with Zend OPcache v7.3.7, Copyright © 1999-2018, by Zend Technologies
I get
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
mysql> SELECT User, Host, plugin FROM mysql.user;
±-----------------±----------±----------------------+
| User | Host | plugin |
±-----------------±----------±----------------------+
| root | 127.0.0.1 | mysql_native_password |
| root | ::1 | mysql_native_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| root | localhost | mysql_native_password |
| roundcube | localhost | mysql_native_password |
±-----------------±----------±----------------------+
Must have something to do with the mysql version. Tried also
mysql> CREATE USER ‘tester’@’%’ IDENTIFIED BY ‘tester’;
mysql> GRANT ALL PRIVILEGES ON . TO ‘tester’@’%’ WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
and get
| test | % | caching_sha2_password |
but creating the database with root or tester fails.
What can be done to resolve this. When I use mysqladmin I can create a database as user root on the commandline.
Correction: The database is created but it remains empty.
Andreas