mysql创建远程表,如何通过联邦创建远程mysql表?

I have read this federate TABLE and now I would like to know what to do if I want to create the test_table (see this example in the link) from remote?

As I do understand that test_table must be created on the federate server before. But I would like to create this by doing so from my local server.

Can anyone help?

UPDATE:

I tried to create a minimal version of the remote table by my own manually and let alter table tablename add columnname run. Now I get this error. (The Fields is ACA.PA in table levermanneasypivot.)

Field: ACA.PA does not exists

Error at: Do an alter ADD COLUMN ACA.PA @ easy

Error at: cmd: alter table `levermanneasypivot` add ` ACA.PA` int(9)

default NULL;

Errormsg: cmd: Table storage engine for 'levermanneasypivot' doesn't have this option

Thanks a lot.

解决方案The following items indicate features that the FEDERATED storage engine does and does not support:

The remote table that a FEDERATED table points to must exist before you try to access the table through the FEDERATED table.

You can use the connect command to connect to a remote server from inside the mysql client. But then, you could just connect to the remote server with mysql -h remote_addr directly.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值