You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') die('Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION');
220
+
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') {
221
+
echo"Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
222
+
echo" sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
223
+
echo"to the mysqld-section in /etc/mysql/my.cnf and restart mysqld afterwards\n";
224
+
die();
225
+
}
221
226
222
227
//** Create the database
223
228
if(!$this->db->query('CREATE DATABASE IF NOT EXISTS ?? DEFAULT CHARACTER SET ?', $conf['mysql']['database'], $conf['mysql']['charset'])) {
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') die('Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION');
128
+
if ($check_sql_mode['@@sql_mode'] != '' && $check_sql_mode['@@sql_mode'] != 'NO_ENGINE_SUBSTITUTION') {
129
+
echo"Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION. Add\n\n";
130
+
echo" sql-mode=\"NO_ENGINE_SUBSTITUTION\"\n\n";
131
+
echo"to the mysqld-section in /etc/mysql/my.cnf and restart mysqld afterwards\n";
132
+
die();
133
+
}
129
134
130
135
//* Update $conf array with values from the server.ini that shall be preserved
131
136
$tmp = $inst->db->queryOneRecord("SELECT * FROM ?? WHERE server_id = ?", $conf["mysql"]["database"] . '.server', $conf['server_id']);
0 commit comments