1、问题描述:
在ubuntu 16.04 使用mysql Connector 8(C++)的mysqlx接口客户端程序,连接mysql server时,报错ERROR : CDK Error: Connection refused (generic:111)
2、原因分析
可在shell中通过 “ mysql -u root -p ”命令进入mysql解释器,然后输入 “show plugins;”查看当前mysql server的所有插件,如果没有mysqlx 插件,则原因为缺少X插件,请接着看下面内容,若像下图里一样,有mysqlx 插件,请考虑其他原因;
3、缺X插件解决办法
通过下载MySQL APT Repository更新ubuntu包管理库,然后通过apt 工具更新mysql版本,在新安装的mysql库中会看到mysql-community-client,mysql-community-server 的
mysql-community-server
具体可参考:
https://stackoverflow.com/questions/40051894/mysql-missing-x-plugin
https://www.cnblogs.com/zxhyJack/p/8596864.html
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install