connection string(数据库/服务连接字符串):一段包含连接信息的文本,用来让程序连接到数据库或其他网络服务,通常包括服务器地址、端口、数据库名、用户名、密码、加密方式、超时等参数。
/kəˈnɛkʃən strɪŋ/
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.
在生产环境中,我们把连接字符串放在环境变量里,避免在代码中暴露密码。
connection 来自拉丁语 connectere(“连接、联结”),string 在计算机语境中常指“一串字符”。合起来 connection string 就是“用于建立连接的一串字符(配置文本)”。该用法随着数据库与网络编程普及而在技术文档中固定下来。