Polish | |||||
---|---|---|---|---|---|
PostgreSQLDockerW celu postawienia bazy należy najpierw ściągnąć dockera. I zip'a zawierającego sql, properties i plik .yml postgres.zip. Następnie go wypakować. Należy wprowadzić jedną zmianę do pliku compose.
Następnie otwieramy folder postgres w terminalu i wpisujemy 'sudo docker compose up'. Połączenie z bazą możemy przetestować w DBeaver, konfiguracja połączenia znajduję się w folderze postgres/db_properties/posgres.properties. InstalacjaNależy pobrać aktualną wersję bazy danych PostgreSQL o numerze 9.4 ze strony: https://www.postgresql.org/download/ Podczas instalacji możemy zachować domyślne ustawienia: port 5432, login: postgres, hasło postgres. Stworzenie bazy danychAby stworzyć bazę danych musimy uruchomić program pgAdmin III - powinien zostać zainstalowany wraz z PostgreSQL. Klikamy dwa razy na nasz serwer, a następnie prawym przyciskiem myszy na pole "Bazy danych" Z listy wybieramy "Nowa baza danych". W nowym oknie uzupełniamy pola odpowiadające za nazwę bazy danych i właściciela, po czym zatwierdzamy przyciskiem OK. |
English | |||||
---|---|---|---|---|---|
PostgreSQLDockerIn order to put up the database, first download docker. And zip containing sql, properties and .yml file postgres.zip. Then extract it. One change should be made to the compose file.
Next, open the postgres folder in terminal and type 'sudo docker compose up'. You can test the connection to the database in DBeaver, the connection configuration is in the postgres/db_properties/posgres.properties folder. InstallationYou need to download the current version of the PostgreSQL database with the number 9.4 from the website: https://www.postgresql.org/download/ During the installation you can keep the default settings: port 5432, login: postgres, password postgres. Creating a databaseTo create a database, you need to run pgAdmin III - it should have been installed with PostgreSQL. Double-click on our server, then right-click on the "Databases" box. Select "New database" from the list. In the new window, fill in the fields responsible for the database name and owner, and confirm with OK. |