Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20240528-BJava
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
20240528-BJava
Commits
8810351c
Commit
8810351c
authored
May 29, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zmiana nazwy usera na 'alx'
parent
8c622d8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
0-admin.sql
PC22-BazyDanych/sql/hr-postgresql/0-admin.sql
+4
-4
wgraj_hr.bat
PC22-BazyDanych/sql/hr-postgresql/wgraj_hr.bat
+1
-1
No files found.
PC22-BazyDanych/sql/hr-postgresql/0-admin.sql
View file @
8810351c
-- Wykonac jako user postgres (administrator)
-- Pozostale pliki juz jako user
hr
-- Pozostale pliki juz jako user
alx
DROP
DATABASE
IF
EXISTS
hr
;
--DROP ROLE IF EXISTS
kurs
;
--DROP ROLE IF EXISTS
alx
;
--CREATE USER
kurs
PASSWORD 'abc123';
CREATE
DATABASE
hr
ENCODING
'utf-8'
OWNER
kurs
;
--CREATE USER
alx
PASSWORD 'abc123';
CREATE
DATABASE
hr
ENCODING
'utf-8'
OWNER
alx
;
PC22-BazyDanych/sql/hr-postgresql/wgraj_hr.bat
View file @
8810351c
...
...
@@ -3,6 +3,6 @@ set Path=%Path%;%PG_HOME%\bin
psql -h localhost -p 5432 -d postgres -U postgres -f 0-admin.sql
psql -h localhost -p 5432 -d hr -U
kurs
-f wgraj_hr.sql
psql -h localhost -p 5432 -d hr -U
alx
-f wgraj_hr.sql
pause
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment