mysql 5.7.17能否使用FEDERATED
时间: 2024-06-05 08:03:41 浏览: 11
MySQL 5.7.17支持FEDERATED引擎。FEDERATED引擎允许在本地MySQL服务器上创建一个指向远程MySQL服务器表的表,从而使本地MySQL服务器能够像访问本地表一样访问远程表。在使用FEDERATED引擎时,您需要确保远程服务器上的MySQL版本与本地服务器上的版本匹配,并且要正确配置FEDERATED引擎所需的参数。此外,还需要确保网络连接畅通,并且远程MySQL服务器上的表具有正确的权限和访问权限。
相关问题
mysql federated
MySQL Federated是一种存储引擎类型,它允许MySQL服务器通过网络连接到另一个MySQL服务器上的表。这允许您在两个不同的MySQL服务器之间共享数据,并且可以在不需要复制数据的情况下访问远程表。
使用MySQL Federated,您可以在本地MySQL服务器上创建一个虚拟表,该表实际上是远程MySQL服务器上的表的代理。然后,您可以像访问本地表一样访问远程表,包括SELECT,INSERT,UPDATE和DELETE等操作。
需要注意的是,使用MySQL Federated可能会降低性能,因为查询需要从本地MySQL服务器传递到远程MySQL服务器,然后将结果返回。此外,MySQL Federated也有一些限制,例如不支持事务和外键等特性。
mysql 开启 federated
To enable the FEDERATED storage engine in MySQL, you need to make sure that it is installed and enabled in your MySQL server. The FEDERATED storage engine is included in most MySQL distributions, but it may not be enabled by default.
To check if FEDERATED is installed and enabled, you can run the following command in your MySQL server:
```
SHOW ENGINES;
```
This will display a list of all the storage engines that are installed and enabled in your MySQL server. Look for the FEDERATED engine in the list. If it is not listed, you may need to install it or enable it in your MySQL configuration.
To enable the FEDERATED engine in MySQL, you can add the following line to your MySQL configuration file (usually my.cnf or my.ini):
```
federated
```
Then, restart your MySQL server for the changes to take effect.
Once FEDERATED is enabled, you can create FEDERATED tables in your MySQL server using the syntax I mentioned in my previous answer.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)