- 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.
- Django+Vue.js商城項目實戰(zhàn)
- Vue.js前端開發(fā)基礎(chǔ)與項目實戰(zhàn)
- 簡單高效LATEX
- 深入淺出WPF
- Scratch 3.0少兒編程與邏輯思維訓(xùn)練
- Banana Pi Cookbook
- Teaching with Google Classroom
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- CoffeeScript Application Development Cookbook
- Raspberry Pi Robotic Blueprints
- R語言:邁向大數(shù)據(jù)之路(加強版)
- ActionScript 3.0從入門到精通(視頻實戰(zhàn)版)
- Mudbox 2013 Cookbook
- Apache Solr PHP Integration