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

          Indeed, that page should be saying

          client/mariadb --defaults-file=~/mariadb.cnf
          

          serg Sergei Golubchik added a comment - Indeed, that page should be saying client/mariadb --defaults-file=~/mariadb.cnf
          HNOONa-0 Ahmed Hani added a comment - - edited

          Hey Sergei, I can work on this if possible

          HNOONa-0 Ahmed Hani added a comment - - edited Hey Sergei, I can work on this if possible

          no, you cannot. it's an omission on the web page. someone with proper access rights should fix the page you were referring to, https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/

          you cannot do it, and I cannot do it

          serg Sergei Golubchik added a comment - no, you cannot. it's an omission on the web page. someone with proper access rights should fix the page you were referring to, https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/ you cannot do it, and I cannot do it

          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.