树莓派安装MYSQL5.7和PHP7 用于WORDPRESS

下载:http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-boost-5.7.17.tar.gz
不用下载了boost了

apt-get install libncurses5-dev cmake

cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql -DMYSQL_DATADIR=/data/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=nobody -DDOWNLOAD_BOOST=1 -DWITH_BOOST=./boost/boost_1_59_0/

chown -R nobody. /data/mysql/
/opt/mysql/bin/mysqld –initialize –user=nobody
/opt/mysql/bin/mysqld_safe –user=nobody&

PHP7编译参数