Coder Social home page Coder Social logo

Comments (10)

AaronCXZ avatar AaronCXZ commented on May 1, 2024

一样的问题,还没有解决

from bk-cmdb.

Fchrisqing avatar Fchrisqing commented on May 1, 2024

可以检查一下config.php中配置的BASE_URL和nginx中配置的域名是否一致

from bk-cmdb.

Gourgii avatar Gourgii commented on May 1, 2024

是一致的。

from bk-cmdb.

huangmeng4520 avatar huangmeng4520 commented on May 1, 2024

php index.php /cli/Init/initUserData 看程序日志有没有抛错,另外用php -m|grep mysql 看下mysql是安装了扩展,这个命令执行之后,数据库里面是有数据的。如果没有数据证明没有初始化成功

from bk-cmdb.

owenlxu avatar owenlxu commented on May 1, 2024

把production/constants/php中的配置截取我们看下吧

from bk-cmdb.

Gourgii avatar Gourgii commented on May 1, 2024

image

from bk-cmdb.

owenlxu avatar owenlxu commented on May 1, 2024

合并一下之前的issue,确定下session的读写路径有没权限

from bk-cmdb.

Gourgii avatar Gourgii commented on May 1, 2024

读写权限有的,现在的问题是我执行/usr/local/php/bin/php index.php /cli/Init/initUserData 无返回,而且数据库也没有数据,检查数据库配置没有问题,麻烦大神帮忙分析下问题

from bk-cmdb.

raindylong avatar raindylong commented on May 1, 2024

@Gourgii , 楼上@huangmeng4520 大神已经提示了, 运行php -m| grep mysql 看看有木有安装mysql扩展,如下:
~$ /usr/bin/php -m | grep mysql
mysql
mysqli
mysqlnd
pdo_mysql

必须要有"mysql"这个模块,bk-cmdb应该是用旧版本mysql驱动写的,还不支持其他新版本mysql驱动。

from bk-cmdb.

Gourgii avatar Gourgii commented on May 1, 2024

谢谢了,重新编译了个5.6.9的php搞定了,因为我这边自己安装的php7.1,所有没有get到这个梗,多谢各位大神@Gourgii @huangmeng4520 @raindylong @ALL

from bk-cmdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.