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

php中文网
发布: 2016-06-23 13:32:18
原创
1371人浏览过





不知道是不是配置的问题,我将mysql全部重装之后还是如此,用mysql的官方workbench没什么问题。
php中直接执行mysqli_init()也是报Property access is not allowed yet的错误。。。

提客AI提词器
提客AI提词器

「直播、录课」智能AI提词,搭配抖音直播伴侣、腾讯会议、钉钉、飞书、录课等软件等任意软件。

提客AI提词器 64
查看详情 提客AI提词器

回复讨论(解决方案)

有使用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.

是不是你的mysqli的扩展没有打开?

同二楼....

是不是你的mysqli的扩展没有打开?


php中配置好了的,用phpinfo()查看也是有mysqli扩展的。

有使用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到底是在说什么~~

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.

请问解决了吗,我也遇到同样的问题了

贴出你的13行代码悄悄

贴出你的13行代码悄悄


没有代码呀,,就是phpMyAdmin一打开就错误

自己写的代码会出错吗?

使用的是什么集成环境?
mysql 的版本是多少?

自己写的代码会出错吗?

使用的是什么集成环境?
mysql 的版本是多少?


mysql 5.6.22,我一般用的PDO没问题,mysqli基本的函数也没问题,但是用mysqli_init()就报错了,同帖子上贴的那个warning一样。。。 这个函数我还真不知道干啥的貌似没用呀,但是phpMyAdmin里面好像用到了这个函数,我估计就是mysql_init()这里出问题了

自己写的代码会出错吗?

使用的是什么集成环境?
mysql 的版本是多少?


没有用集成的,我自己装的,apache2.4 mysql 5.6 和php5.6.4

不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。
楼主可以参考下。

不知楼主的问题现在是否解决。我最近几天也发现了这个问题,今天排查了一下,发现是之前安装的xdebug插件导致的,把php.ini中xdebug的配置项中的trace和profiler去掉之后,重启服务器就恢复正常了。
楼主可以参考下。


果然如此!!!! 
太感谢了!!

xdebug.auto_trace = On 和 xdebug.profiler_enable = On注释掉就OK了,不知道这两个配置项是干嘛的

PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号