Create a database for Nextcloud

Create a database

$ sudo mariadb -u root -p
> CRATE DATABASE nextclouddb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ui;
> CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'xxxxxxxx';
> GRANT ALL PRIVILLEGES ON nextclouddb.* TO 'nextclouduser'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;

Here is the example settings

  • Database Name : nextclouddb
  • User Name : nextclouduser
  • Password : xxxxxxxx

Last Updated on July 19, 2021 by lama-admin


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *