db:
image: mysql:8
restart: always
volumes:
- ./tmp/db:/var/lib/mysql
environment:
MYSQL_DATABASE: api
MYSQL_ROOT_PASSWORD: root
PMA_HOST: mysql
PMA_PORT: 3306
ports:
- "8101:3306"
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
container_name: api_db
2024-10-12 20:54:23 2024-10-12T17:54:23.343646Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2024-10-12 20:54:23 2024-10-12T17:54:23.614568Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.2) starting as process 1
2024-10-12 20:54:23 2024-10-12T17:54:23.615889Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2024-10-12 20:54:23 2024-10-12T17:54:23.615909Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_unicode_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
2024-10-12 20:54:23 2024-10-12T17:54:23.624688Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-10-12 20:54:25 2024-10-12T17:54:25.611920Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-10-12 20:54:25 2024-10-12T17:54:25.659932Z 1 [ERROR] [MY-011087] [Server] Different lower_case_table_names settings for server ('0') and data dictionary ('2').
2024-10-12 20:54:25 2024-10-12T17:54:25.660203Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2024-10-12 20:54:25 2024-10-12T17:54:25.660249Z 0 [ERROR] [MY-010119] [Server] Aborting
2024-10-12 20:54:26 2024-10-12T17:54:26.473063Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.2) MySQL Community Server - GPL.
2024-10-12 20:54:26 2024-10-12T17:54:26.473113Z 0 [System] [MY-015016] [Server] MySQL Server - end.
2024-10-12 20:54:28 2024-10-12T17:54:28.033381Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2024-10-12 20:54:28 2024-10-12T17:54:28.247202Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.2) starting as process 1
2024-10-12 20:54:28 2024-10-12T17:54:28.248569Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2024-10-12 20:54:28 2024-10-12T17:54:28.248587Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_unicode_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
2024-10-12 20:54:28 2024-10-12T17:54:28.255416Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-10-12 20:54:29 2024-10-12T17:54:29.860541Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
for ($i = 1; $i <= 1500; $i++) {
file_put_contents('testTIME2.txt', $i."\n", FILE_APPEND);
sleep(1);
}
public function forwardSend()
{
ini_set ( 'max_execution_time', 0);
global $data, $user;
$this->app->sendMessage('Вы отправили рассылку');
$user->updateUser(['peremen' => 0]);
$users = $user->getAll();
foreach($users as $us)
{
$this->app->chatId = $us['user_id'];
$this->app->forwardMessage($data['message']['chat']['id'], $data['message']['message_id']);
sleep(1);
}
}
Too Many Requests: retry after 536 telegram
public function forwardMessage($fromChatId, $messageId) {
try {
$data = [
'chat_id' => $this->chatId,
'from_chat_id' => $fromChatId,
'message_id' => $messageId
];
$url = $this->apiUrl . 'forwardMessage';
$res = $this->sendRequest($url, $data);
if ($res['ok'] == 1) {
return $res;
} else {
throw new \Exception($res['description'] ?? 'Unknown error');
}
} catch (\Exception $e) {
$this->logError($e->getMessage());
return ['error' => $e->getMessage()];
}
}
Ранее видел эту ошибку, и также гуглил её, что естественно я думаю))
Пробовал менять lower_case_table_names через
на 0, 1, 2 - не помогло
Также выскакивала ошибка -
Хотя на серваке я не нашел "/var/lib/mysql/"....
Попробовал image: mysql/mysql-server:8.0 - такая же ошибка, и также нет конфигов
Из гугла нашел еще два решение -
1. Заюзать use gRPC FUSE for file sharing в docker, но в версии 4.34 я не нашел его (старую версию так вообще не могу скачать)
2. fsutil file setCaseSensitiveInfo "C:\Users\XXXXX\.laradock\data\mysql" - похожих папок я также не нашел
Пробовал, та же ошибка (также меня вместо /etc/mysql на /lib/mysql)