微言碎语

微言碎语

蔡关荣 ·

oracle数据库PHP查询乱码,在php-fpm配置文件中加入以下几行,重启

env[ORACLE_HOME] =/usr/lib/oracle/21.1/client64/

env[LD_LIBRARY_PATH] =/usr/lib/oracle/21.1/client64/lib/

env[NLS_LANG] ="AMERICAN_AMERICA.AL32UTF8"