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

Client conf files

    XMLWordPrintable

Details

    Description

      I'm using libmariadb 2.3.2 from vcpkg on Windows 10.

      What conf files is this supposed to read? I can't find the docs.
      MySQL says it reads %APPDATA%\MySQL\.mylogin.cnf but I can't get it to work.

      mysql_init(&m_handle);
      mysql_options(&m_handle, MYSQL_READ_DEFAULT_GROUP, "");
      mysql_real_connect(&m_handle, "", "", NULL, database.c_str(), 0, NULL, 0));
      

      C:\Users\Olaf\AppData\Roaming\MySQL\.mylogin.cnf

      [client]
      host = debian
      user = root
      

      Error: Can't connect to MySQL server on 'localhost' (0)
      After I hard-code the host: Access denied for user 'Olaf'@'192.168.157.1' (using password: NO)

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              XTF Olaf van der Spek
              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.