Size: a a a

MadelineProto 🇷🇺

2021 October 12

DG

Daniil Gentili in MadelineProto 🇷🇺
Please see here for a list of replacement classes and usage instructions
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Ok thank you.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
How to convert this to new format?
$settings['ipc']['slow'] = true;
источник

DG

Daniil Gentili in MadelineProto 🇷🇺
That's not available anymore
источник

DG

Daniil Gentili in MadelineProto 🇷🇺
And you really should not be using that setting, it slows everything down and disables parallelism
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Okay.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
I ported settings and fixed MySQL server.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
And finally at about 9% position from the top we can see:

Tools, sochi_klu8biznes:           Amp\Sql\QueryError: MySQL error (1071): #42000 Specified key was too long; max key length is 767 bytes
Current query was
           CREATE TABLE IF NOT EXISTS `1070990310_MinDatabase_db`
           (
               `key` VARCHAR(255) NOT NULL,
               `value` MEDIUMBLOB NULL,
               `ts` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
               PRIMARY KEY (`key`)
           )
           ENGINE = InnoDB
           CHARACTER SET 'utf8mb4'
           COLLATE 'utf8mb4_general_ci'
        in /var/www/thesystem/vendor/amphp/mysql/src/Internal/Processor.php:708
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Generally it can't create MySQL database, it's strange.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
I temporary disabled MySQL but it would be great if I can use it again.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Also installed php 8.0 and updated all components from composer using dev-master.
источник

DG

Daniil Gentili in MadelineProto 🇷🇺
You should update to mysql 5.7+
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Hm okay thanks.
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
I use:
mysql  Ver 15.1 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
источник
2021 October 13

AP

Alexander Pankratov in MadelineProto 🇷🇺
You need MySQL newer than the 5.7.7 release or MariaDB newer than the 10.2.2 release
источник

AP

Alexander Pankratov in MadelineProto 🇷🇺
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
Aha ok thanks.
источник

AP

Alexander Pankratov in MadelineProto 🇷🇺
Or simply decrease key length to 190 and create tables manually like this:

CREATE TABLE IF NOT EXISTS `1070990310_MinDatabase_db`
           (
               `key` VARCHAR(
190) NOT NULL,
               `value` MEDIUMBLOB NULL,
               `ts` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
               PRIMARY KEY (`key`)
           )
           ENGINE = InnoDB
           CHARACTER SET 'utf8mb4'
           COLLATE 'utf8mb4_general_ci'
источник

AP

Alexander Pankratov in MadelineProto 🇷🇺
И вообще возможно имеет смысл сократить длину этого поля. Не помню, что бы у нас были там длинные ключи...
источник

AP

Andrey Parsadanian in MadelineProto 🇷🇺
👌🏻
источник