Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/mnogosearch: Fix with mysql-5.7 and above
Variable "storage_engine" is deprecated in mysql-server version 5.6. It is removed from mysql 5.7. New variable is "default_storage_engine". PR: ports/269365
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/sql-mysql.c.orig 2023-02-06 10:23:32.970179000 +0300 | ||
+++ src/sql-mysql.c 2023-02-06 10:24:17.488815000 +0300 | ||
@@ -206,7 +206,7 @@ | ||
{ | ||
int myrc; | ||
char qbuf[64]; | ||
- udm_snprintf(qbuf, sizeof(qbuf), "SET storage_engine=%s", | ||
+ udm_snprintf(qbuf, sizeof(qbuf), "SET default_storage_engine=%s", | ||
storage_engine[0] ? storage_engine : "MyISAM"); | ||
if ((myrc= mysql_query(&mydb->mysql, qbuf))) | ||
{ |