- Continuous Integration,Delivery,and Deployment
- Sander Rossel
- 198字
- 2021-07-02 15:42:14
Configuring PostgreSQL
The first thing we need to do is create a user and database that SonarQube can use. Just for the record, SonarQube can work with SQL Server, MySQL, and Oracle too, but PostgreSQL is always a good (and free) choice.
On Ubuntu, open the PostgreSQL terminal and run the script to create a sonar user and then the script to create a database, making the sonar user the owner:
sudo -u postgres psql
\create user sonar with password 'sonar';
\create database sonar with owner sonar encoding 'UTF8';
\q
The UTF8 encoding is NOT optional, so be sure to include it. Also, don't forget the semicolons at the end of your statements.
On Windows, you can also create a user and database using the command prompt. It only differs from Ubuntu in the first line:
cd "C:\Program Files\PostgreSQL\9.5\bin\psql" -U postgres
[enter password]
\create user sonar with password 'sonar';
\create database sonar with owner sonar encoding 'UTF8';
\q
If you installed PostgreSQL in another folder, you should change that in the command. You may, of course, also create a user and database using pgAdmin. Just right-click on the Login/Group Roles node and create. Same for the new database.
- Cocos2D-X權(quán)威指南(第2版)
- 自己動手實現(xiàn)Lua:虛擬機、編譯器和標準庫
- 深入理解Django:框架內(nèi)幕與實現(xiàn)原理
- Mastering Entity Framework
- Python機器學(xué)習(xí)經(jīng)典實例
- 零基礎(chǔ)入門學(xué)習(xí)Python
- SharePoint Development with the SharePoint Framework
- 從0到1:Python數(shù)據(jù)分析
- OpenStack Orchestration
- Access 2010數(shù)據(jù)庫應(yīng)用技術(shù)(第2版)
- 深入實踐Kotlin元編程
- Struts 2.x權(quán)威指南
- Android系統(tǒng)下Java編程詳解
- iOS開發(fā)項目化入門教程
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全