Skip to content

Commit f44c562

Browse files
committed
updated README
1 parent 9d007a4 commit f44c562

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,27 @@ f = cs50.get_float();
1919
i = cs50.get_int();
2020
s = cs50.get_string();
2121
```
22+
23+
## Testing
24+
25+
1. Run `cli50` in `python-cs50`.
26+
1. Run `sudo su -`.
27+
1. Run `apt install -y libmysqlclient-dev mysql-server postgresql`.
28+
1. Run `pip3 install mysqlclient psycopg2-binary`.
29+
1. In `/etc/mysql/mysql.conf.d/mysqld.conf`, add `skip-grant-tables` under `[mysqld]`.
30+
1. In `/etc/profile.d/cli.sh`, remove `valgrind` function for now.
31+
1. Run `service mysql start`.
32+
1. Run `mysql -e 'CREATE DATABASE IF NOT EXISTS test;'`.
33+
1. In `/etc/postgresql/10/main/pg_hba.conf, change:
34+
```
35+
local all postgres peer
36+
host all all 127.0.0.1/32 md5
37+
```
38+
to:
39+
```
40+
local all postgres trust
41+
host all all 127.0.0.1/32 trust
42+
```
43+
1. Run `service postgresql start`.
44+
1. Run `psql -c 'create database test;' -U postgres.
45+
1. Run `touch test.db`.

0 commit comments

Comments
 (0)