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 7562511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:25:30+00:00 2026-05-30T13:25:30+00:00

Two questions, please. 1) I am reading about FEDERATED storage engine, but for me,

  • 0

Two questions, please.

1) I am reading about FEDERATED storage engine, but for me, is not clear that there are advantages in relation a simple remote connection. There is any difference or advantage ?

2) (real question) In this situation: If i have a MySQL DB and I need to access and read sensitive data from other database, probably with different DBMS, and probably, I only have access to read (anyway, I don’t need more privileges for the task).

Options

  • FEDERATED storage engine only solve the issue in MySQL DBMS
  • database abstraction library (pdo, zend)
  • Build an API for each external database
  • Sync my database with the others (maybe overkill for this propose)

What I need is just: “john is in your database? yes, no”

What’s the best choice ?

thanks!

  • 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-05-30T13:25:32+00:00Added an answer on May 30, 2026 at 1:25 pm

    It’s very hard to tell whether you’re trying to solve a technical problem or some kind of security/management problem. I’m going to address what I believe is your actual technical problem—determining if a user is in your database—and describe tradeoffs of each of your possibilities. Let’s address possible solutions in order of complexity.

    1. Direct MySQL database connection

    This would be to use a MySQL-specific database driver to connect directly to the remote database and issue your hard-coded SQL statement. This is fine for internal use if you can be sure that both ends have the same knowledge of the schema, if both ends are preferably on the same internal network, and you are responsible for all the clients that are going to connect and need this information.

    2. PDO database connection

    If you have agreement about the schema, but not the database vendor (i.e. one side may be using PostgreSQL instead of MySQL) then PDO is a better choice. As long as your queries are fairly simplistic you are unlikely to run into database compatibility issues. This is a better idea than #1 because it amounts to the same amount of work but is more flexible.

    3. Database replication

    I recommend extreme caution before deciding to use database replication. Replication is complex to set up and requires oversight and management. There is no such thing as a simple replication setup. However, it may be appropriate if:

    1. Both sides must have low-latency access, or
    2. One side wants to be insulated against expensive queries that may be run on the other, or
    3. There is concern about network availability

    If you need some or all of these features and are willing to pay the maintenance price, it may be the right choice. Bear in mind that it is a lot of work to deal with replication, and it will tie both sides to the same database vendor.

    4. FEDERATED storage engine

    I would recommend against using this for these reasons:

    • Optional storage engines are not always included in OS-supplied MySQL packages
    • Weird stuff that isn’t widely used breaks without warning
    • Because FEDERATED only works between MySQL databases, it introduces new kinds of failure without meaningfully simplifying your application code

    I’m looking at this engine choice wondering what it could be good for. I suppose if you moved a table from one database to another but didn’t want to or couldn’t change the application code that queries it, it may be appropriate, but I would not consider this for an up-front design. It will be fragile without improving clarity or performance.

    5. Write an API

    All of the choices up to this assume that you can trust everyone who needs the information with database credentials. If you need to give access to this information to third-parties, an API is a good choice because:

    • Access to the API can be managed separately from the database
    • Using the API doesn’t have to require a password
    • The API insulates users from your internal database schema changes

    APIs have disadvantages as well, though:

    • APIs adds both code and responsibilities to your codebase
    • Generalized querying of a database will require a lot of code
    • APIs open you up to your own security problems

    Further questions and notes

    You mention that this is “sensitive” information. Let me point out that for PCI compliance and HIPAA compliance and other situations where you are dealing with private data protected by law, none of these options are appropriate, because they all will involve decrypting and sharing data across computers that should not have access to it. When you query a database on machine A from machine B, it is very difficult to be certain of exactly how many copies of the data you’ll have in memory. If this is your situation—private, encrypted, legally protected data—you will need to go to great lengths to ensure your solution is legally sound and I am not in a position to offer advice as to how to proceed, other than to say that the foregoing is insufficient.

    If that is not the case, I would say the best solution for internal use in terms of efficiency and simplicity is to use PDO (#2). Otherwise, build an API (#5).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could you please explain the following two questions about Visual Web Developer 2008? 1)
further to these two questions, is there a way to disable the messages that
I have some questions about java. There are two questions in the code (I
Two questions: Can someone point me to unbiased data that compares .NET performance to
Two questions, really: Is there a standard/convention regarding the placement on configuration files? For
two questions: how do i compile a .java file that isn't on my username
I have these two questions that I think I understand how to answer (answers
I'm reading something about overload resolution and I found something that bothers me...In the
I was reading about Empty Base Optimization(EBO). While reading, the following questions popped up
I am reading Scott Meyers Effective C++ book. It was mentioned that there are

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.