The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
I recently migrated the forum from Access to MySQL. It all works perfectly execept for the search function that always return this error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][ODBC 3.51 Driver][mysqld-5.0.92-enterprise-gpl-log]Query execution was interrupted
/forum/search.asp, line 337
where the line is:
set rsCount = my_Conn.Execute(strSql1 & strSql2 & strSql3)
The SQL Query generated is:
SELECT COUNT(DISTINCT T.TOPIC_ID) AS PAGECOUNT FROM ((((FORUM_FORUM F LEFT JOIN FORUM_TOPICS T ON F.FORUM_ID = T.FORUM_ID) LEFT JOIN FORUM_REPLY R ON T.TOPIC_ID = R.TOPIC_ID) LEFT JOIN FORUM_MEMBERS M ON T.T_AUTHOR = M.MEMBER_ID) LEFT JOIN FORUM_CATEGORY C ON T.CAT_ID = C.CAT_ID) LEFT JOIN FORUM_MEMBERS MEMBERS_1 ON T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID WHERE ((R.R_MESSAGE LIKE '%gibert%' OR T.T_SUBJECT LIKE '%gibert%' OR T.T_MESSAGE LIKE '%gibert%')) AND F.F_TYPE = 0
and running exactly the same query on phpMyAdmin directly on the server, it works like expected.
I have tried different queries with the same result.
I have also tried to extend the connection timeout from the connection string, but without results:
'strDBType = "sqlserver"
'strDBType = "access"
strDBType = "mysql"
'## Make sure to uncomment one of the strConnString lines and edit it so that it points to where your database is!
strConnString = "Driver={MySQL ODBC 3.51 Driver}; Server=xx.xx.xx.xx; uid=user; pwd=pwd; database=myDB; option=16387; port=3306; default command timeout=800; connection timeout=800;"
Is there anyone that can help me?
Thank you!
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][ODBC 3.51 Driver][mysqld-5.0.92-enterprise-gpl-log]Query execution was interrupted
/forum/search.asp, line 337
where the line is:
set rsCount = my_Conn.Execute(strSql1 & strSql2 & strSql3)
The SQL Query generated is:
SELECT COUNT(DISTINCT T.TOPIC_ID) AS PAGECOUNT FROM ((((FORUM_FORUM F LEFT JOIN FORUM_TOPICS T ON F.FORUM_ID = T.FORUM_ID) LEFT JOIN FORUM_REPLY R ON T.TOPIC_ID = R.TOPIC_ID) LEFT JOIN FORUM_MEMBERS M ON T.T_AUTHOR = M.MEMBER_ID) LEFT JOIN FORUM_CATEGORY C ON T.CAT_ID = C.CAT_ID) LEFT JOIN FORUM_MEMBERS MEMBERS_1 ON T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID WHERE ((R.R_MESSAGE LIKE '%gibert%' OR T.T_SUBJECT LIKE '%gibert%' OR T.T_MESSAGE LIKE '%gibert%')) AND F.F_TYPE = 0
and running exactly the same query on phpMyAdmin directly on the server, it works like expected.
I have tried different queries with the same result.
I have also tried to extend the connection timeout from the connection string, but without results:
'strDBType = "sqlserver"
'strDBType = "access"
strDBType = "mysql"
'## Make sure to uncomment one of the strConnString lines and edit it so that it points to where your database is!
strConnString = "Driver={MySQL ODBC 3.51 Driver}; Server=xx.xx.xx.xx; uid=user; pwd=pwd; database=myDB; option=16387; port=3306; default command timeout=800; connection timeout=800;"
Is there anyone that can help me?
Thank you!