2 Star 1 Fork 2

XING / docker.mycat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

docker-mycat

支持连接 MySQL 8.0 的 Mycat 数据库中间件 Docker 容器。一键制作 Docker,一键启动 Docker,非常方便。


说明

我仅仅是根据网络上一些好心人提供的线索,下载 Mycat 1.6.5 的源码,花了点时间修改源码并打包,并制作了支持连接 MySQL 8.0 的 Docker 容器而已,没有其他贡献。

分享给跟我有同样需求的朋友,Docker 使用起来很方便!



容器特点

  • 增加支持 Mycat 连接 MySQL 8.0
  • 一键制作 docker-compose build
  • 一键启动 docker-compose up


使用方法

下载源码 Docker 制作源码、修改后的 Mycat 1.6.5 jar 包、Mycat 配置文件

$ git clone https://github.com/dekuan/docker.mycat.git

编译/创建 Mycat Docker

$ cd docker.mycat
$ docker-compose build

启动 Mycat Docker

$ docker-compose up


配置方法

1,Mycat 用户名和密码配置

打开配置文件 config/mycat/server.xml

$ vim config/mycat/server.xml
<mycat:server xmlns:mycat="http://io.mycat/">
    <system>
    ...
    </system>

    <!-- Mycat 数据库用户名 -->
    <user name="druid">
        <!-- Mycat 数据库密码 -->
        <property name="password">druid</property>

        <!-- Mycat 数据库名 -->
        <property name="schemas">druid</property>

        <!-- 是否使用加密的密码,0 表示不使用加密的密码 -->
        <property name="usingDecrypt">0</property>

    </user>

</mycat:server>


2,Mycat 数据节点、数据库、分库分表配置

打开配置文件 config/mycat/schema.xml

$ vim config/mycat/schema.xml

详细配置建议参考官方配置说明

https://github.com/MyCATApache/Mycat-Server




参考资料

https://github.com/liuwel/docker-mycat

MIT License Copyright (c) 2019 DeKuan, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

docker-mycat for MySQL 5.x and 8.0。支持连接 MySQL 8.0 的 Mycat 数据库中间件 Docker 容器。一键制作 Docker,一键启动 Docker,非常方便。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/dekuan/docker.mycat.git
git@gitee.com:dekuan/docker.mycat.git
dekuan
docker.mycat
docker.mycat
master

搜索帮助