Termux-packages: MariaDB server not starting after update to 10.4.8

Created on 22 Sep 2019  路  21Comments  路  Source: termux/termux-packages

The mariadb server is not starting after update to mariadb Ver 15.1 Distrib 10.4.8-MariaDB
I tried to reinstall my termux app but the problem is still same
Scrshot:
Screenshot_20190922-132239_Termux
Every command like mysql_install_db mysqld_safe etc not working

bug report

All 21 comments

I believe this issue was reported before, check the closed issues and trying the solution that matches your problem.

65384135-229cfa00-dd3c-11e9-8bb1-eb1eba89d0d8

Perhaps your database corrupted ?

I can't reproduce the issue.
Screenshot_20190922-140711_Termux

65384135-229cfa00-dd3c-11e9-8bb1-eb1eba89d0d8

Perhaps your database corrupted ?

I can't reproduce the issue.
Screenshot_20190922-140711_Termux

I freshly installed it so how it get corrupted?
And how to fix if the data is corrupted?

I freshly installed it so how it get corrupted?

Either something gone wrong during installation (database is initialized when installing package) or something device-specific.

Try to do a fresh installation and post here console log. Additionally post your termux-info here.

Error during installation

s

$ termux-info
Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 3.4.113-lineageos-ga54b3e28ce4 #1 SMP PREEMPT Thu Aug 22 11:56:47 JST 2019 armv7l Android
Termux-packages arch:
arm
Android version:
9
Device manufacturer:
samsung
Device model:
GT-I9506

65398745-95f34a00-ddd6-11e9-89ec-66f7ab3d9392

So that's the cause and issue is device-specific.
Could you post output of cat /proc/cpuinfo ?

Screenshot_20190923-125903_Termux

I have this exact same problem. Device:
Oneplus 3 with latest official OxygenOS (Android 9 Pie), rooted, latest Termux.

Same here. It's seem there are corrupted files or the Inno engine doesn't work correctly.

Edit:
It's my fresh install mariadb. No leftovers from previous install.

Edit 2:

$ termux-info
Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-21 science/stable
https://dl.bintray.com/grimler/game-packages-21 games/stable
http://termux.net stable/main
http://termux.net stable/main
System information:
Linux localhost 3.18.24-perf-ga8e3b8c0a #1 SMP PREEMPT Sat Jan 5 21:22:32 CST 2019 armv7l Android
Termux-packages arch:
arm
Android version:
6.0.1
Device manufacturer:
vivo
Device model:
vivo 1606

Edit 3:

$ mysql_install_db -v
Installing MariaDB/MySQL system tables in '/data/data/com.termux/files/usr/var/lib/mysql' ...
2019-09-24 17:56:38 0 [ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffer.
2019-09-24 17:56:38 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
2019-09-24 17:56:38 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-09-24 17:56:38 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-09-24 17:56:38 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2019-09-24 17:56:38 0 [ERROR] Aborting
cat: write error: Broken pipe

Same here.
Samsung Note10+
Android 9
Fresh installation of Termux
Fresh installation of MariaDb

Initializing mysql data directory...
Installing MariaDB/MySQL system tables in '/data/data/com.termux/files/usr/var/lib/mysql' ...
Illegal instruction

After downgrade from 10.4.8 to 10.4.6, the problem is still same

Screenshot_20190925-130822_Termux

Screenshot_20190925-130530_Termux

With the downgrade it was fixed.
@Shubhamvis98 it's not enough to reinstall/update. You have to manually delete the folder with the DB data:

rm $PREFIX/var/lib/mysql/*

Then reinstall and run mysql_install_db, then start mysqld_safe service.

With the downgrade it was fixed.
@Shubhamvis98 it's not enough to reinstall/update. You have to manually delete the folder with the DB data:

rm $PREFIX/var/lib/mysql/*

Then reinstall and run mysql_install_db, then start mysqld_safe service.

Solved

How do I do to downgrade the version?

It's a downgrade masked as an update. Just do the usual "pkg up" and it will downgrade it

v10.4.6 is not available currently for devices using termux.net repository. Maybe to the end of week.

I don't like waiting until the end of week. I want it now.

Wait until @fornwall will rebuild it.
Btw, all changes on android-5 branch won't be immediate. Do not expect things to "happen now", especially when legacy Android versions are no longer our priority.

Wow man you get to have all this fantastic stuff for free, FREE! And still you complain because you won't get something very specific fixed in less than 3 days, while in an industry level products you could have to wait weeks. Come on :-)

I thought there is a way to get the older version via .deb file package or something. Because, noone disallow you to ask.

Maybe you just said it the wrong way, then. Don't worry it can happen!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zejji picture zejji  路  4Comments

ILadis picture ILadis  路  3Comments

jackbrycesmith picture jackbrycesmith  路  3Comments

neitsab picture neitsab  路  3Comments

divyakutty picture divyakutty  路  3Comments