windows下安装unvdb
过程
1.解压二进制文件压缩包
联系管理员接收压缩包
unvdb-tx-2.4.21-win-x86_64
接受到之后选择解压路径
根据需求定义具体路径
2.安装过程
打开cmd命令行win+R
移动至要安装的硬盘
C:\users\name D:
可以看到已经移动过来了
D:\>
创建项目目录
D:\>md unvdb
D:\>dir
驱动器 D 中的卷是 应用
卷的序列号是 FEDB-9766
D:\ 的目录
2023/07/27 17:26 <DIR> unvdb
解压文件至此目录下(解压软件)
进入此目录
D:\>cd unvdb
D:\unvdb>dir
D:\unvdb 的目录
2023/02/17 11:02 <DIR> unvdb-tx-2.4.21-win-x86_64
可以看到文件包已经解压完成也在解压路径下。
启动初始化程序
程序位置为 unvdb-tx-2.4.21-win-x86_64 下的 setup.bat
===============================================================================
Welcome
-------
This installer will guide you through the installation of UnvDB.
Version: 2.4
Web: http://www.unvdb.com
Tel: 0755-84185890
You may quit the installer by typing "Exit",
or press <ENTER> key to continue: #安装说明
===============================================================================
License Agreement
-----------------
Installation and Use of UnvDB Requires Acceptance of the Following
License Agreement:
UniversalDB (Shenzhen) Technology Co., Ltd.
"SOFTWARE END-USER LICENSE AGREEMENT"
The "software product" includes computer software, and may include
associated media, documentation.
This "software product" includes any upgrade and supplemental
materials to the original "software product" provided by UnvDB.
SOFTWARE PRODUCT LICENSE
The "software product" is under the protection of Copyrights
and International Conventions.
You may disagree the license by typing "Exit",
or press <ENTER> key to continue: #软件许可
===============================================================================
Choose Data Folder
------------------
Please choose a data folder for this installation.
The data folder must be empty and writable.
Default Data Folder: D:\unvdb\unvdb-data-0 #默认安装路径
Enter the absolute path,
or press <ENTER> key to accept the default,
: #自定义安装路径
===============================================================================
Port
----
Please enter UnvDB listen port.
Port (Default: 5678): #自定义端口 默认5678
===============================================================================
Username
--------
Please enter UnvDB username.
Username (Default: unvdb): 123 #自定义用户名 默认unvdb
===============================================================================
Password
--------
Please enter password: #密码
Password again
--------------
Please enter password again : #第二次输入密码
===============================================================================
Ready To Install
----------------
It will start to install UnvDB.
Product Name: UnvDB v22.4
Data Folder: D:\unvdb\unvdb-data-0
Port: 123
Username: 123
You may quit the installer by typing "Exit",
or press <ENTER> key to continue: #确认信息是否无误
The files belonging to this database system will be owned by user "unvdb".
This user must also own the server process.
The database cluster will be initialized with locale "Chinese (Simplified)_China.936".
initdbEncoding "GBK" implied by locale is not allowed as a server-side encoding.
The default database encoding will be set to "UTF8" instead.
: could not find suitable text search configuration for locale "Chinese (Simplified)_China.936"
The default text search configuration will be set to "simple".
Data page checksums are disabled.
creating directory D:/unvdb/unvdb-data-0 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... windows
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Asia/Shanghai
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
===============================================================================
Installation Complete
---------------------
Congratulations. UnvDB has been successfully installed to:
D:\unvdb\unvdb-data-0
It is a demo version now, free use for 90 days.
To run as official version,
Contact UniversalDB(Shenzhen) Technology Co.,Ltd.
And copy license file to the installed path.
If you want to register UnvDB as service, please run
D:\unvdb\unvdb-data-0\service.bat
or start UnvDB without service, please run
D:\unvdb\unvdb-data-0\start.bat
D:\unvdb\unvdb-tx-2.4.21-win-x86_64>pause
请按任意键继续. . .
以上步骤执行完毕之后会退出setup 文件打开的cmd命令行。
启动unvdb
D:\unvdb>/unvdb/unvdb-data/start
D:\unvdb>D:\unvdb\unvdb-tx-2.4.21-win-x86_64\bin\ud_ctl.exe start -D
starting UnvDB as a demo version
waiting for server to start.... done
server started
D:\unvdb>pause
请按任意键继续. . .
第一行命令执行成功后显示下面几行就说明启动成功
关闭unvdb
D:\unvdb>/unvdb/unvdb-data/stop
D:\unvdb>D:\unvdb\unvdb-tx-2.4.21-win-x86_64\bin\ud_ctl.exe stop -D D:\unvdb\unvdb-data
waiting for server to shut down.... done
server stopped
D:\unvdb>pause
请按任意键继续. . .
也是第一行命令执行成功后显示下面几行就说明关闭成功了
连接unvdb数据库
D:\unvdb>/unvdb/unvdb-tx-2.4.21-win-x86_64/bin/ud_sql
ud_sql (2.4)
Type "help" for help.
unvdb=#\l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+-------+----------+-------------+-------------+-------------------
template0 | unvdb | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/unvdb +
| | | | | unvdb=CTc/unvdb
template1 | unvdb | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/unvdb +
| | | | | unvdb=CTc/unvdb
unvdb | unvdb | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 |
(3 rows)
可以看到我们已经连接上了数据库
注意:
以上的连接方式有一点问题,在启动页面启动之后连接到数据库了这没问题,但是还是在启动的命令行页面连接操作完退出数据库,数据库也会紧跟着关闭所以要单独开一个启动的命令行页面.