Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25422

changed DB location and sock from /var/lib but not able to connect

    XMLWordPrintable

    Details

      Description

      DB is up and running
      [root@ apps]# systemctl -l status mariadb
      ● mariadb.service - MariaDB database server
      Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
      Active: active (running) since Wed 2021-04-14 18:34:21 PDT; 23s ago

      [root apps]# cat /apps/mysql/mariadb.sock
      cat: /apps/mysql/mariadb.sock: No such device or address

      mariaDB sock is controlled by system control
      [root@ apps]# cat /var/run/mariadb/mariadb.pid
      2741

      So when I try to connect I cant
      [root@ apps]# mysql -u root -p
      Enter password:
      ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/apps/mysql/mysql.sock' (2)

        Attachments

          Activity

            People

            Assignee:
            danblack Daniel Black
            Reporter:
            darrenfinch Darren Finch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration