Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix psotgresql init failed due to not exist same name db with user #1293

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Dec 9, 2020

Change-Id: I955fb0a474904470355b92dbc9bf3aa08ea4f61e
fixed: #1285

Change-Id: I955fb0a474904470355b92dbc9bf3aa08ea4f61e
fixed: #1285
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #1293 (db518b5) into master (f6f44bb) will increase coverage by 0.01%.
The diff coverage is 90.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1293      +/-   ##
============================================
+ Coverage     62.09%   62.10%   +0.01%     
- Complexity     5767     5773       +6     
============================================
  Files           377      377              
  Lines         31493    31498       +5     
  Branches       4413     4413              
============================================
+ Hits          19556    19563       +7     
  Misses         9946     9946              
+ Partials       1991     1989       -2     
Impacted Files Coverage Δ Complexity Δ
...u/hugegraph/backend/store/mysql/MysqlSessions.java 68.77% <85.71%> (+0.28%) 29.00 <6.00> (+2.00)
...ph/backend/store/postgresql/PostgresqlOptions.java 83.33% <100.00%> (+8.33%) 2.00 <1.00> (+1.00)
...h/backend/store/postgresql/PostgresqlSessions.java 77.50% <100.00%> (+0.57%) 10.00 <1.00> (+1.00)
...a/com/baidu/hugegraph/backend/query/Condition.java 78.75% <0.00%> (+0.36%) 32.00% <0.00%> (ø%)
...va/com/baidu/hugegraph/task/ServerInfoManager.java 70.78% <0.00%> (+0.56%) 51.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6f44bb...db518b5. Read the comment docs.

@@ -77,6 +77,7 @@ cassandra.password=
#jdbc.url=jdbc:postgresql://localhost:5432/
#jdbc.username=postgres
#jdbc.password=
#postgresql.connect_database=template1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer jdbc.connect_database

@Override
protected String connectDatabase() {
return this.config().get(PostgresqlOptions.POSTGRESQL_CONNECT_DATABASE);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to mysql

Change-Id: I6bbb41944699b388ac78e6ad21ee9a51dc8036f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用postgres存储,配置项不能指定database,这样不好吧
3 participants