Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-784

cant start MariaDB in a junit

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • None
    • N/A
    • Other
    • None

    Description

      I am using java - tests stoped working suddenly and i dont know how to reset the state

      <dependency>
      <groupId>ch.vorburger.mariaDB4j</groupId>
      <artifactId>mariaDB4j</artifactId>
      <version>2.4.0</version>
      <scope>test</scope>
      </dependency>

      ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
      Caused by: ch.vorburger.exec.ManagedProcessException:
      Program [/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db, --datadir=/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075, --basedir=/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve] (in working directory /var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
      dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
      Referenced from: /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/my_print_defaults
      Reason: image not found
      Installing MariaDB/MySQL system tables in '/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075' ...
      dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
      Referenced from: /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysqld
      Reason: image not found
      /var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db: line 454: 2670 Abort trap: 6 "$mysqld_bootstrap" $defaults "$mysqld_opt" -bootstrap $silent_startup "basedir=$basedir" "-datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" $args --max_allowed_packet=8M --net_buffer_length=16K

      Installation of system tables failed! Examine the logs in
      /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075 for more information.

      The problem could be conflicting information in an external
      my.cnf files. You can ignore these by doing:

      shell> /var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db --defaults-file=~/.my.cnf

      You can also try to start the mysqld daemon with:

      shell> /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

      and use the command line tool /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql
      to connect to the mysql database and look at the grant tables:

      shell> /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql -u root mysql
      mysql> show tables;

      Try 'mysqld --help' if you have problems with paths. Using
      --general-log gives you a log in /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075 that may be helpful.

      The latest information about mysql_install_db is available at
      https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
      MariaDB is hosted on launchpad; You can find the latest source and
      email lists at http://launchpad.net/maria

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            ldremer Liat Dremer
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.