Replication of mysql table at runtimeCompare two MySQL databasesWhich MySQL data type to use for storing boolean valuesShould I use the datetime or timestamp data type in MySQL?MySQL - UPDATE query based on SELECT QueryHow to 'insert if not exists' in MySQL?How to import CSV file to MySQL tableSQL select only rows with max value on a columnGet table names using SELECT statement in MySQLBest data type to store money values in MySQLHow to import an SQL file using the command line in MySQL?

Is the infant mortality rate among African-American babies in Youngstown, Ohio greater than that of babies in Iran?

The instant an accelerating object has zero speed, is it speeding up, slowing down, or neither?

What does a/.b[c][[1]] mean?

Does anyone recognize these rockets, and their location?

How would Japanese people react to someone refusing to say “itadakimasu” for religious reasons?

Can "Es tut mir leid" be used to express empathy rather than remorse?

Converting 3x7 to a 1x7. Is it possible with only existing parts?

Why are almost all the people in this orchestra recording wearing headphones with one ear on and one ear off?

How Linux command "mount -a" works

Fill the maze with a wall-following Snake until it gets stuck

What do I put on my resume to make the company i'm applying to think i'm mature enough to handle a job?

Is there any effect in D&D 5e that cannot be undone?

How useful is the GRE Exam?

How do I run a script as sudo at boot time on Ubuntu 18.04 Server?

How do I gain the trust of other PCs?

How to prevent cables getting intertwined

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

Why should the equality of mixed partials be "intuitively obvious"?

Basic power tool set for Home repair and simple projects

Can I drive in EU states and Switzerland with German proof of a surrendered U.S. license?

How to sort human readable size

At what temperature should the earth be cooked to prevent human infection?

On George Box, Galit Shmueli and the scientific method?

Can you cover a cube with copies of this shape?



Replication of mysql table at runtime


Compare two MySQL databasesWhich MySQL data type to use for storing boolean valuesShould I use the datetime or timestamp data type in MySQL?MySQL - UPDATE query based on SELECT QueryHow to 'insert if not exists' in MySQL?How to import CSV file to MySQL tableSQL select only rows with max value on a columnGet table names using SELECT statement in MySQLBest data type to store money values in MySQLHow to import an SQL file using the command line in MySQL?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have a table in my MySQL for which I want to create a replica in some other database on the same MySQL instance with a different table name.



For eg
I have two database X and Y.



X contains a table by the name of A. Direct insertions takes place in this table only.



Y database will contain a table by the name of B which will contain the same data as of A.



MySQL version - 5.6



I have explored the options for copy of data. But this will not happen at runtime. I want a structure something like as soon as an insertion or updation takes place in table A, same data gets copied/updated to table B.



I also explored the option for the master-slave concept, in which it provides the copy to some other server. However, for this, a separate DB is needed but I want to be in the same DB instance.



I have no idea as to such a feature exists or not, or do I need to create such thing manually via code, or I have missed something in the above two ways which they can be modified and get the required result.



Can anyone please guide/help me with this problem? Thank you in advance.










share|improve this question






















  • Can 'Triggers' help?

    – Priyank Panchal
    Mar 25 at 4:10











  • I think these can help. I'll explore this section too.

    – Tushar Gandhi
    Mar 25 at 4:16











  • Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

    – Priyank Panchal
    Mar 25 at 4:17

















0















I have a table in my MySQL for which I want to create a replica in some other database on the same MySQL instance with a different table name.



For eg
I have two database X and Y.



X contains a table by the name of A. Direct insertions takes place in this table only.



Y database will contain a table by the name of B which will contain the same data as of A.



MySQL version - 5.6



I have explored the options for copy of data. But this will not happen at runtime. I want a structure something like as soon as an insertion or updation takes place in table A, same data gets copied/updated to table B.



I also explored the option for the master-slave concept, in which it provides the copy to some other server. However, for this, a separate DB is needed but I want to be in the same DB instance.



I have no idea as to such a feature exists or not, or do I need to create such thing manually via code, or I have missed something in the above two ways which they can be modified and get the required result.



Can anyone please guide/help me with this problem? Thank you in advance.










share|improve this question






















  • Can 'Triggers' help?

    – Priyank Panchal
    Mar 25 at 4:10











  • I think these can help. I'll explore this section too.

    – Tushar Gandhi
    Mar 25 at 4:16











  • Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

    – Priyank Panchal
    Mar 25 at 4:17













0












0








0








I have a table in my MySQL for which I want to create a replica in some other database on the same MySQL instance with a different table name.



For eg
I have two database X and Y.



X contains a table by the name of A. Direct insertions takes place in this table only.



Y database will contain a table by the name of B which will contain the same data as of A.



MySQL version - 5.6



I have explored the options for copy of data. But this will not happen at runtime. I want a structure something like as soon as an insertion or updation takes place in table A, same data gets copied/updated to table B.



I also explored the option for the master-slave concept, in which it provides the copy to some other server. However, for this, a separate DB is needed but I want to be in the same DB instance.



I have no idea as to such a feature exists or not, or do I need to create such thing manually via code, or I have missed something in the above two ways which they can be modified and get the required result.



Can anyone please guide/help me with this problem? Thank you in advance.










share|improve this question














I have a table in my MySQL for which I want to create a replica in some other database on the same MySQL instance with a different table name.



For eg
I have two database X and Y.



X contains a table by the name of A. Direct insertions takes place in this table only.



Y database will contain a table by the name of B which will contain the same data as of A.



MySQL version - 5.6



I have explored the options for copy of data. But this will not happen at runtime. I want a structure something like as soon as an insertion or updation takes place in table A, same data gets copied/updated to table B.



I also explored the option for the master-slave concept, in which it provides the copy to some other server. However, for this, a separate DB is needed but I want to be in the same DB instance.



I have no idea as to such a feature exists or not, or do I need to create such thing manually via code, or I have missed something in the above two ways which they can be modified and get the required result.



Can anyone please guide/help me with this problem? Thank you in advance.







mysql






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 4:00









Tushar GandhiTushar Gandhi

10911




10911












  • Can 'Triggers' help?

    – Priyank Panchal
    Mar 25 at 4:10











  • I think these can help. I'll explore this section too.

    – Tushar Gandhi
    Mar 25 at 4:16











  • Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

    – Priyank Panchal
    Mar 25 at 4:17

















  • Can 'Triggers' help?

    – Priyank Panchal
    Mar 25 at 4:10











  • I think these can help. I'll explore this section too.

    – Tushar Gandhi
    Mar 25 at 4:16











  • Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

    – Priyank Panchal
    Mar 25 at 4:17
















Can 'Triggers' help?

– Priyank Panchal
Mar 25 at 4:10





Can 'Triggers' help?

– Priyank Panchal
Mar 25 at 4:10













I think these can help. I'll explore this section too.

– Tushar Gandhi
Mar 25 at 4:16





I think these can help. I'll explore this section too.

– Tushar Gandhi
Mar 25 at 4:16













Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

– Priyank Panchal
Mar 25 at 4:17





Triggers are a set of queries which are triggered upon some event on the table, Create, Update, Delete, etc... Check MySQL reference for more details

– Priyank Panchal
Mar 25 at 4:17












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55331095%2freplication-of-mysql-table-at-runtime%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55331095%2freplication-of-mysql-table-at-runtime%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현