HAS的日记 - 2024年10月
type: channel
link: http://haser.top/index.php/2024/10/
description: 吃肉吃肉！
items: GBase 8s PHP8

GBase 8s PHP8
type: item
date: 2024-10-10T16:57:00+08:00
description: 1.安装完数据库之后需要安装 CSDK 解压 clientsdk_3.5.1_3X1.tar 然后执行 `[root@localhost csdk]# ./installclientsdk -i silent -DUSER_INSTALL_DIR=/opt/gbase -DLICENSE_ACCEPTED=TRUE ` DUSER_INSTALL_DIR 为数据库安装地址 参考 https://gbasedbt.com/index.php/archives/493/ 编译 pdo_gbasedbt.os 参考 https://gbasedbt.com/index.php/archives/68/ 注意 需要配置当前用户文件夹下面 的 bash_profile 文件 export GBASEDBTDIR=/opt/gbase export GBASEDBTSERVER=gbase01 export ONCONFIG=onconfig.$GBASEDBTSERVER export PATH=$GBASEDBTDIR/bin:$GBASEDBTDIR/sbin:$GBASEDBTDIR/sbin:${PATH} export GBASEDBTSQLHOSTS=/opt/gbase/etc/sqlhosts export SERVER_LOCALE=zh_CN.utf8 export DB_LOCALE=zh_CN.utf8 export CLIENT_LOCALE=zh_CN.utf8 export GL_USEGLU=1 # export NODEFDAC=yes export DBDATE="Y4MD-" export DBACCESS_SHOW_TIME=1 同时需要编辑 PHP-FPM 的 systemd 服务文件 [Service] Environment="GBASEDBTDIR=/opt/gbasedbt" Environment="ODBCINI=/etc/odbc.ini" Environment="LD_LIBRARY_PATH=/opt/gbasedbt/lib:/opt/gbasedbt/lib/cli:/opt/gbasedbt/lib/esql:$LD_LIBRARY_PATH"