编辑“Gallery:MSSQL

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
= Gallery2的Microsoft SQL Server =
= Microsoft SQL Server For Gallery 2 =
Gallery2支持'''Microsoft SQL Server'''(2005及更新的版本)作为数据库后端,如Gallery 2.2。
Gallery 2 supports '''Microsoft SQL Server''' (version 2005 and later) as a database backend as of Gallery 2.2.


* SQL Server 2005 Express Edition(可从Microsoft免费下载)已经过完整的测试。2005之前的版本已知完全无法运行(如SQL Server 7无法兼容linkitem模块,更可能无法与特定的基础核心函数兼容)。
* Full testing has been done using SQL Server 2005 Express Edition (which is a free download from Microsoft).  Pre-2005 versions are known to not work completely (e.g. SQL Server 7 does not work with the linkitem module, and most likely not with certain, basic core functions).


==局限性 ==
== Limitations ==
* '''失去UTF-8支持(取而代之的是UCS-2)''' - MS SQL Server是唯一的不支持UTF-8的Gallery2数据库后端。取而代之的是,MS SQL Server使用UCS-2来编码unicode字符。UCS-2是一个2-byte本地依赖编码。这意味着它可以存储经配置的(本地)语言的所有字符,但与此同时就不保存其他语言的字符了。而所有其他的Gallery2数据库后端则可以同时存储所有语言的字串。
* '''Missing UTF-8 support (UCS-2 instead)''' - MS SQL Server is the only Gallery 2 database backend that does not support UTF-8. MS SQL Server uses UCS-2 to encode unicode characters instead. UCS-2 is a 2-byte locale-dependent encoding. That means that it can store all characters for the configured language (locale), but not for other languages at the same time. All other database backends for Gallery 2 can store strings for all languages at the same time.
* '''被限制的测试''' - MS SQL Server是最晚被加入到Gallery2所支持的数据库后端列表中的。它没有被任何Gallery2开发者选作主要的开发平台且用户群也很小。因此不要期望其稳定应能够与为数千用户所使用并用于开发的G2/MySQL或G2/PostgreSQL相媲美。尽管如此,我们还是为各发布版本的所有支持平台多进行了单元测试,其中就包括了MS SQL Server / Windows XP。
* '''Limited testing''' - MS SQL Server is the latest addition to the list of supported database backends of Gallery 2. It's not used by any Gallery 2 developer as the main development platform and the userbase is very small at this point. Thus you cannot expect the same stability as from e.g. G2/MySQL or G2/PostgreSQL which are used by thousands of users and during development. Nevertheless, we run a large set of unit tests on all supported platforms for each release, including MS SQL Server / Windows XP.


== 数据库创建步骤(运行安装程序之前)==
== Database Creation Steps (Before running the Installer) ==
* 创建一"gallery2"数据库,将下面的语句置入一文件中(可命名为如"create_Gallery2.sql"),提交你Gallery2账户信息的"g2user""g2pwd"
* To create a "gallery2" database from scratch, put the following statements into a file (called, for example, "create_Gallery2.sql"), substituting your Gallery 2 account information for "g2user" and "g2pwd":


  create database gallery2
  create database gallery2
第24行: 第24行:
  go
  go


使用"sqlcmd"命令行接口来运行该文件中的语句:
Run the statements in that file using the "sqlcmd" command line interface:


  "sqlcmd -S myhostname\SQLEXPRESS -e -i create_Gallery2.sql"
  "sqlcmd -S myhostname\SQLEXPRESS -e -i create_Gallery2.sql"


现在你的数据库应为Gallery2安装程序准备完毕了。
Your database should now be ready for the Gallery 2 Installer.


更多有关Microsoft SQL Server的资料请参看http://msdn2.microsoft.com/en-us/library/ms379066.aspx.
For more Microsoft SQL Server documentation, see http://msdn2.microsoft.com/en-us/library/ms379066.aspx.


* 在安装程序中的第五步("数据库安装(Database Setup)"步骤)中的"Hostname"字段中,输入你的hostname并后置"\SQLEXPRESS"。例如,"myhostname\SQLEXPRESS"
* At Step 5 of the Installer ("Database Setup" step), in the "Hostname" field, enter your hostname and append "\SQLEXPRESS".  For example, "myhostname\SQLEXPRESS".


[[Category:Gallery 2]]
[[Category:Gallery 2]]
您已切换至源代码编辑关闭

您可以随时通过点击该图标切换回可视化编辑。

请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)