I'm compiling MariaDB from source, and trying to test the DB following the instructions, and I keep getting errors about mySQL (which I thought packages were installed along side MariaDB)

    Failed to start mysqld.1
mysqltest failed but provided no output

 - saving '/usr/local/mysql/mysql-test/var/log/rocksdb.show_table_status/' to '/usr/local/mysql/mysql-test/var/log/rocksdb.show_table_status/'

Only  1090  of 6752 completed.
The servers were restarted 25 times
Spent 531.822 of 608 seconds executing testcases

Failure: Failed 1/87 tests, 98.85% were successful.

Failing test(s): rocksdb.show_table_status

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html

747 tests were skipped, 14 by the test itself.

mysql-test-run: *** ERROR: there were failing test cases

I'm trying to compile the process using Jenkins and Bash with make

Compiling it seems to be fine, I just don't have any ideas about connecting to the database.

I had ran these instructions provided by MariaDB before getting the error above:

/usr/local/mysql$ sudo ./scripts/mysql_install_db --user=mysql

Installing MariaDB/MySQL system tables in './data' ...

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

To do so, start the server, then issue the following commands:

'./bin/mysqladmin' -u root password 'new-password'
'./bin/mysqladmin' -u root -h SCPZ0160 password 'new-password'

Alternatively you can run:

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '.' ; ./bin/mysqld_safe --datadir='./data'

You can test the MariaDB daemon with mysql-test-run.pl
cd './mysql-test' ; perl mysql-test-run.pl

The reason for asking the question is because when I go to execute a mySQL command, I got an error:

  /usr/local/mysql/mysql-test/var$ mysql --help
-bash: mysql: command not found
  • MariaDB is a fork of mysql, having both on the same machine is likely to create problems. You didn't give any clue of what you did before, so helping is not really possible... – Tensibai Apr 12 '18 at 10:06
  • Thanks - I currently don't have any MySQL standalone versions installed. I've updated the thread. – dburke1 Apr 12 '18 at 10:22
  • I had the impression mariadb had renamed the package, seems I'm wrong. So what you're seeing is just mariadb error on 1 test. For your last error, I bet /usr/local/mysql/bin is not in your path and as such bash don't find the mysql client program when you're in inside a database directory. – Tensibai Apr 12 '18 at 11:20
  • I am interested in learning reasons for compiling from source. These days I would encourage running services likes this in a container environment. Most of these systems are containerised to make it easy to use in most use cases. – Azizur Rahman Apr 12 '18 at 18:20
  • @AzizurRahman I absolutely agree! Although for a specific task we need to compile from source and package them as Red Hat packages.. – dburke1 Apr 13 '18 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.