Skip to content

Commit 1357b71

Browse files
committed
Remove SET SESSION query_cache_type=1 in MySQL
It is not supported in MySQL 8 It returns {error,{1193,<<"HY000">>,<<"Unknown system variable 'query_cache_type'">>} but connection keeps working
1 parent ddfb01b commit 1357b71

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/rdbms/mongoose_rdbms_mysql.erl

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ connect(Options, QueryTimeout) ->
4444
case mysql:start_link([{query_timeout, QueryTimeout} | db_opts(Options)]) of
4545
{ok, Ref} ->
4646
mysql:query(Ref, <<"set names 'utf8mb4';">>),
47-
mysql:query(Ref, <<"SET SESSION query_cache_type=1;">>),
4847
{ok, Ref};
4948
Error ->
5049
Error

0 commit comments

Comments
 (0)