89468

89468



Replication and Reserved Words

You can encounter problems when you attempt to replicate from an older master to a newer slave and

you make use of identifiers on the master that are reserved words in the newer MySQL version running

on the slave. An example of this is using a table column named current_useron a 4.0 master

that is replicating to a 4.1 or higher slave because CURRENT_USER is a reserved word beginning in

MySQL 4.1. Replication can fail in such cases with Error 1064 You have an error in your SQL

syntax.. ., even if a dałabase or łabie named using the reserved word or a łabie having a column

named using the reserved word is excluded from replication. This is due to the fact that each SQL

event must be parsed by the slave prior to execution, so that the slave knows which database object or

objects would be affected; only after the event is parsed can the slave apply any filtering rules defined

by —replicate-do-db[2010], —replicate-do-table [2012], — replicate-ignoredb

[2011], and —replicate-ignore-table [2013],

To work around the problem of database, table, or column names on the master which would be

regarded as reserved words by the slave, do one of the following:

•    Use one or morę ALTER TABLE statements on the master to change the names of any database

objects where these names would be considered reserved words on the slave, and change any SQL

statements that use the old names to use the new names instead.

•    In any SQL statements using these database object names, write the names as quoted identifiers

using backtick characters (').

For listings of reserved words by MySQL version, see Reserved Words, in the MySQL Sen/er Version

Reference. For identifier guoting rules, see Section 9.2, “Schema Object Names".



Wyszukiwarka

Podobne podstrony:
exam0009 4 Writing Choose one of the tasks and write 100-120 words. 1.    You have bc
that thcy would pretor lo bc ill in liospital and nurccd l»v you (lian to bc iii fuli lirallh a
601 2 Copyrighted Materiał 242    601 WORDS YOU NEED TO KNOW TO PASS YOUR EXAM N nabo
BODY END AND DOOR-Back Door Opener-• Opener cable: Do not attempt to bend cable using excessive forc
Cash 2010 DVDRip XviD M00DY No one can be trusted when it comes to... i .Iiiiii ■j li
f5 7 Ł1 Roadmap Resources ♦ Home Paae f+1 Amusements Search engines and sites where you can downloa
"We wanted to know what makes a good kid good and a bad kid bad. Can you blame os forthat? We f
musc dev056 Your appearance? You can be. Don*t misunderstand me, and think I want you to be egotisti
File0038 I can write c ąmutiótywirt about TV and films. . do you watch TV? . programme do you l
htdctmw 025 As usual, we ll study the pix on the page opposite. And this time there are two new word
image Twitter OAuth v1.1 DataTwitter API OAuth Info (will be used in Social Counter and Twitter Tic
76339 laleczka szwajcaria1 Paper Dolls Around the World: Europę XIIColor me and dress me up!Can you

więcej podobnych podstron