AIX Open Source

 View Only

 mariaDB 10.11.9 won't start

Scott Gruber's profile image
Scott Gruber posted Thu July 24, 2025 09:40 AM

I have installed from IBM's AIX Toolkit mariadb 10.11.9 and we rebooted the LPAR and now mariaDB won't start.

The command to start I use is : 

/opt/freeware/bin/mysqld_safe --datadir='/opt/freeware/var/lib/mysql' &

The error I get is :

exec(): 0509-036 Cannot load program mariadbd because of the following errors:

        0509-130 Symbol resolution failed for /opt/freeware/lib64/libserver.a[libserver.so] because:

        0509-136   Symbol _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC2Ev (number 106) is not exported from

                   dependent module /opt/freeware/lib/pthread/ppc64/libstdc++.a[libstdc++.so.6].

        0509-136   Symbol _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev (number 107) is not exported from

                   dependent module /opt/freeware/lib/pthread/ppc64/libstdc++.a[libstdc++.so.6].

        0509-192 Examine .loader section symbols with the

                 'dump -Tv' command.

The OS is AIX 7.3, I see the libstdc++.a used in mariaDB is for 7.2 --- perhaps this is the issue and if so, will mariaDB be developed to include 7.3 ?

# ls -al /opt/freeware/lib/pthread/ppc64/libstdc++.a

lrwxrwxrwx    1 root     system           60 May 05 12:25 /opt/freeware/lib/pthread/ppc64/libstdc++.a -> ../../gcc/powerpc-ibm-aix7.2.0.0/8/pthread/ppc64/libstdc++.a

Any and all help is appreciated.

Scott Gruber's profile image
Scott Gruber

I think I may of found the issue after nosing around the RPMs, looks like I have a down level libstdc++ rpm installed - should of seen it sooner - downloading the latest and will update the results

After much effort I was able to get it back. Since I make regular daily backups, what I did was :

  • Upgraded the latest 7.3 libstdc++ and libgcc
  • removed everything under : /opt/freeware/var/lib/mysql
  • ran : 

    mariadb-install-db --user=mysql --basedir=/opt/freeware --datadir=/opt/freeware/var/lib/mysql

  • started mariadb : /etc/rc.d/rc2.d/Smariadb start 
  • Brought in the DB : mysql -u root -p < mysql-mariaDB-all-databases.07232025-14.00.sql
  • grant all privileges on $DB.$TABLE to 'webuser'@'localhost';  ---> for all DB's

then I could connect to the different DB's we have