{"id":729,"date":"2010-05-02T07:06:00","date_gmt":"2010-05-02T11:06:00","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=729"},"modified":"2013-03-20T08:42:48","modified_gmt":"2013-03-20T12:42:48","slug":"fatal-error-call-to-undefined-function-mysql_connect","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/fatal-error-call-to-undefined-function-mysql_connect","title":{"rendered":"Fatal error: Call to undefined function mysql_connect()"},"content":{"rendered":"<p>When PHP is not compiled with Mysql, you receive &#8216;Call to undefined function mysql_connect&#8217; error message on your website<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">Fatal error: Call to undefined function mysql_connect()<\/span>\r\n <span style=\"color: #0000ff;\">in filename.php on line xx<\/span><\/pre>\n<\/blockquote>\n<p>In order to fix the issue, install the &#8220;php-mysql&#8221; package using yum<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum install php-mysql<\/span><\/pre>\n<\/blockquote>\n<p>Once installed, restart the httpd service<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># service httpd restart<\/span><\/pre>\n<\/blockquote>\n<p>To verify if the package is installed properly, execute<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># php -i | grep mysql<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When PHP is not compiled with Mysql, you receive &#8216;Call to undefined function mysql_connect&#8217; error message on your website<\/p>\n<p>Fatal error: Call to undefined function mysql_connect()<br \/>\n in filename.php on line xx<\/p>\n<p>In order to fix the issue, install the &#8220;php-mysql&#8221; package using yum<\/p>\n<p># yum install php-mysql<\/p>\n<p>Once installed, restart the httpd service<\/p>\n<p># service httpd restart<\/p>\n<p>To verify if the package is installed properly, execute<\/p>\n<p># php -i | grep mysql<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[826,829,828,827,831],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/729"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=729"}],"version-history":[{"count":11,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/729\/revisions"}],"predecessor-version":[{"id":2210,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/729\/revisions\/2210"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}