by Kateryna Fomenko and Deanna Hartsook
###Installing GMP
-
Download gmp from gmplib.org and install it using the following commands
./configure make make check sudo make install
- Compile SUM_HE shared library
- Go into udf directory
- Run the following commands:
```
>> make
>> sudo cp libsum.so /usr/lib/mysql/plugin/
>> sudo service mysql restart
```
-
Set up Database
- Go into database directory
- Run following commands:
>> mysql -u root -p >> source create.sql >> use project; >> GRANT ALL ON project.* TO root@'%' IDENTIFIED BY 'cs174$' >> source createUDF.sql- Go to directory: /etc/mysql
- Open mysql.cnf
- Find where it says "bind-address", and update the ip address to be the AWS localhost IP.
=============================================================
-
Compile the encrypt/decrypt programs (on local computer)
- Go into encryption directory
- Run the following commands:
>> make encrypt >> make decrypt -
Run the python client (on local computer)
- Go into commandline directory
- Open commandline.py, and update the information in the config object, on line 6.
- Run the following command:
>> python commandline.py[At this point you can begin entering queries in the form specified in the final_project.pdf ]
- To exit the client run the following command:
>> exit