File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,27 @@ f = cs50.get_float();
1919i = cs50.get_int();
2020s = 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 ` .
You can’t perform that action at this time.
0 commit comments