TiDB v8.2 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 255 4.4.2 Choose Driver or ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 315 4.4 the ORMs that support MySQL are also compatible with TiDB. 4.1.4 Read more • Quick Start • Choose Driver or ORM • Connect to TiDB • Database Schema Design • Write Data • Read Data • Transaction • Optimize Connect to TiDB with JDBC TiDB is a MySQL-compatible database, and JDBC (Java Database Connectivity) is the data access API for Java. MySQL Connector/J is MySQL’s implementation of JDBC. In this tutorial0 码力 | 6549 页 | 108.77 MB | 10 月前3
TiDB v8.3 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 258 4.4.2 Choose Driver or ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 318 4.4 the ORMs that support MySQL are also compatible with TiDB. 4.1.4 Read more • Quick Start • Choose Driver or ORM • Connect to TiDB • Database Schema Design • Write Data • Read Data • Transaction • Optimize Connect to TiDB with JDBC TiDB is a MySQL-compatible database, and JDBC (Java Database Connectivity) is the data access API for Java. MySQL Connector/J is MySQL’s implementation of JDBC. In this tutorial0 码力 | 6606 页 | 109.48 MB | 10 月前3
TiDB v8.1 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 255 4.4.2 Choose Driver or ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 315 4.4 the ORMs that support MySQL are also compatible with TiDB. 4.1.4 Read more • Quick Start • Choose Driver or ORM • Connect to TiDB • Database Schema Design • Write Data • Read Data • Transaction • Optimize Connect to TiDB with JDBC TiDB is a MySQL-compatible database, and JDBC (Java Database Connectivity) is the data access API for Java. MySQL Connector/J is MySQL’s implementation of JDBC. In this tutorial0 码力 | 6479 页 | 108.61 MB | 10 月前3
TiDB v8.5 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 285 4.4.2 Choose Driver or ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 345 4.4 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 6727 17.12.3 Placement Driver (PD) · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 6727 17.12 the ORMs that support MySQL are also compatible with TiDB. 4.1.4 Read more • Quick Start • Choose Driver or ORM • Connect to TiDB • Database Schema Design • Write Data • Read Data • Transaction • Optimize0 码力 | 6730 页 | 111.36 MB | 10 月前3
TiDB v8.4 Documentation· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 280 4.4.2 Choose Driver or ORM · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 340 4.4 the ORMs that support MySQL are also compatible with TiDB. 4.1.4 Read more • Quick Start • Choose Driver or ORM • Connect to TiDB • Database Schema Design • Write Data • Read Data • Transaction • Optimize Connect to TiDB with JDBC TiDB is a MySQL-compatible database, and JDBC (Java Database Connectivity) is the data access API for Java. MySQL Connector/J is MySQL’s implementation of JDBC. In this tutorial0 码力 | 6705 页 | 110.86 MB | 10 月前3
TiDB v8.2 中文手册4.3.1 Java 4.3.1.1 使用 JDBC 连接到 TiDB TiDB 是一个兼容 MySQL 的数据库。JDBC 是 Java 的数据访问 API。MySQL Connector/J 是 MySQL 对 JDBC 的实现。 本文档将展示如何使用 TiDB 和 JDBC 来完成以下任务: • 配置你的环境。 • 使用 JDBC 连接到 TiDB 集群。 • 构建并运行你的应 步:克隆示例代码仓库到本地 运行以下命令,将示例代码仓库克隆到本地: git clone https://github.com/tidb-samples/tidb-java-jdbc-quickstart.git cd tidb-java-jdbc-quickstart 第 2 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到 TiDB 集群。 1. 在 TiDB Cloud 的 txt,并与你的程序输出进行比较。结果近似即为连接成功。 4.3.1.1.3 示例代码片段 你可参考以下关键代码片段,完成自己的应用开发。 完整代码及其运行方式,见代码仓库 tidb-java-jdbc-quickstart。 连接到 TiDB public MysqlDataSource getMysqlDataSource() throws SQLException { MysqlDataSource0 码力 | 4987 页 | 102.91 MB | 10 月前3
TiDB v8.5 中文手册· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 5092 17.12.3 Placement Driver (PD) · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4.3.1 Java 4.3.1.1 使用 JDBC 连接到 TiDB TiDB 是一个兼容 MySQL 的数据库。JDBC 是 Java 的数据访问 API。MySQL Connector/J 是 MySQL 对 JDBC 的实现。 本文档将展示如何使用 TiDB 和 JDBC 来完成以下任务: • 配置你的环境。 • 使用 JDBC 连接到 TiDB 集群。 • 构建并运行你的应 步:克隆示例代码仓库到本地 运行以下命令,将示例代码仓库克隆到本地: git clone https://github.com/tidb-samples/tidb-java-jdbc-quickstart.git cd tidb-java-jdbc-quickstart 第 2 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到 TiDB 集群。 1. 在 TiDB Cloud 的0 码力 | 5095 页 | 104.54 MB | 10 月前3
TiDB v8.4 中文手册4.3.1 Java 4.3.1.1 使用 JDBC 连接到 TiDB TiDB 是一个兼容 MySQL 的数据库。JDBC 是 Java 的数据访问 API。MySQL Connector/J 是 MySQL 对 JDBC 的实现。 本文档将展示如何使用 TiDB 和 JDBC 来完成以下任务: • 配置你的环境。 • 使用 JDBC 连接到 TiDB 集群。 • 构建并运行你的应 步:克隆示例代码仓库到本地 运行以下命令,将示例代码仓库克隆到本地: git clone https://github.com/tidb-samples/tidb-java-jdbc-quickstart.git cd tidb-java-jdbc-quickstart 第 2 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到 TiDB 集群。 1. 在 TiDB Cloud 的 txt,并与你的程序输出进行比较。结果近似即为连接成功。 4.3.1.1.3 示例代码片段 你可参考以下关键代码片段,完成自己的应用开发。 完整代码及其运行方式,见代码仓库 tidb-java-jdbc-quickstart。 连接到 TiDB public MysqlDataSource getMysqlDataSource() throws SQLException { MysqlDataSource0 码力 | 5072 页 | 104.05 MB | 10 月前3
TiDB中文技术文档交互获取数据,最终返回结果。 TiDB Server 是无状态的,其本身并不存储数据,只负责计算,可以无限水平扩展,可以通过负载均衡组件(如 LVS、HAProxy 或 F5)对外提供统一的接入地址。 Placement Driver (简称 PD) 是整个集群的管理模块,其主要工作有三个: 一是存储集群的元信息(某个 Key 存储在哪个 TiKV 节点);二是对 TiKV 集群进行调度和负载均衡(如数据的迁移、Raft group 交互获取数据,最终返回结果。 TiDB Server 是无状态的,其本身并不存储数据,只负责计算,可以无限水平扩展,可以通过负载均衡组件(如 LVS、HAProxy 或 F5)对外提供统一的接入地址。 Placement Driver (简称 PD) 是整个集群的管理模块,其主要工作有三个: 一是存储集群的元信息(某个 Key 存储在哪个 TiKV 节点);二是对 TiKV 集群进行调度和负载均衡(如数据的迁移、Raft group TiDB 集群,并了解 TiDB 的基本操作和管理。 本节具体介绍如何部署一个 TiDB 集群。一个 TiDB 集群由不同的模块组成,包括:TiDB 服务器、TiKV 服务 器、Placement Driver (PD) 服务器。 架构图如下所示: 参考 TiDB Ansible 部署方案。 本节具体介绍 TiDB 中基本的增删改查操作。 TiDB 快速入门指南 关于 TiDB 关于本指南 TiDB0 码力 | 444 页 | 4.89 MB | 6 月前3
跟我学Shiro - 张开涛Authrizer:授权器,或者访问控制器,用来决定主体是否有权限进行相应的操作;即控制 着用户能访问应用中的哪些功能; Realm:可以有 1 个或多个 Realm,可以认为是安全实体数据源,即用于获取安全实体的; 可以是 JDBC 实现,也可以是 LDAP 实现,或者内存实现等等;由用户提供;注意:Shiro 跟我学 Shiro——http://jinnianshilongnian.iteye.com/ 8 Memcached 服务器); SessionDAO:DAO 大家都用过,数据访问对象,用于会话的 CRUD,比如我们想把 Session 保存到数据库,那么可以实现自己的 SessionDAO,通过如 JDBC 写到数据库;比如想把 Session 放到 Memcached 中,可以实现自己的 Memcached SessionDAO;另外 SessionDAO 中可以使用 Cache 进行缓存,以提高性能; username=password,role1,role2 指定用户 名/密码及其角色;role.role1=permission1,permission2 指定角色及权限信息; org.apache.shiro.realm.jdbc.JdbcRealm:通过 sql 查询相应的信息,如“select password from users where username = ?”获取用户密码,“select password0 码力 | 219 页 | 4.16 MB | 10 月前3
共 121 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13













