Wind River Support Network

HomeDefectsLINCD-7160
Fixed

LINCD-7160 : mariadb: /usr/bin/mysql_install_db: line 525: 558442 Aborted (core dumped)

Created: Oct 27, 2021    Updated: Jan 3, 2022
Resolved Date: Nov 30, 2021
Found In Version: 10.21.45.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

1, setup.sh -machine intel-x86-64 --dl-layers --templates feature/mariadb
2, bitbake wrlinux-image-std
3, boot the target
root@intel-x86-64:~# ls /var/lib/mysql/
ls: cannot access '/var/lib/mysql/': No such file or directory
root@intel-x86-64:~# ps aux|grep mysql
root        1506  0.0  0.0   3352  1620 ttyS0    S+   02:01   0:00 grep mysql
root@intel-x86-64:~# mysql_install_db --basedir=/usr
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
/usr/bin/mysql_install_db: line 525:  1693 Aborted                 "$mysqld_bootstrap" $defaults $defaults_group_suffix "$mysqld_opt" --bootstrap $silenK
 
Installation of system tables failed!  Examine the logs in
/var/log/mysqld.log or /var/lib/mysql for more information.
 
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
 
    shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
 
You can also try to start the mysqld daemon with:
 
    shell> /usr/sbin/mariadbd --skip-grant-tables --general-log &
 
and use the command line tool /usr/bin/mariadb
to connect to the mysql database and look at the grant tables:
 
    shell> /usr/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 /var/lib/mysql 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
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
 
Please check all of the above before submitting a bug report
at https://mariadb.org/jira
 
root@intel-x86-64:~# 

Steps to Reproduce

1)

setup.sh -machine intel-x86-64 --dl-layers  -layers meta-filesystems
2). ./environment-setup-x86_64-wrlinuxsdk-linux
  
 3) . ./oe-init-build-env build_test
  
 4)   add to local.conf
 IMAGE_INSTALL:append = "  mariadb"
  
 5) bitbake wrlinux-image-glibc-std

6)boot the target and run commands per problem description
Live chat
Online