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

command prompt does not accept new line character \n in my.cnf

    XMLWordPrintable

Details

    Description

      We upgraded some of our machines from 10.3 to 10.6 and noticed that mysql client / mariadb client command prompt looks different in 10.6 because it does not accept newline character \n

      \n is documented in https://mariadb.com/kb/en/mysql-command-line-client/

      In 10.3 we had

      [mysql]
      prompt = \u @ \h [\d]:\nmysql>\_
      

      The prompt looks like this:

      root @ localhost [(mydatabase)]:
      mysql>
      

      With the same settings in MariaDB 10.6 the prompt looks like this:

      root @ localhost [(mydatabase)]:mysql>
      

      The prompt is not wrapped to 2 lines.

      I also tried to define it in section [mariadb-client] but nothing changed.

      This is clearly a regression from the older versions.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            Lachman Miroslav Lachman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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