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

mariadb/client ignores ~/mariadb.cnf, always connects to /tmp/mysql.sock

Details

    Description

      I created a ~/mariadb.cnf file as per instructions in introduction as follows:

      [client-server]
      socket = /tmp/mariadb.sock
       
      [mariadb]
      datadir = /home/hani/mariadb-data
      

      The mariadb process start successfully:

      Version: '12.0.0-MariaDB-debug'  socket: '/tmp/mariadb.sock'  port: 3306  Source distribution
      

      However, when i try to start the client, i get the following error:

      ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (111)

      It works when the socket path is /tmp/mysql.sock, no other path works.

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            HNOONa-0 Ahmed Hani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.