You are not logged in.
Pages: 1
I've installed mariadb. Upon running
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlI get
> mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
chown: changing ownership of '/var/lib/mysql': Operation not permitted
Cannot change ownership of the database directories to the 'mysql'
user. Check that you have the necessary permissions and try again.I've tried running
sudo chown mysql:mysql /var/lib/mysql/but its still failing.
Please let me know if I can provide any other information.
Thanks in advance.
Offline
> mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlNeeds to be run with root privileges such as with `sudo`. On the MariaDB wiki page this is indicated by the # at the start of the command:
# mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlOffline
the install script should no longer be required - just start the server via systemctl start mariadb should do the trick
but what you still should run is the secure_installation script and set a root password (or switch access to unix socket)
Offline
Pages: 1