Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2020-05-16 10:34:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Can't connect to DigitalOcean managed databases

If that works – and I suspect it will – I can patch this today so you can specify the storage engine in config.php.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 2020-05-16 13:09:29

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 106
Website

Re: Can't connect to DigitalOcean managed databases

What happens if you replace the two occurrences of MyISAM to InnoDB /textpattern/lib/txplib_db.php and re-run the setup?

It works terrifically and sets up exactly as one expects.

Thank you.

Offline

#15 2020-05-16 14:35:18

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Can't connect to DigitalOcean managed databases

amordecosmos wrote #323010:

It works terrifically and sets up exactly as one expects.

Great! Thanks for being a guinea pig.

Offline

#16 2020-05-16 14:49:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Can't connect to DigitalOcean managed databases

Brilliant, thank you for testing. Patched for the imminent 4.8.1. When you download/copy ‘n’ paste your config.php file, add:

$txpcfg['dbengine'] = 'InnoDB';

to override the default MyISAM table type.

EDIT: Longer term, would it make sense to add this to the db collection step during setup? A dropdown of supported engines? I’ve no idea what the other types are for, nor if they’d even work with Txp. But perhaps we could offer a choice between MyISAM (default) and InnoDB at the very least.

Last edited by Bloke (2020-05-16 14:56:20)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#17 2020-05-16 14:55:56

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Can't connect to DigitalOcean managed databases

…and here are some basic examples in docs.

Offline

#18 2023-01-19 16:36:25

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Can't connect to DigitalOcean managed databases

Bloke wrote #323012:

Longer term, would it make sense to add this to the db collection step during setup? A dropdown of supported engines?

Yes, please. Opened github.com/textpattern/textpattern/issues/1859 to track viability.

Offline

Board footer

Powered by FluxBB