-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
334c8b1
commit fc08fd9
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## INSTRUCTIONS TO SET UP POSTGRES DATABASE | ||
|
||
These were the steps followed on a Mac system to install postgres and configure it: | ||
|
||
1. Install postgres | ||
``` brew install postgresql``` | ||
2. Start PostgresSQL: | ||
```brew services start postgressql``` | ||
3. Create a user and database: | ||
|
||
Username: evadb | ||
|
||
Password: password | ||
|
||
- ```psql postgres``` | ||
- ```CREATE ROLE evadb WITH LOGIN PASSWORD 'password';``` | ||
- ```ALTER ROLE evadb CREATEDB;``` | ||
- ```\q``` | ||
4. Login as your new user | ||
|
||
``` psql -d postgres -U evadb``` | ||
5. create the database evadb | ||
|
||
```CREATE DATABASE evadb;``` | ||
6. ```pip install psycopg2``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters