You are not logged in.

#1 2023-05-06 06:32:10

sdanave
Member
Registered: 2020-10-23
Posts: 32

Mariadb install issue

Hi,

I tried to install Mariadb on a new Arch installation and am getting the following error when I try to initialize :

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.

Tried doing chown for mysql on the /var/lib/mysql folder but it did not help.

If I run the above command as sudo, it goes through but I get stuck when I try to do mariadb_sercure_installation. The system does not accept an empty root password (which should be the case for a fresh install).

Any help will be much appreciated !!!

Thanks

Sachin

Offline

#2 2023-05-06 12:49:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,492
Website

Re: Mariadb install issue

sdanave wrote:

If I run the above command as sudo...

There is no "above command".  Please post actual commands and output as it is not at all clear what commands you are running.  It does sound like you also have not yet followed the wiki.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-05-06 14:17:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Mariadb install issue

Moving to "Applications and Desktop Environments"


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB