[SOLVED] New v1.8.1 rejecting .emb database password

MMEX4Desktop, incl. Windows, macOS, and Most Unix variants using the GTK+ toolkit

Moderator: Renato

yopiglop
New User
Posts: 1
Joined: Sat Nov 30, 2024 6:43 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by yopiglop »

Same as hxigor here
User avatar
Renato
MVP User
Posts: 881
Joined: Mon Apr 25, 2011 7:36 pm
Are you a spam bot?: No
Location: near Zurich

Re: New v1.8.1 rejecting .emb database password

Post by Renato »

I would suggest that users revert to version 1.8 or not use encryption until the bug is fixed.
Renato Forum Administrator (I'm not a developer)
guangong
Developer
Posts: 658
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by guangong »

Thanks @hxigor and also the guy from the Github, we know it is page_size that triggers the issue now.

for some very old databases (e.g. before 2014), the page_size is 1024, while newer ones are 4096.

you can run PRAGMA page_size in wxSQLitePlus or any SQLite clients to tell the result.
  • 4096, it will be fine to re-encryption
  • 1024, you might have to update page size to 4096 via next reply
391296795-ff5eaba1-5a2a-4956-8c4b-3cc9c7937e70.png
391296795-ff5eaba1-5a2a-4956-8c4b-3cc9c7937e70.png (97.3 KiB) Viewed 10834 times
guangong
Developer
Posts: 658
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by guangong »

here is the instruction to update the legacy page size (1024) to the default page size (4096).

run the following code to update page size in place

Code: Select all

PRAGMA page_size = 4096;
VACUUM;
391297483-133c6503-74f5-4c1b-b9a9-c64899198041.png
391297483-133c6503-74f5-4c1b-b9a9-c64899198041.png (108.71 KiB) Viewed 10698 times
hxigor
New User
Posts: 5
Joined: Mon Apr 12, 2021 7:35 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by hxigor »

@guanlisheng
Thanks for the analysis and fix, changing the page size to 4096 worked!
Giapo
New User
Posts: 3
Joined: Thu Feb 02, 2023 6:16 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by Giapo »

Could you explain in detail the steps to take?
Thank you
User avatar
Renato
MVP User
Posts: 881
Joined: Mon Apr 25, 2011 7:36 pm
Are you a spam bot?: No
Location: near Zurich

Re: New v1.8.1 rejecting .emb database password

Post by Renato »

Renato Forum Administrator (I'm not a developer)

Who is online

Users browsing this forum: Claude [Bot] and 0 guests