这个维基百科上有翻译。URL:Uniform Resource Locator,统一资源定位符

URI:Uniform Resource Identifier,统一资源标志符

URL 是一种比较统一的带参数指向某个地址的格式。格式为:[协议类型]://[访问资源需要的凭证信息]@[服务器地址]:[端口号]/[资源层级UNIX文件路径][文件名]?[查詢]#[片段ID]

比如这个问题,URL 是

https://www.zhihu.com/question/324392663

https 是协议,使用默认账户访问,端口是 https 默认的 443,路径是 /question/324392663。

如果要寻找精准定义,我们可以翻 RFC。URL 的 RFC 是 rfc1738 。

它自己介绍道The specification is derived from concepts introduced by the World-Wide Web global information initiative, whose use of such objects dates from 1990 and is described in "Universal Resource Identifiers in WWW", RFC 1630. The specification of URLs is designed to meet the requirements laid out in "Functional Requirements for Internet Resource Locators"

在 RFC 1630 中有对 URL,URI,URN 的区分如下:URIs

This document defines a way to encapsulate a name in any registered name space, and label it with the the name space, producing a member of the universal set. Such an encoded and labelled member of this set is known as a Universal Resource Identifier, or URI.

The universal syntax allows access of objects available using existing protocols, and may be extended with technology.

The specification of the URI syntax does not imply anything about the properties of names and addresses in the various name spaces which are mapped onto the set of URI strings. The properties follow from the specifications of the protocols and the associated usage conventions for each scheme.

URLs

For existing Internet access protocols, it is necessary in most cases to define the encoding of the access algorithm into something concise enough to be termed address. URIs which refer to objects accessed with existing protocols are known as "Uniform Resource Locators" (URLs) and are listed here as used in WWW, but to be formally defined in a separate document.

URNs

There is currently a drive to define a space of more persistent names than any URLs. These "Uniform Resource Names" are the subject of an IETF working group's discussions. (See Sollins and Masinter, Functional Specifications for URNs, circulated informally.)

The URI syntax and URL forms have been in widespread use by World-Wide Web software since 1990.

-- https://tools.ietf.org/html/rfc1630

太长谁帮我翻译下... 简单说,我们可以看到,URL 是 URI 的一部分,不过因为特别重要,用于 WWW 中,所以单独列出来,放在 rfc1738 中。

那么,如何定义“用于 WWW 范畴” 呢?rfc1738 列举了一些例子:3. Specific Schemes

The mapping for some existing standard and experimental protocols is

outlined in the BNF syntax definition. Notes on particular protocols

follow. The schemes covered are:

ftp File Transfer protocol

http Hypertext Transfer Protocol

gopher The Gopher protocol

mailto Electronic mail address

news USENET news

nntp USENET news using NNTP access

telnet Reference to interactive sessions

wais Wide Area Information Servers

file Host-specific file names

prospero Prospero Directory Service

Other schemes may be specified by future specifications. Section 4 of

this document describes how new schemes may be registered, and lists

some scheme names that are under development.

因此它指向网上的地址,但并不特指我们的网页。

Section 4 中提到的维护了一组 schema 全集。我们可以在这个地方找到一个 “URI schemas” 但 url schemas 并没有找到。我怀疑这是改名了的缘故。

此外,很多产品还可以按照这个规则自定义 URL。比如 jdbc 登录 mysql。mysql 是一个数据库,通过 jdbc 访问可以用一个字符串代表所有连接信息。

比如 connection URL 为 jdbc:mysql://sandy:secret@host1:3306/sakila?key1=value1&key2=value2

协议为 jdbc:mysql 用户 sandy 口令 secret 地址 host1 端口 3306 数据库 sakila,其余参数 key1:value1, key2:value2 等等。

此外,mongo 等各种数据库也有类似的连接字符串。

URI的定义在 rfc3986 中。在 rfc3986 中列出一系列例子:1.1.2. Examples

The following example URIs illustrate several URI schemes and

variations in their common syntax components:

ftp://ftp.is.co.za/rfc/rfc1808.txt

http://www.ietf.org/rfc/rfc2396.txt

ldap://[2001:db8::7]/c=GB?objectClass?one

mailto:John.Doe@example.com

news:comp.infosystems.www.servers.unix

tel:+1-816-555-1212

telnet://192.0.2.16:80/

urn:oasis:names:specification:docbook:dtd:xml:4.1.2

我们可以看到 URL 的各种格式也在其中,不过还有 urn 的一些格式。

综上,我们可以结论如下:URL 俗称网页地址,网址,直译统一资源定位符,但网页地址并不只是 http 和 https

网址( URL ) 和链接 ( Link ),超链接(Hyperlink) 关系有点微妙...

URL 是相对古老的名称,我们简单讲 URL == 网页地址也行。不过这种格式被广泛使用,它们也自称 URL。rfc 虽然要求需要向 iana 提供文档,不过由于是内部使用,你说人家不是 URL 这个有点吹毛求疵

