wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
yum localinstall mysql80-community-release-el7-3.noarch.rpm
yum install mysql-community-server
systemctl start/stop/restart/status mysqld.service
sudo grep 'temporary password' /var/log/mysqld.log
mysql -uroot -p
alter user 'root'@'localhost' identified by 'New_password';
yum install -y openssl-devel gcc gcc-c++ kernel-devel mysql-devel autoconf GNU libtool
kbengine是支持MySQL5.7的,如果是MySQL8.0的会找不到头文件,所以得移动MySQL8.0的头文件
cp /usr/include/mysql/mysql/udf_registration_types.h /usr/include/mysql/udf_registration_types.h
cd到src文件夹下
chmod -R 777 .
make
编译成功之后配置好kbengine.xml的ip参数和数据库参数就行了
网友评论