我已经用libmysql构建了gearman。
* CPP Flags: -fvisibility=hidden
* LIBS:
* LDFLAGS Flags:
* Assertions enabled: no
* Debug enabled: no
* Warnings as failure: no
* Building with libsqlite3 no
* Building with libdrizzle yes
* Building with libmemcached yes
* Building with libpq no
* Building with tokyocabinet no
* Building with libmysql yes在我的gearmand.conf文件中,我参考了其他文档,添加了以下内容:
PARAMS="--queue-type=mysql \
--mysql-host=localhost \
--mysql-port=3306 \
--mysql-user=root \
--mysql-db=deliver \
--mysql-table=gearman"我可以用root连接到我的本地mysql,有一个名为"deliver“的数据库。当我运行gearmand服务器并添加新的作业和工人时,我没有看到表"gearman“被创建。
这些进程似乎运行得很好。我尝试过详细的日志记录和检查gearmand.log文件的模式,但没有任何与mysql相关的内容。我应该看哪里?
发布于 2015-11-03 19:53:12
尝试为mysql创建用户'gearman‘,并授予传送数据库的权限。并重新启动所有gearmand和mysql
https://stackoverflow.com/questions/33408346
复制相似问题