- 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.
- Unity 2020 By Example
- JavaScript前端開發模塊化教程
- Java入門經典(第6版)
- Java高手真經(高級編程卷):Java Web高級開發技術
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- Julia機器學習核心編程:人人可用的高性能科學計算
- Instant Automapper
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- Developing Java Applications with Spring and Spring Boot
- Java 9:Building Robust Modular Applications
- C語言程序設計實驗指導與習題精解
- 計算思維與Python編程
- INSTANT Lift Web Applications How-to
- Mastering Magento Theme Design
- Building E-Commerce Solutions with WooCommerce(Second Edition)