Nextcloud version (eg, 20.0.5): 25.0.1
Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 10
Apache or nginx version (eg, Apache 2.4.25): nginx/1.22.0
PHP version (eg, 7.4): 8.1.12
The issue you are facing: when attempting to run the ./occ maintenance:install
command to install nextcloud, i receive the error
MySQL username and/or password not valid
-> You need to enter details of an existing account.
Is this the first time you’ve seen this error? (Y/N): Yes, but it’s also the first time I’ve tried to install NextCloud 25.0.1
Steps to replicate it:
- Download nextcloud 25.0.1
- Untar into correct location
- Set up
src/config/config.php
making sureconfig_is_read_only
is set tofalse
andinstalled
is set tofalse
- Run
./occ maintenance:install
with all necessary options
IT appears my issue is identical to this github issue. The db and db user account were created for me. When checking my grants, I see that I do not have all privileges with the GRANT OPTION.
MariaDB []> SHOW GRANTS;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for <removed> |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT PROCESS ON *.* TO `<removed>`@`<removed>` |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `<dbname>`.* TO `<removed>`@`<removed>` |
The solution I’ve seen in this community forum and in the github issue is to grant all privileges with option
to the account, but in my situation, that is unlikely to be possible.
I’ve searched the docs but have been unable to locate the answer to this question: what specific privileges does the account need in order to be able to install NextCloud and is OPTION
also required? Are there alternative options for installation that do not require all privileges with OPTION?