Apache ShardingSphere 中文文档 5.4.1ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} driver.jdbc.unsupported 包。 9.1.6 可观察性 Agent 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean0 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} Server 不会为同一 transaction group 的所有已连接的 Seata Client 实例 传递 io.seata.core.context.RootContext.getXID() 的返回值,参考 https://seata.apache.o rg/docs/user/api/ 。这需要讨论两种情况, 1. 在使用 ShardingSphere JDBC 的场景下,跨多个微服务的事务场景需要考虑在起点微服务的上下0 码力 | 557 页 | 4.61 MB | 1 年前3
Apache ShardingSphere 中文文档 5.3.2ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} driver.jdbc.unsupported 包。 9.1.6 可观察性 Agent 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean0 码力 | 508 页 | 4.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.2.0ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 2.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 ${proxy_port} ${proxy_conf_directory} 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} Proxy 内的 conf 目录。启动脚本可以 指定监听端口、配置文件所在目录,命令如下: bin/start.sh [port] [/path/to/conf] 9. 使用客户端连接 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接0 码力 | 449 页 | 5.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.2sh ${proxy_port} ${proxy_conf_directory} 2.2.5 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean helm dependency build cd .. helm install shardingsphere-proxy apache-shardingsphere-proxy 执行上述命令以执行默认配置进行安装。其他的配置详见下方的配置列表。执行 helm list 获取所有 安装的 release。 卸载 helm uninstall shardingsphere-proxy0 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.1sh ${proxy_port} ${proxy_conf_directory} 2.2.4 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean shardingsphere/shardingsphere-proxy 5.2. ShardingSphere-Proxy 143 Apache ShardingSphere document, v5.1.1 执行上述命令后会以默认的配置进行安装。其他的配置详见下方的配置列表。 如果需要获取所有安装的 release ,可以执行 helm list 卸载 如果要卸载上述安装的 release ,请执行 helm0 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.0sh ${proxy_port} ${proxy_conf_directory} 2.2.4 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean rty [,poolProperty]) ...]) poolProperty: "key"= ("value" | value) • 添加资源前请确认已经创建分布式数据库,并执行 use 命令成功选择一个数据库 • 确认增加的资源是可以正常连接的,否则将不能添加成功 • 重复的 dataSourceName 不允许被添加 • 在同一 dataSource 的定义中,simpleSource0 码力 | 406 页 | 4.40 MB | 1 年前3
Mybatis 3.3.0 中文用户指南中获取 SqlSession 既然有了 SqlSessionFactory ,顾名思义,我们就可以从中获得 SqlSession 的实例了。SqlSession 完全包含了面向数据库执行 SQL 命令所需的所有方法。你可以通过 SqlSession 实例来直接执行已映射的 SQL 语句。例如: SqlSession session = sqlSessionFactory.openSession(); session.close(); } 诚然这种方式能够正常工作,并且对于使用旧版本 MyBatis 的用户来说也比较熟悉,不过现在有了一种更直白的方式。使用对于给定 语句能够合理描述参数和返回值的接口(比如说BlogMapper.class),你现在不但可以执行更清晰和类型安全的代码,而且还不用担 心易错的字符串字面值以及强制类型转换。 例如: SqlSession session = 这样的关系数据库管理系统的自动递增字段),默认值: false。 keyProperty (仅对 insert 和 update 有用)唯一标记一个属性,MyBatis 会通过 getGeneratedKeys 的返回值或者通过 insert 语句的 selectKey 子元素设置它的键值,默认: unset 。如果希望得到多个生成的列,也可以是逗号分 隔的属性名称列表。 keyColumn (仅对 insert0 码力 | 98 页 | 2.03 MB | 1 年前3
Apache ShardingSphere ElasticJob 中文文档 2023 年 11 月 01 日. . . 71 开启监听端口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 执行导出命令 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 6.3.3 作业运行状态监控 . . . process data // ... } } 流式处理 可通过属性配置 streaming.process 开启或关闭流式处理。 如果开启流式处理,则作业只有在 fetchData 方法的返回值为 null 或集合容量为空时,才停止抓取,否 则作业将一直运行下去;如果关闭流式处理,则作业只会在每次作业执行过程中执行一次 fetchData 和 processData 方法,随即完成本次作业。 ElasticJob 过程中可能会碰到一些分布式问题,导致作业运行不稳定。 由于无法在生产环境调试,通过 dump 命令可以把作业内部相关信息导出,方便开发者调试分析; 导出命令的使用请参见运维指南。 以下示例用于展示如何通过 SnapshotService 开启用于导出命令的监听端口。 public class JobMain { public static void main(final0 码力 | 98 页 | 1.97 MB | 1 年前3
传智播客 mybatis 框架课程讲义查询出来的结果集为单条,内部使用 session.selectOne 方法调 用,mapper 接口使用 pojo 对象作为方法返回值。 返回 pojo 列表表示查询出来的结果集可能为多条,内部使用 session.selectList 方法,mapper 接口使用 List对象作为方法返回值。 4.2.5 输出 hashmap 输出 pojo 对象可以改用 hashmap 输出类型,将输出的字段名称作为 0 码力 | 75 页 | 1.16 MB | 1 年前3
共 13 条
- 1
- 2













