mysql question: it alwasy timeout

  • Автор темы Автор темы FINDME
  • Дата начала Дата начала

FINDME

Новичок
Регистрация
22.08.2018
Сообщения
10
Реакции
0
Баллы
1
hello, when I run a SQL to update MySQL database, it will take about 1 mins to finish.
and this SQL can work prefect in NAVICAT, but fail in ProjectMaker. It seems that the max time for run a SQL in ProjectMaker is 30s, or it will fail. how can I fix this bug?
 
Thats not a bug, you can set the timeout into your connection string.
Just set timeout to higher value.
I don't use mysql... in sql server the timeout setting is Connect Timeout=600
 
  • Спасибо
Реакции: FINDME
Yes, timeout can be set in connection string
 

Вложения

  • 5FE9EF15-D105-4099-AB83-F41CC3C22B8A.png
    5FE9EF15-D105-4099-AB83-F41CC3C22B8A.png
    4,3 KB · Просмотры: 131
find way to this issue
add defaultcommandtimeout=time to connection string
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)