NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Install MySQL on cRIO-9057 unsuccesful

Have you checked your system logs after boot to see if there is a message regarding the failed launch?

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 11 of 15
(1,004 Views)

HI

Here is my boot log:

 

Fri Feb 5 08:19:14 2021: Starting MySQL.210205 08:19:15 mysqld_safe Logging to '/var/log/mysqld.err'.

Fri Feb 5 08:19:15 2021: 210205 08:19:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

Fri Feb 5 08:19:15 2021: \007/usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13)

Fri Feb 5 08:19:15 2021: ERROR!

 

if i strat manually i have the same error:

admin@NI-cRIO-9031-01E09323:/var/log# /etc/init.d/mysqld start
Starting MySQL.210205 08:31:30 mysqld_safe Logging to '/var/log/mysqld.err'.
210205 08:31:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13)
ERROR!

 

if i remove the user mysql from NI crio Web config page i am able to start it manualy:

admin@NI-cRIO-9031-01E09323:/var/log# /etc/init.d/mysqld start
Starting MySQL.210205 08:33:28 mysqld_safe Logging to '/var/log/mysqld.err'.
210205 08:33:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13)
SUCCESS!

0 Kudos
Message 12 of 15
(996 Views)

i found the problem which was in the /etc/my.cnf file

 i had to modify mysql.err file name to mysql.log

0 Kudos
Message 13 of 15
(989 Views)

Something is going on here. I have tried to setup a new development system and can't get MySQL to start.

 

I followed the same setup as I have on several systems but now I am getting an error

 

/usr/bin/mysqld_safe: line 152:  mysqld_safe_helper: command not found.

 

I have found some random posts from 2017 stating that the mysqld_safe_helper was not included in the mariadb.inc file.

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 14 of 15
(982 Views)

Ok, I figured out that I has inadvertently installed the 2018 distribution and not the 2017 which I previously used successfully. Once I formatted the disk and installed the 2017 (LabVIEW Real-Time 17.0.0).

 

Just for reference, at present 17.0.2 with 18.5 does NOT have a good mysql5 package. I can 

 

 

I was able to get mysql to install as follows:

 

