Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine
2017-03-13 18:18
1581 查看
Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine
解决方法:PHP
5.5.0 起不再支持mysql_conn。你需要下载PHP 5.5以下的版本才可运行。
看了下源码,在ez_sql_mysql.php中有这样一行:
问度娘:“PHP 怎么配置 mysql_connect”
度娘答:“php高版本不再使用mysql_connect()来连接数据库”
原来如此,于是去UPUPW下了PHP5.4版本。运行成功。
如果在5.4版本,数据库启动失败。可能是端口被占用了。
不用管它,因为占用端口的可能是数据库本身。
如果被其它的占用——
打开cmd,输入 netstat -ano | findstr "3306"
如果有数据,则看到数据的每行的最后一列数字,那个是占用端口的进程。
比如:
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1024
TCP [::]:3306 [::]:0 LISTENING
1024
输入:taskkill /f /pid 1024即可终结。
重启数据库,运行成功。
解决方法:PHP
5.5.0 起不再支持mysql_conn。你需要下载PHP 5.5以下的版本才可运行。
看了下源码,在ez_sql_mysql.php中有这样一行:
if ( ! function_exists ('mysql_connect') ) die('<b>Fatal Error:</b> ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine');于是,mysql_connect是什么鬼???
问度娘:“PHP 怎么配置 mysql_connect”
度娘答:“php高版本不再使用mysql_connect()来连接数据库”
原来如此,于是去UPUPW下了PHP5.4版本。运行成功。
如果在5.4版本,数据库启动失败。可能是端口被占用了。
不用管它,因为占用端口的可能是数据库本身。
如果被其它的占用——
打开cmd,输入 netstat -ano | findstr "3306"
如果有数据,则看到数据的每行的最后一列数字,那个是占用端口的进程。
比如:
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1024
TCP [::]:3306 [::]:0 LISTENING
1024
输入:taskkill /f /pid 1024即可终结。
重启数据库,运行成功。
相关文章推荐
- [mysql] mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- Obtain Diesel engine Designer watches can be bought in the many most up-to-date styles and designs
- The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead [duplicate]
- 解决PHP中Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the futu
- php 报: 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the f
- 解决mysql_connect(): The mysql extension is deprecated and will beremoved in the future: use mysqli or
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- mysql_connect(): The mysql extension is deprecated and will be removed in the future
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Fatal error: Call to undefined function mysql_connect() in D:\www\phpinfo.php
- Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- subprogram or cursor is declared in a package specification and must be defined in the package body
- How to install LAMP (Apache, PHP and MySQL in Linux) using Yum