Results 1 to 3 of 3

Thread: MySQL user and group do not exist

  1. #1
    Join Date
    May 2007
    Beans
    980
    Distro
    Ubuntu 18.04 Bionic Beaver

    MySQL user and group do not exist

    If I execute groups and users, the "mysql" user and group do not appear. I need them because I changed the datadir and I have to chwon it. I tried this:

    Code:
    sudo apt-get --reinstall install mysql-server-5.0
    and then:

    Code:
    sudo dpkg-reconfigure mysql-server-5.0
    But the user and group are not being created.

    How do I force mysql to make its user and group? I would like to avoid making them myself.

  2. #2
    Join Date
    May 2007
    Beans
    980
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: MySQL user and group do not exist

    I made a mistake, the mysql user and group do exist, but I can't chown a folder.
    I did this:
    Code:
    mkdir folder
    chown -R mysql:mysql folder/
    and when I do ls -l it is listed as beng in the root group and belongs to root :-S

  3. #3
    Join Date
    May 2007
    Beans
    980
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: MySQL user and group do not exist

    After thinking about some time, I figured it out!

    The problem is that my new folder is in a FAT32 partition and it doesn't support file permissions, so apparently by default all the files are owned by root and that can not be changed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •