ERROR 1786 (HY000): Statement violates GTID consistency: CREATE TABLE ... SELECT
在執行如下語句:
create table gltable select * from mysql.user;
報錯如下:
ERROR 1786 (HY000): Statement violates GTID consistency: CREATE TABLE ... SELECT
這是因為MySQL GTID有一些場景限制, GTID中create 語句限制的解法
用MySQL特有的用法 like,比如:
create table gltable like mysql.user;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2222227/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Create Table as SelectOracle
- 【MySQL】ERROR 1005 (HY000): Can't create table' (errno: 150)MySqlError
- ERROR 1005 (HY000): Can't create table 'starive.SC' (errno: 150)"Error
- sqlserver不能直接create table as select ......SQLServer
- ERROR 1005 (HY000): Can't create table'matrix.system_log' (errno: 150)Error
- statement, session , transaction ,consistency 等概念Session
- CREATE TABLE AS SELECT(CAST)(二)-ConceptAST
- ERROR 1114 (HY000) The table '' is fullError
- ERROR 1661 (HY000): Cannot execute statement: impossible to write to binaryError
- CREATE TABLE AS SELECT(CAST)(一)-ORA-1652AST
- SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-preparedSQLError
- ERROR 1135 (HY000): Can't create a new threadErrorthread
- ERROR 1168 (HY000): Unable to open underlying table which isError
- ERROR 1135 (HY000): Can't create a new thread (errno 11)Errorthread
- Understanding the CREATE DATABASE Statement (69)Database
- transaction-level or statement-level consistency; check constraintsAI
- insert into select 與 create table as的用法和區別(轉)
- MySQL ERROR 1031 (HY000) at line 33: Table storage engine forMySqlError
- 【SQL】14 UNION 操作符、SELECT INTO 語句、INSERT INTO SELECT 語句、CREATE DATABASE 語句、CREATE TABLE 語句SQLDatabase
- Percona MySQL 5.6 語句加鎖報錯"ERROR 1665 (HY000): Cannot execute statement"MySqlError
- ERROR 1206 (HY000): The total number of locks exceeds the lock table sizeError
- create table 使用select查詢語句建立表的方法分享
- Step 7: Issue the CREATE DATABASE Statement (65)Database
- ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAError
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- ERROR 1114 (HY000): The table 'test1' is full 的解決Error
- ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corruptedErrorMySql
- 【翻譯】Specifying CREATE DATABASE Statement ClausesDatabase
- 【OH】Creating a Database with the CREATE DATABASE StatementDatabase
- create table of mysql databaseMySqlDatabase
- Oracle table selectOracle
- create a partition table using a exsit table
- create table as select where 1=0會把null和not null屬性也帶上Null
- ERROR 1010 (HY000): Error dropping databaseErrorDatabase
- create table if not exists Waiting for table metadata lockAI
- ERROR 1524 (HY000): Plugin is not loadedErrorPlugin
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- MySQL5.6 create table原理分析MySql