Skip to content

容器版mariadb 主从复制实现 - pay  #2

Description

@qiaofeng1227

容器版本的mariadb主从复制:
mysql容器版和宿主机安装只是在命令和文件路径有所差异:

  1. 使用mysql命令:sudo docker exec -it mariadb mysql -u mysqluser-p yourpassword
  2. 文件路径位置
    MariaDB 数据目录: /data/apps/mariadb/data/mariadb_data
    MariaDB 配置文件: /data/apps/mariadb/src/conf.d/mysql.cnf
    其他主从复制的操作和宿主机一样。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions