- 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.
- 從零開始構(gòu)建企業(yè)級(jí)RAG系統(tǒng)
- Advanced Machine Learning with Python
- Apache Oozie Essentials
- C#程序設(shè)計(jì)實(shí)訓(xùn)指導(dǎo)書
- 摩登創(chuàng)客:與智能手機(jī)和平板電腦共舞
- 垃圾回收的算法與實(shí)現(xiàn)
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- Learning AndEngine
- 用Flutter極速構(gòu)建原生應(yīng)用
- Linux命令行與shell腳本編程大全(第4版)
- Julia高性能科學(xué)計(jì)算(第2版)
- Access 2010中文版項(xiàng)目教程
- Everyday Data Structures
- Delphi開發(fā)典型模塊大全(修訂版)
- iOS開發(fā)項(xiàng)目化入門教程