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

LP:888780 - errmsg.sys in the wrong place

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I'm running this:

      SERVER=/Users/Nathan/Server
      SOFTWARE=$SERVER/software
      CC="gcc --pipe" CFLAGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -mtune=native -m64 -O3 -fno-omit-frame-pointer " CXX="g++" CXXFLAGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -O3 -fno-omit-frame-pointer " CXXLDFLAGS="" ./configure --prefix=$SOFTWARE --datadir=$SERVER/data --sysconfdir=$SERVER/conf --with-unix-socket-path=$SERVER/tmp/mysql.sock --with-mysqld-user=$(whoami) --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-plugin-aria --with-aria-tmp-tables --without-plugin-innodb_plugin --with-mysqld-ldflags=-static --with-client-ldflags=-static --with-readline --with-ssl --with-plugins=max --with-embedded-server --with-libevent --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-zlib-dir=bundled --enable-local-infile
      make -j 6
      make install

      And the aclocal and mysql directory are ending up in my datadir, even though they should be in my share directory (/Users/Nathan/Server/software/share).

      At least mysql_install_db is looking for it there. Everything else seems to look for it in my data directory.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            lukescott Luke Scott added a comment -

            Re: errmsg.sys in the wrong place
            I figured out what's wrong... The data directory is configured with -localstatedir not --datadir... which is confusing because I think "datadir" in my.cnf and "-datadir" everywhere else (other than ./configure) refers to the database directory. This goes all the way back to MySQL, so this is likely bogus.

            Show
            lukescott Luke Scott added a comment - Re: errmsg.sys in the wrong place I figured out what's wrong... The data directory is configured with - localstatedir not --datadir... which is confusing because I think "datadir" in my.cnf and " -datadir" everywhere else (other than ./configure) refers to the database directory. This goes all the way back to MySQL, so this is likely bogus.
            Hide
            monty Michael Widenius added a comment -

            Re: errmsg.sys in the wrong place
            In configure, the standard meaning of --datadir is:
            --datadir=DIR read-only architecture-independent data [DATAROOTDIR]

            Which doesn't match MySQL's definition of datadir (data for databases)
            That's why we always used --localstatedir for where databases are.

            On the other hand, using 'mysqld --localstatedir=directory-for-your-data' would also be very strange...

            Show
            monty Michael Widenius added a comment - Re: errmsg.sys in the wrong place In configure, the standard meaning of --datadir is: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] Which doesn't match MySQL's definition of datadir (data for databases) That's why we always used --localstatedir for where databases are. On the other hand, using 'mysqld --localstatedir=directory-for-your-data' would also be very strange...
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 888780

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 888780

              People

              • Assignee:
                Unassigned
                Reporter:
                lukescott Luke Scott
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: