Can MySql 5.0 have an idea of ​​a table located on another server

Can MySql 5.0 views use tables located on another server? What is the syntax for creating such a view?

+3
source share
2 answers

Federated Tables: http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html

This allows you to remotely access the table as if the remote table was a local table. It has its limitations, but it seems to meet my needs.

+6
source

Yes, you can create objects in one database that reference another database and even another host. The syntax for this works something like this:

USE localhost.myDB;

SELECT * FROM host2.db.tableName; 
-1

Source: https://habr.com/ru/post/1697986/


All Articles