Hello. Novice user here.
I have an
I want to store the database on an external usb drive, accessible at path
I've updated
PROBLEM: I cant restart the mariadb service, and attempting to move the database files from
I presume I have to set a user up on
May I ask someone to advise me on how to set Mariadb with its database on an external USB drive in this way?
Thank you.
I have an
ubuntu-22.10-standard_22.10-1_amd64
LXC running mariadb, stored on the `local` SSD drive that proxmox is installed on.I want to store the database on an external usb drive, accessible at path
/mnt/gdrive/mariadb
.I've updated
/etc/mysql/my.cnf
as:
Code:
[mysqld] datadir=/mnt/gdrive/mariadb
PROBLEM: I cant restart the mariadb service, and attempting to move the database files from
/var/lib/mysql
to /mnt/gdrive/mariadb
produces "permission denied" errors, even as root.I presume I have to set a user up on
/mnt/gdrive/mariadb
- I assume a dedicated mariadb
user - and give it read/write permissions, but I'm a novice Linux/proxmox user and don't know how to do it or where to look.May I ask someone to advise me on how to set Mariadb with its database on an external USB drive in this way?
Thank you.
Last edited: