Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5545f0cd
authored
Aug 13, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update README
parent
393443dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
README.md
+1
-1
No files found.
README.md
View file @
5545f0cd
...
@@ -279,7 +279,7 @@ graph LR
...
@@ -279,7 +279,7 @@ graph LR
3.
`SQL_DSN`
:设置之后将使用指定数据库而非 SQLite,请使用 MySQL 或 PostgreSQL。
3.
`SQL_DSN`
:设置之后将使用指定数据库而非 SQLite,请使用 MySQL 或 PostgreSQL。
+
例子:
+
例子:
+
MySQL:
`SQL_DSN=root:123456@tcp(localhost:3306)/oneapi`
+
MySQL:
`SQL_DSN=root:123456@tcp(localhost:3306)/oneapi`
+
PostgreSQL:
`SQL_DSN=postgres://postgres:123456@localhost:5432/oneapi`
+
PostgreSQL:
`SQL_DSN=postgres://postgres:123456@localhost:5432/oneapi`
(适配中,欢迎反馈)
+
注意需要提前建立数据库
`oneapi`
,无需手动建表,程序将自动建表。
+
注意需要提前建立数据库
`oneapi`
,无需手动建表,程序将自动建表。
+
如果使用本地数据库:部署命令可添加
`--network="host"`
以使得容器内的程序可以访问到宿主机上的 MySQL。
+
如果使用本地数据库:部署命令可添加
`--network="host"`
以使得容器内的程序可以访问到宿主机上的 MySQL。
+
如果使用云数据库:如果云服务器需要验证身份,需要在连接参数中添加
`?tls=skip-verify`
。
+
如果使用云数据库:如果云服务器需要验证身份,需要在连接参数中添加
`?tls=skip-verify`
。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment