mariadb connect引擎连接sqlserver

网上很多使用mariadb的connect引擎连接oracle,唯独没有mariadb使用connect引擎连接sqlserver,特小记一篇.

---1.使用最新版connect

# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.1.10-MariaDB-log Source distribution

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.



#rpm2cpio MariaDB-10.1.10-centos6-x86_64-connect-engine.rpm | cpio --extract  --make-directories


#cp /soft/usr/lib64/mysql/plugin/ha_connect.so  /data/mysql/lib/plugin/

root@node01 13:30:33>INSTALL SONAME  'ha_connect';
Query OK, 0 rows affected (0.00 sec)



#  ls /data/mysql/lib/plugin/
adt_null.so              dialog.so                  ha_federatedx.so          metadata_lock_info.so    semisync_master.so
auth_0x0100.so           example_key_management.so  ha_innodb.so              mypluglib.so             semisync_slave.so
auth_pam.so              file_key_management.so     ha_mroonga.so             mysql_clear_password.so  server_audit.so
auth_socket.so           ha_archive.so              handlersocket.so          qa_auth_client.so        simple_password_check.so
auth_test_plugin.so      ha_blackhole.so            ha_spider.so              qa_auth_interface.so     sql_errlog.so
daemon_example.ini       ha_connect.so              ha_test_sql_discovery.so  qa_auth_server.so        wsrep_info.so
debug_key_management.so  ha_example.so              libdaemon_example.so      query_cache_info.so
dialog_examples.so       ha_federated.so            locales.so                query_response_time.so

--权限重要
#chown mysql:mysql -R /data/mysql


root@node01 15:18:54>show engines \G;
*************************** 1. row ***************************
      Engine: MRG_MyISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 2. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: MyISAM storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: CSV
     Support: YES
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 5. row ***************************
      Engine: CONNECT
     Support: YES
     Comme
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值