Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8517477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:42:44+00:00 2026-06-11T05:42:44+00:00

Lets say we have MySQL server A, where we need to create a ‘copy’

  • 0

Lets say we have MySQL server A, where we need to create a ‘copy’ of table, which is situated on server B.

We don’t have federated enabled. Reseting server A would cause much trouble and I believe, we cannot enable federated without reseting. I also believe that it is not enough to enable it on the B server (correct me if I’m wrong in anything)

What other solutions do we have? Is there something enabled by default in mysql server? Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:42:46+00:00Added an answer on June 11, 2026 at 5:42 am
    • You need federated enabled just on server B
    • You can access a view on A by making a federated table on B
    • You can do INSERT UPDATE DELETE on federated table
    • If you need read-only access you can limit the user privileges

    BUT! You can’t do any aggregate func. on a view which will be federated (ex. COUNT(), MAX(), UNION…) (you can, however it will lag)

    • Remember to set the KEY’s on the federated table you are creating. (or it will lag horr.)
    • Remember to use ALGORITHM=MERGE on views
    • Remember to grant acces to USERNAME(from connection string) on server A

    example of a federated table on server B:

    delimiter $$
    CREATE TABLE `schemaName`.`tableName`(
        `keyName` VARCHAR(10) NOT NULL,
        `key2Name` DATE DEFAULT '2012-01-01',
        KEY `keyName` (`keyName`) 
    )
    ENGINE=FEDERATED
    DEFAULT CHARSET=utf8
    CONNECTION='mysql://USERNAME:PASSWORD@IPADDRESS:PORTNUMBER/baseSchema/baseTable'
    $$
    

    And the view on server A:

    CREATE
        ALGORITHM = MERGE
        DEFINER = `ANOTHERUSERNAME`@`%`
        SQL SECURITY DEFINER
    VIEW `baseSchema`.`baseTable` AS
        SELECT
            ... AS `keyName`,
            ... AS `key2Name`
        FROM
            ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have the following MySQL structure: CREATE TABLE `domains` ( `id` INT(10)
Lets say we have a application which has a database - MySQL, SQL Server,
Lets say I have a MySQL table, Users, like this - ----------------------------------------- ID |
Lets say I have a table in MySQL called articles, that has a column
i am working with MsSql server 2008, lets say i have table invoices contains
Let's say I have a legacy MySQL table called server with fields serverid:integer and
I have a mysql database table filled with 1000+ records, lets say 5000 records.
Lets say I have a table called Projects in my SQL server. My dbml
I have multiple tables in a MySQL database. Lets say they look like this:
Let's say I have 3 MySQL table. A song db called songs that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.