Fixing mariadb-install-db.exe failure on Windows (Illegal mix of collations)

This commit is contained in:
Alexander Barkov 2024-05-25 10:08:09 +04:00
parent 283b9285c3
commit 18edb0959f
5 changed files with 9 additions and 1 deletions

View file

@ -22,7 +22,7 @@
-- mysql -u root -p mysql < file_name
set names 'utf8';
SET NAMES utf8mb3 COLLATE utf8mb3_general_ci;
set sql_log_bin = 0;

View file

@ -9,6 +9,8 @@
-- performance schema engine.
--
SET NAMES latin1 COLLATE latin1_swedish_ci;
set @have_old_pfs= (select count(*) from information_schema.schemata where schema_name='performance_schema');
SET @cmd="SET @broken_tables = (select count(*) from information_schema.tables where engine != 'PERFORMANCE_SCHEMA' and table_schema='performance_schema')";

View file

@ -18,6 +18,8 @@
-- The system tables of MySQL Server
--
SET NAMES latin1 COLLATE latin1_swedish_ci;
set sql_mode='';
set @orig_storage_engine=@@default_storage_engine;

View file

@ -17,6 +17,8 @@
-- The initial data for system tables of MySQL Server
--
SET NAMES latin1 COLLATE latin1_swedish_ci;
-- When setting up a "cross bootstrap" database (e.g., creating data on a Unix
-- host which will later be included in a Windows zip file), any lines
-- containing "@current_hostname" are filtered out by mysql_install_db.

View file

@ -13,6 +13,8 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
SET NAMES latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS test CHARACTER SET latin1 COLLATE latin1_swedish_ci;
--- Fill "db" table with default grants for anyone to