V2EX  ›  英汉词典

Connection String

定义 Definition

connection string(数据库/服务连接字符串):一段包含连接信息的文本,用来让程序连接到数据库或其他网络服务,通常包括服务器地址、端口、数据库名、用户名、密码、加密方式、超时等参数。

发音 Pronunciation

/kəˈnɛkʃən strɪŋ/

例句 Examples

The app can't connect because the connection string is wrong.
应用程序连不上,因为连接字符串写错了。

In production, we store the connection string in an environment variable to avoid exposing passwords in the code.
在生产环境中,我们把连接字符串放在环境变量里,避免在代码中暴露密码。

词源 Etymology

connection 来自拉丁语 connectere(“连接、联结”),string 在计算机语境中常指“一串字符”。合起来 connection string 就是“用于建立连接的一串字符(配置文本)”。该用法随着数据库与网络编程普及而在技术文档中固定下来。

相关词 Related Words

文学作品与著名出处 Literary Works & Notable Uses

  • Pro ASP.NET Core(Apress)等 .NET 开发书籍中常用 connection string 讲解数据库访问配置。
  • SQL Server Books Online / Microsoft Learn(微软官方文档)中大量出现 connection string(如 ADO.NET、SQL Server 连接示例)。
  • Programming Entity Framework(O’Reilly)等 ORM 相关书籍中经常讨论连接字符串的配置与安全实践。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2848 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 13:18 · PVG 21:18 · LAX 06:18 · JFK 09:18
♥ Do have faith in what you're doing.