admin@NI-cRIO-9030-01E017D7:~# opkg update
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/all/Packages.gz.
Updated source 'uri-all-0'.
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/Packages.gz.
Updated source 'uri-core2-64-0'.
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/x64/Packages.gz.
Updated source 'uri-x64-0'.
admin@NI-cRIO-9030-01E017D7:~# opkg install mysql5
Installing libaio1 (0.3.110) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/libaio1_0.3.110-r0.49_core2-64.ipk.
Installing libperl5 (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/libperl5_5.22.1-r0.123_core2-64.ipk.
Installing coreutils-chcon (8.25) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/coreutils-chcon_8.25-r0.129_core2-64.ipk.
Installing libgmp10 (6.1.0) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/libgmp10_6.1.0-r0.120_core2-64.ipk.
Installing coreutils-ls (8.25) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/coreutils-ls_8.25-r0.129_core2-64.ipk.
Installing perl (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl_5.22.1-r0.123_core2-64.ipk.
Installing coreutils (8.25) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/coreutils_8.25-r0.129_core2-64.ipk.
Installing perl-module-overload-numbers (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-overload-numbers_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-parent (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-parent_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-carp (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-carp_5.22.1-r0.123_core2-64.ipk.
Installing mariadb-setupdb (5.5.50) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/mariadb-setupdb_5.5.50-r0.6_core2-64.ipk.
Removing any system startup links for install_db ...
Installing perl-module-overloading (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-overloading_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-exporter (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-exporter_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-feature (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-feature_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-term-cap (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-term-cap_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-dynaloader (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-dynaloader_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-tie-hash (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-tie-hash_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-constant (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-constant_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-exporter-heavy (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-exporter-heavy_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-xsloader (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-xsloader_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-text-parsewords (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-text-parsewords_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-errno (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-errno_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-symbol (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-symbol_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-io (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-io_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-b (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-b_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-mro (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-mro_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-list-util (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-list-util_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-re (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-re_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-fcntl (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-fcntl_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-selectsaver (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-selectsaver_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-scalar-util (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-scalar-util_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-basename (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-basename_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-posix (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-posix_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-io-handle (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-io-handle_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-overload (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-overload_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-spec (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-spec_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-sys-hostname (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-sys-hostname_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-io-seekable (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-io-seekable_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-data-dumper (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-data-dumper_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-cwd (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-cwd_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-io-file (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-io-file_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-b-deparse (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-b-deparse_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-spec-unix (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-spec-unix_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-io-pipe (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-io-pipe_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-pod-usage (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-pod-usage_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-copy (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-copy_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-path (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-path_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-ipc-open3 (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-ipc-open3_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-getopt-long (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-getopt-long_5.22.1-r0.123_core2-64.ipk.
Installing perl-module-file-temp (5.22.1) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/perl-module-file-temp_5.22.1-r0.123_core2-64.ipk.
Installing mariadb-client (5.5.50) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/mariadb-client_5.5.50-r0.6_core2-64.ipk.
Installing mariadb-server (5.5.50) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/mariadb-server_5.5.50-r0.6_core2-64.ipk.
Removing any system startup links for mysqld ...
Running groupadd commands...
NOTE: mariadb: Performing groupadd with [ --gid 399 --system mysql]
Running useradd commands...
NOTE: mariadb: Performing useradd with [ --home-dir /var/mysql --gid mysql --system --shell /bin/false --uid 399 mysql]
Installing mariadb (5.5.50) on root
Downloading http://download.ni.com/ni-linux-rt/feeds/2017/x64/ipk/core2-64/mariadb_5.5.50-r0.6_core2-64.ipk.
Configuring libaio1.
Configuring libperl5.
Configuring perl.
Configuring perl-module-exporter-heavy.
Configuring perl-module-exporter.
Configuring perl-module-carp.
Configuring perl-module-tie-hash.
Configuring perl-module-dynaloader.
Configuring perl-module-xsloader.
Configuring perl-module-list-util.
Configuring perl-module-scalar-util.
Configuring perl-module-constant.
Configuring perl-module-cwd.
Configuring perl-module-file-spec-unix.
Configuring perl-module-file-spec.
Configuring util-linux-hwclock.
update-alternatives: Linking /sbin/hwclock to /sbin/hwclock.util-linux
Configuring perl-module-term-cap.
Configuring perl-module-re.
Configuring perl-module-file-basename.
Configuring perl-module-feature.
Configuring perl-module-fcntl.
Configuring perl-module-posix.
Configuring perl-module-sys-hostname.
Configuring perl-module-symbol.
Configuring perl-module-selectsaver.
Configuring perl-module-io-file.
Configuring perl-module-io.
Configuring perl-module-io-handle.
Configuring perl-module-io-seekable.
Configuring perl-module-errno.
Configuring perl-module-file-path.
Configuring perl-module-mro.
Configuring perl-module-overload.
Configuring perl-module-parent.
Configuring perl-module-file-temp.
Configuring perl-module-io-pipe.
Configuring perl-module-ipc-open3.
Configuring perl-module-text-parsewords.
Configuring perl-module-pod-usage.
Configuring perl-module-getopt-long.
Configuring mariadb-client.
Configuring perl-module-b.
Configuring libgmp10.
Configuring coreutils-chcon.
update-alternatives: Linking /usr/bin/chcon to chcon.coreutils
Configuring coreutils-ls.
update-alternatives: Linking /bin/ls to ls.coreutils
Configuring coreutils.
update-alternatives: Linking /usr/bin/[ to /usr/bin/lbracket.coreutils
update-alternatives: Linking /usr/bin/basename to /usr/bin/basename.coreutils
update-alternatives: Linking /usr/bin/chcon to /usr/bin/chcon.coreutils
update-alternatives: Linking /usr/bin/cksum to /usr/bin/cksum.coreutils
update-alternatives: Linking /usr/bin/comm to /usr/bin/comm.coreutils
update-alternatives: Linking /usr/bin/csplit to /usr/bin/csplit.coreutils
update-alternatives: Linking /usr/bin/cut to /usr/bin/cut.coreutils
update-alternatives: Linking /usr/bin/dir to /usr/bin/dir.coreutils
update-alternatives: Linking /usr/bin/dircolors to /usr/bin/dircolors.coreutils
update-alternatives: Linking /usr/bin/dirname to /usr/bin/dirname.coreutils
update-alternatives: Linking /usr/bin/du to /usr/bin/du.coreutils
update-alternatives: Linking /usr/bin/env to /usr/bin/env.coreutils
update-alternatives: Linking /usr/bin/expand to /usr/bin/expand.coreutils
update-alternatives: Linking /usr/bin/expr to /usr/bin/expr.coreutils
update-alternatives: Linking /usr/bin/factor to /usr/bin/factor.coreutils
update-alternatives: Linking /usr/bin/fmt to /usr/bin/fmt.coreutils
update-alternatives: Linking /usr/bin/fold to /usr/bin/fold.coreutils
update-alternatives: Linking /usr/bin/groups to /usr/bin/groups.shadow
update-alternatives: Linking /usr/bin/head to /usr/bin/head.coreutils
update-alternatives: Linking /usr/bin/hostid to /usr/bin/hostid.coreutils
update-alternatives: Linking /usr/bin/id to /usr/bin/id.coreutils
update-alternatives: Linking /usr/bin/install to /usr/bin/install.coreutils
update-alternatives: Linking /usr/bin/join to /usr/bin/join.coreutils
update-alternatives: Linking /usr/bin/link to /usr/bin/link.coreutils
update-alternatives: Linking /usr/bin/logname to /usr/bin/logname.coreutils
update-alternatives: Linking /usr/bin/md5sum to /usr/bin/md5sum.coreutils
update-alternatives: Linking /usr/bin/mkfifo to /usr/bin/mkfifo.coreutils
update-alternatives: Linking /usr/bin/nice to /usr/bin/nice.coreutils
update-alternatives: Linking /usr/bin/nl to /usr/bin/nl.coreutils
update-alternatives: Linking /usr/bin/nohup to /usr/bin/nohup.coreutils
update-alternatives: Linking /usr/bin/nproc to /usr/bin/nproc.coreutils
update-alternatives: Linking /usr/bin/od to /usr/bin/od.coreutils
update-alternatives: Linking /usr/bin/paste to /usr/bin/paste.coreutils
update-alternatives: Linking /usr/bin/pathchk to /usr/bin/pathchk.coreutils
update-alternatives: Linking /usr/bin/pinky to /usr/bin/pinky.coreutils
update-alternatives: Linking /usr/bin/pr to /usr/bin/pr.coreutils
update-alternatives: Linking /usr/bin/printenv to /usr/bin/printenv.coreutils
update-alternatives: Linking /usr/bin/printf to /usr/bin/printf.coreutils
update-alternatives: Linking /usr/bin/ptx to /usr/bin/ptx.coreutils
update-alternatives: Linking /usr/bin/readlink to /usr/bin/readlink.coreutils
update-alternatives: Linking /usr/bin/realpath to /usr/bin/realpath.coreutils
update-alternatives: Linking /usr/bin/runcon to /usr/bin/runcon.coreutils
update-alternatives: Linking /usr/bin/seq to /usr/bin/seq.coreutils
update-alternatives: Linking /usr/bin/sha1sum to /usr/bin/sha1sum.coreutils
update-alternatives: Linking /usr/bin/sha224sum to /usr/bin/sha224sum.coreutils
update-alternatives: Linking /usr/bin/sha256sum to /usr/bin/sha256sum.coreutils
update-alternatives: Linking /usr/bin/sha384sum to /usr/bin/sha384sum.coreutils
update-alternatives: Linking /usr/bin/sha512sum to /usr/bin/sha512sum.coreutils
update-alternatives: Linking /usr/bin/shred to /usr/bin/shred.coreutils
update-alternatives: Linking /usr/bin/shuf to /usr/bin/shuf.coreutils
update-alternatives: Linking /usr/bin/sort to /usr/bin/sort.coreutils
update-alternatives: Linking /usr/bin/split to /usr/bin/split.coreutils
update-alternatives: Linking /usr/bin/stdbuf to /usr/bin/stdbuf.coreutils
update-alternatives: Linking /usr/bin/sum to /usr/bin/sum.coreutils
update-alternatives: Linking /usr/bin/tac to /usr/bin/tac.coreutils
update-alternatives: Linking /usr/bin/tail to /usr/bin/tail.coreutils
update-alternatives: Linking /usr/bin/tee to /usr/bin/tee.coreutils
update-alternatives: Linking /usr/bin/test to /usr/bin/test.coreutils
update-alternatives: Linking /usr/bin/timeout to /usr/bin/timeout.coreutils
update-alternatives: Linking /usr/bin/tr to /usr/bin/tr.coreutils
update-alternatives: Linking /usr/bin/truncate to /usr/bin/truncate.coreutils
update-alternatives: Linking /usr/bin/tsort to /usr/bin/tsort.coreutils
update-alternatives: Linking /usr/bin/tty to /usr/bin/tty.coreutils
update-alternatives: Linking /usr/bin/unexpand to /usr/bin/unexpand.coreutils
update-alternatives: Linking /usr/bin/uniq to /usr/bin/uniq.coreutils
update-alternatives: Linking /usr/bin/unlink to /usr/bin/unlink.coreutils
update-alternatives: Linking /usr/bin/uptime to /usr/bin/uptime.coreutils
update-alternatives: Linking /usr/bin/users to /usr/bin/users.coreutils
update-alternatives: Linking /usr/bin/vdir to /usr/bin/vdir.coreutils
update-alternatives: Linking /usr/bin/wc to /usr/bin/wc.coreutils
update-alternatives: Linking /usr/bin/who to /usr/bin/who.coreutils
update-alternatives: Linking /usr/bin/whoami to /usr/bin/whoami.coreutils
update-alternatives: Linking /usr/bin/yes to /usr/bin/yes.coreutils
update-alternatives: Linking /bin/cat to /bin/cat.coreutils
update-alternatives: Linking /bin/chgrp to /bin/chgrp.coreutils
update-alternatives: Linking /bin/chmod to /bin/chmod.coreutils
update-alternatives: Linking /bin/chown to /bin/chown.coreutils
update-alternatives: Linking /bin/cp to /bin/cp.coreutils
update-alternatives: Linking /bin/date to /bin/date.coreutils
update-alternatives: Linking /bin/dd to /bin/dd.coreutils
update-alternatives: Linking /bin/echo to /bin/echo.coreutils
update-alternatives: Linking /bin/false to /bin/false.coreutils
update-alternatives: Linking /bin/kill to /bin/kill.coreutils
update-alternatives: Linking /bin/ln to /bin/ln.coreutils
update-alternatives: Linking /bin/ls to /bin/ls.coreutils
update-alternatives: Linking /bin/mkdir to /bin/mkdir.coreutils
update-alternatives: Linking /bin/mknod to /bin/mknod.coreutils
update-alternatives: Linking /bin/mv to /bin/mv.coreutils
update-alternatives: Linking /bin/pwd to /bin/pwd.coreutils
update-alternatives: Linking /bin/rm to /bin/rm.coreutils
update-alternatives: Linking /bin/rmdir to /bin/rmdir.coreutils
update-alternatives: Linking /bin/sleep to /bin/sleep.coreutils
update-alternatives: Linking /bin/stty to /bin/stty.coreutils
update-alternatives: Linking /bin/sync to /bin/sync.coreutils
update-alternatives: Linking /bin/touch to /bin/touch.coreutils
update-alternatives: Linking /bin/true to /bin/true.coreutils
update-alternatives: Linking /bin/uname to /bin/uname.coreutils
update-alternatives: Linking /bin/stat to /bin/stat.coreutils
update-alternatives: Linking /usr/sbin/chroot to /usr/sbin/chroot.coreutils
update-alternatives: Linking /bin/base64 to /usr/bin/base64.coreutils
update-alternatives: Linking /bin/mktemp to /usr/bin/mktemp.coreutils
update-alternatives: Linking /bin/df to /usr/bin/df.coreutils
Configuring perl-module-overload-numbers.
Configuring perl-module-overloading.
Configuring perl-module-b-deparse.
Configuring perl-module-data-dumper.
Configuring perl-module-file-copy.
Configuring mariadb-server.
Adding system startup for /etc/init.d/mysqld.
Starting MySQL. ERROR!
Configuring mariadb-setupdb.
Adding system startup for /etc/init.d/install_db.
Starting to install database for mariadb
210205 15:45:19 [Note] /usr/sbin/mysqld (mysqld 5.5.50-MariaDB) starting as process 7186 ...
210205 15:45:20 [Note] /usr/sbin/mysqld (mysqld 5.5.50-MariaDB) starting as process 7195 ...

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h NI-cRIO-9030-01E017D7 password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

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.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from MariaDB
Corporation Ab. You can contact us about this at sales@mariadb.com.
Alternatively consider joining our community based development effort:
http://mariadb.com/kb/en/contributing-to-the-mariadb-project/

done.
Configuring mariadb.
admin@NI-cRIO-9030-01E017D7:~# /etc/init.d/mysql start
-bash: /etc/init.d/mysql: No such file or directory
admin@NI-cRIO-9030-01E017D7:~# /etc/init.d/mysqld start
Starting MySQL. SUCCESS!

 

It looks like according to the following post the Yocto build in the 2017 time frame had a bad include of the mariaDB.

 

https://jira.mariadb.org/browse/MDEV-14044 

 

This was causing the mysqld_safe launch to fail because the mysqld_safe_helper wasn't included.

 

I will also add the following, which I think addresses the issue seen with the log/err file, I think you need to change the admin password from the empty default before installing mysql.

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 15 of 15
(973 Views)