{"id":50890,"date":"2024-04-09T17:19:55","date_gmt":"2024-04-09T09:19:55","guid":{"rendered":"http:\/\/jiloc.com\/?p=50890"},"modified":"2024-04-09T17:43:02","modified_gmt":"2024-04-09T09:43:02","slug":"php7%e5%85%bc%e5%ae%b9mysql_connect%e5%87%bd%e6%95%b0%e7%9a%84%e6%96%b9%e6%b3%95-%e5%9b%be%e6%96%87%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/jiloc.com\/50890.html","title":{"rendered":"PHP7\u517c\u5bb9mysql_connect\u51fd\u6570\u7684\u65b9\u6cd5 \u56fe\u6587\u6559\u7a0b"},"content":{"rendered":"\n

php<\/a>\u4ece7.0\u5f00\u59cb\u79fb\u9664\u4e86mysql_connect\u8fd9\u4e2a\u51fd\u6570<\/p>\n\n\n\n

Warning<\/strong><\/p>\n\n\n\n

This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the\u00a0MySQLi\u00a0or\u00a0PDO_MySQL\u00a0extension should be used. See also\u00a0MySQL: choosing an API\u00a0guide. Alternatives to this function include:<\/p>\n\n\n\n