- 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.
- Learning Java Functional Programming
- 自己動手寫搜索引擎
- VMware vSphere 6.7虛擬化架構實戰指南
- Mastering Ubuntu Server
- 程序員修煉之道:通向務實的最高境界(第2版)
- Vue.js 2 Web Development Projects
- Android移動開發案例教程:基于Android Studio開發環境
- Learning Node.js for .NET Developers
- C語言程序設計實踐
- Learning Unreal Engine Game Development
- Learning D
- SAP Web Dynpro for ABAP開發技術詳解:基礎應用
- Isomorphic Go
- 一步一步學Spring Boot:微服務項目實戰(第2版)
- Django 3 Web應用開發從零開始學(視頻教學版)