phpMyAdmin一直提示Warning.........mysqli_init()什么错误,且非常缓慢

finemi 2015-02-02 09:46:08




不知道是不是配置的问题,我将mysql全部重装之后还是如此,用mysql的官方workbench没什么问题。
php中直接执行mysqli_init()也是报Property access is not allowed yet的错误。。。
...全文
1019 16 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
罗西南多 2017-09-11
  • 打赏
  • 举报
回复
引用 14 楼 finemi 的回复:
[quote=引用 13 楼 zjy1516zjy 的回复:] 不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。 楼主可以参考下。
果然如此!!!! 太感谢了!! 把 xdebug.auto_trace = On 和 xdebug.profiler_enable = On注释掉就OK了,不知道这两个配置项是干嘛的 [/quote] 感谢,确实是xdebug导致的问题,我修改xdebug配置之后就正常了。
IMONS 2017-05-25
  • 打赏
  • 举报
回复
引用 13 楼 zjy1516zjy 的回复:
不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。 楼主可以参考下。
特意回复表示感谢。
七界之主 2015-06-21
  • 打赏
  • 举报
回复
不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。 楼主可以参考下。
finemi 2015-06-21
  • 打赏
  • 举报
回复
引用 13 楼 zjy1516zjy 的回复:
不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。 楼主可以参考下。
果然如此!!!! 太感谢了!! 把 xdebug.auto_trace = On 和 xdebug.profiler_enable = On注释掉就OK了,不知道这两个配置项是干嘛的
finemi 2015-05-15
  • 打赏
  • 举报
回复
引用 8 楼 zy205817 的回复:
贴出你的13行代码悄悄
没有代码呀,,就是phpMyAdmin一打开就错误
码无边 2015-05-15
  • 打赏
  • 举报
回复
贴出你的13行代码悄悄
zsf8764 2015-05-15
  • 打赏
  • 举报
回复
请问解决了吗,我也遇到同样的问题了
finemi 2015-05-15
  • 打赏
  • 举报
回复
引用 10 楼 xuzuning 的回复:
自己写的代码会出错吗? 使用的是什么集成环境? mysql 的版本是多少?
没有用集成的,我自己装的,apache2.4 mysql 5.6 和php5.6.4
finemi 2015-05-15
  • 打赏
  • 举报
回复
引用 10 楼 xuzuning 的回复:
自己写的代码会出错吗? 使用的是什么集成环境? mysql 的版本是多少?
mysql 5.6.22,我一般用的PDO没问题,mysqli基本的函数也没问题,但是用mysqli_init()就报错了,同帖子上贴的那个warning一样。。。 这个函数我还真不知道干啥的貌似没用呀,但是phpMyAdmin里面好像用到了这个函数,我估计就是mysql_init()这里出问题了
xuzuning 2015-05-15
  • 打赏
  • 举报
回复
自己写的代码会出错吗? 使用的是什么集成环境? mysql 的版本是多少?
李睿_Lee 2015-02-05
  • 打赏
  • 举报
回复
if the statement was not prepared properly, or not prepared at all 这个提示才是关键 This parameter (and presumably any other parameter in mysqli_stmt) will raise an error with the message "Property access is not allowed yet" if the statement was not prepared properly, or not prepared at all. To prevent this, always ensure that the return value of the "prepare" statement is true before accessing these properties.
finemi 2015-02-04
  • 打赏
  • 举报
回复
引用 1 楼 fdipzone 的回复:
有使用prepare嗎? This parameter (and presumably any other parameter in mysqli_stmt) will raise an error with the message "Property access is not allowed yet" if the statement was not prepared properly, or not prepared at all. To prevent this, always ensure that the return value of the "prepare" statement is true before accessing these properties.
不太懂。。。 不知道Property access is not allowed yet到底是在说什么~~
finemi 2015-02-04
  • 打赏
  • 举报
回复
引用 2 楼 zhangbin1988 的回复:
是不是你的mysqli的扩展没有打开?
php中配置好了的,用phpinfo()查看也是有mysqli扩展的。
ayzen1988 2015-02-03
  • 打赏
  • 举报
回复
是不是你的mysqli的扩展没有打开?
傲雪星枫 2015-02-03
  • 打赏
  • 举报
回复
有使用prepare嗎? This parameter (and presumably any other parameter in mysqli_stmt) will raise an error with the message "Property access is not allowed yet" if the statement was not prepared properly, or not prepared at all. To prevent this, always ensure that the return value of the "prepare" statement is true before accessing these properties.
ChanKalam 2015-02-03
  • 打赏
  • 举报
回复
同二楼....

21,894

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