我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在xampp上安装mysql到php5?

I keep getting this error:

Fatal error: Call to undefined function mysql_connect();

After searching online I learnt that mysql is not included in this new version.

I am using xampp with PHP versions: 5.5.33 on windows server 2012 R2. I used phpinfo() function to search for MySQL but I can only find MySQLi, MySQL and and PDO but nothing for MySQL.

I need help to activate MySQL.

Much appreciated!

It's because mysql is already deprecated in PHP v5.5.x

http://php.net/manual/en/migration55.deprecated.php

Use mysqli instead.

近期文章

  • 如何在自定义小部件中添加wp_editor
  • 节点从php文件中获取字符串/值
  • 令牌认证休息API会话
  • PHP:在一个表和另一个表中搜索
  • 导航菜单不工作Bootstrap
  • PHP:未定义的偏移量:3 - preg_match_all
  • 在mysql服务器列中查询JSON
  • 在“>”运算符之后不解析PHP文件
  • HttpClient POST会生成GET
  • 在php中循环file_get_contents X次
  • PHP密码_hash每次都会更改[关闭]
  • 提取GPX文件的第一个coords
  • 如何在mysql / php中处理NULL值?
  • 如何获得上个月和下个月?
  • 表单:INSERT到数据库,不工作
  • 具有空白列表条目的Foreach范围
  • 使用JS无法正常工作的级联下拉列表
  • Doctrine Criteria Matching的问题
  • 将2个带有正则表达式的preg_split应用于文本
  • 更改Google Datastore api版本

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华