现在很多直接称其为 URI,直译统一资源标识符。它包括 URL 的所有内容,以及 URN 的部分。这个也完全没问题

不纠结

欢迎讨论。

参考:

连接mysql的url是什么意思_URL是什么意思?相关推荐

  1. 连接mysql的url是什么_JDBC的URL是什么

    展开全部 是跟数据库进行连接的时候,用来连接到指定远程数据库标识符. 可以在32313133353236313431303231363533e59b9ee7ad9431333431353265该URL ...

  2. jdbc远程连接mysql url_jdbc连接mysql之url书写

    #autoReconnect 当数据库连接丢失时是否自动连接,取值true/false false #maxReconnects 如果autoReconnect为true,此参数为重试次数,缺省为3次 ...

  3. mysql的url地址什么意思_URL是什么意思?

    这个维基百科上有翻译.URL:Uniform Resource Locator,统一资源定位符 URI:Uniform Resource Identifier,统一资源标志符 URL 是一种比较统一的 ...

  4. myeclipse 2015 stable 2.0连接mysql URL错误

    myeclipse 2015 stable 2.0连接mysql URL错误 Error while performing database login with the mysql driver: ...

  5. 使用url连接mysql时的属性_MySQL数据库连接属性配置,即URL后一些配置参数及其重要性...

    在JDBC中,Connection类的创建方式有三种函数(不包括连接池) 一是:DriverManager.getConnection(String url), 二是:DriverManager.ge ...

  6. 咋样查mysql的url_eclipse用jdbc连接mysql数据库时,url是填什么?怎样找出地址?

    展开全部 jdbc连接mysql数据62616964757a686964616fe78988e69d8331333337623535库的url为: jdbc:mysql://主机名或IP抵制:端口号/ ...

  7. connection url mysql,JDBC 连接MySQL实例详解

    JDBC连接MySQL JDBC连接MySQL 加载及注册JDBC驱动程序 Class.forName("com.mysql.jdbc.Driver"); Class.forNam ...

  8. 使用JDBC连接Mysql遇到的问题:url中的数据库名字是什么?

    以前学过一点编程,丢下好几年了,今天想重新捡起来. 在尝试使用Java的JDBC连接 Mysql数据库时,出现了一些问题,还有自己的一些疑惑,在此记录下来. 1.装载驱动的链接变了 以前的版本:Cla ...

  9. MySQL连接字符串的url在哪里?启动hive失败,警告解决:Establishing SSL connection without server‘s identity verification i

    在哪里修改url呢?我找到了一个地方,不知道是否存在其他地方来设置url. 背景介绍 我参考着林子雨的教程,在ubuntu上安装hive并且设置MySQL存储其元数据的时候,发现hive启动不了,报错 ...

最新文章

  1. Oracle之sqlpluse显示格式
  2. java 命令行 读取文件_java读取txt文件
  3. 【计组实验】P3 Verilog多周期处理器开发 MIPS指令集
  4. C# Aspose.Word 操作word文档(利用模板)
  5. 关于Typora编辑器编写markdown文档时插入出现前字吞后字的解决方法
  6. jdbctemplate无where条件查询_多表查询
  7. “光棍节”变“购物节”的第12年:4982亿+2715亿!
  8. mac bigsur 360极速浏览器闪退问题解决方法
  9. Vue:embed结合ElementUI中dialog实现PDF文件预览
  10. 使用oracle执行txt语句,oracle常用SQL语句.txt
  11. WPF的TextBox产生内存泄露的情况
  12. 如何用C语言编辑一个万年历,如何用C语言编写一个万年历系统?
  13. 您未被授权查看该页 错误 401.3
  14. 关于base64编码解码(Android编码,JS解码,案例为解决安卓端H5页面的emoji表情显示问题)
  15. 8月书讯丨11本新上好书速览(计算机+经管)
  16. PPT打开出错/可尝试修复此演示文稿
  17. matlab 光平面标定代码,线结构光视觉传感器/线激光深度传感器标定工具(matlab)...
  18. 【数据库系统概念第七版(Database System Concepts 7th)配套SQL文件如何获取】
  19. signature=3cb79ad68e1de6fcae23aede975d0e4e,考研二外法语易错题汇总
  20. LNMP.org一键安装包

热门文章

  1. SQL Server2000中执行一个SQL, 在lock上发现自己锁自己
  2. 制作U盘启动CDLinux
  3. C# 操作现有Word表格详细教程
  4. UPS不间断电源调试注意事项
  5. babylon创建文字
  6. Nodejs (一)
  7. 数仓建设(离线和实时)
  8. 快速实现Excel到ODX/PDX数据文件的自动转换工具:VisualODX
  9. flex:1 的含义 以及属性值1的含义
  10. 东南大学银行账号信息