LNMP安装的新环境,连接Mysql操作时,报此类问题的:FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in xxx

解决方法:

1.尝试检查PHP MySQL扩展模块是否正在加载

<?php
    phpinfo();
?>

2.如果没有,打开PHP的配置文件php.ini,去除前面的;

extension=php_mysql.dll

3.重启PHP服务,即可解决此类问题

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-12-07
  • 2021-10-25
  • 2021-08-04
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2021-12-31
  • 2021-05-26
  • 2021-12-25
  • 2022-01-13
相关资源
相似解决方案