首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
[求助] swoole扩展安装成功,但是swoole_get_mysqli_sock找不到
一句话总结: ubuntu16.04 下 php7 和 php5.6.21, swoole扩展都安装成功,但是swoole_get_mysqli_sock都找不到. 不知道出了啥问题... 过程如下: ubuntu16.04 自带的php7, ./configure --enable-async-mysql=/usr/include/mysql --enable-async-redis --enable-async-httpclient --enable-sockets --enable-ringbuffer --with-php-config=/usr/bin/php-config 安装成功了, 但是swoole_get_mysqli_sock找不到 听说最好使用源码安装. 于是安装了php5.6.21: ./configure --prefix=/usr/local/php --with-config-file-path=/etc/php5/cli/ --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl 然后再安装swoole ./configure --enable-async-mysql=/usr/include/mysql --enable-async-redis --enable-async-httpclient --enable-sockets=/usr/local/php/include/php/ext/sockets --with-php-config=/usr/local/php/bin/php-config --enable-ringbuffer 同样安装成功了, php5 -i | grep swoole swoole swoole support => enabled swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On swoole.message_queue_key => 0 => 0 swoole.unixsock_buffer_size => 8388608 => 8388608 swoole.use_namespace => Off => Off 但是swoole_get_mysqli_sock还是找不到...
发布于8年前 · 1 次浏览 · 来自
提问
小
小锋
一句话总结: ubuntu16.04 下 php7 和 php5.6.21, swoole扩展都安装成功,但是swoole_get_mysqli_sock都找不到. 不知道出了啥问题... 过程如下: ubuntu16.04 自带的php7, ./configure --enable-async-mysql=/usr/include/mysql --enable-async-redis --enable-async-httpclient --enable-sockets --enable-ringbuffer --with-php-config=/usr/bin/php-config 安装成功了, 但是swoole_get_mysqli_sock找不到 听说最好使用源码安装. 于是安装了php5.6.21: ./configure --prefix=/usr/local/php --with-config-file-path=/etc/php5/cli/ --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl 然后再安装swoole ./configure --enable-async-mysql=/usr/include/mysql --enable-async-redis --enable-async-httpclient --enable-sockets=/usr/local/php/include/php/ext/sockets --with-php-config=/usr/local/php/bin/php-config --enable-ringbuffer 同样安装成功了, php5 -i | grep swoole swoole swoole support => enabled swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On swoole.message_queue_key => 0 => 0 swoole.unixsock_buffer_size => 8388608 => 8388608 swoole.use_namespace => Off => Off 但是swoole_get_mysqli_sock还是找不到...
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2017-10-12
小
小歪
此函数需要增加 --enable-async-mysql 参数来开启。 另外 1.8.6 已经移除了这个函数,内置了swoole_mysql类支持异步MySQL
赞
0
回复