update README.md

pull/2/head
Jacob Barthelmeh 2018-09-25 12:13:39 -06:00
parent e00bbef8b2
commit 59dc6bd026
1 changed files with 14 additions and 8 deletions

View File

@ -4,16 +4,22 @@ patch for mysql with updated wolfSSL
MYSQL 8.0.0 can be found at downloads.mysql.com/archives/community/.
Select version "8.0.0" and select platform "source code". This patch was done on the Generic Linux (Architecture Independent), Compressed TAR Archive bundle. mysql-8.0.0.tar.gz
To run the patch, copy wolfssl-mysql-8.0.0.patch into the same directory with current MYSQL source code.
1) To run the patch, copy wolfssl-mysql-8.0.0.patch into the same directory with current MYSQL source code.
From the terminal in the same direcotry containing current MYSQL source code run
```
patch -p1 < [directory of]/wolfssl-mysql-8.0.0.patch
```
Replace the mysql-8.0.0/extra/yassl directory with wolfssl and follow steps in wolfssl/IDE/MYSQL direcotry. Next to build using updated SSL make MYSQL with the command
2) Replace the mysql-8.0.0/extra/yassl directory with wolfssl. An example of replacing the directory would be "cp -r wolfssl-root mysql-8.0.0/extra/wolfssl". Remove any trace of yaSSL with "rm -rf mysql-8.0.0/extra/yassl".
3) Setup necessary wolfSSL CMake file by navigating to the directory mysql-8.0.0/extra/wolfssl/IDE/MYSQL and executing "./do.sh".
4) Next to build using updated SSL make MYSQL with the command
```
cmake . -DBUILD_CONFIG=mysql_release -DWITH_SSL=bundled (from inside the MYSQL source code directory)
```
Then run the standard make && sudo make install
5) Then run the standard make && sudo make install
Note: When building on Linux CFLAGS="-g1" may be needed to work around a Binutils bug. To build then it would be the command
```