- Locate the correct
php.ini
file (checkphpinfo()
if in doubt) Locate the line saying
extension=php_mysql_libmysql.dll
and make sure it is uncommented (no
;
in front)- Save
- Restart web server
"call to undefined function mysql_connect" Code Answer
By
chapinkapa
on December 25 2022
Answers related to “call to undefined function mysql_connect”
- Undefined function mysql_connect()
- PHP Fatal error: Call to undefined function mssql_connect()
- Call to undefined function apache_request_headers()
- PHP Fatal error: Call to undefined function mysqli_stmt_get_result()
- Call to undefined method PDO::execute()
- wordpress plugin -> Call to undefined function wp_get_current_user()
- “Call to undefined function sqlsrv_connect()” when trying to connect to Azure DB from PHP
- Call to undefined function oci_connect, php_oci8_12c.dll, windows 8.1, php5.6.6
- PHP Fatal error: Call to undefined function mssql_query()
- Is it possible in PHP to prevent “Fatal error: Call to undefined function”?
- Call to undefined function curl_init() error in wamp 2.2
- PHP Fatal error: Call to undefined function imagettftext()
- “call to undefined function” error when calling class method
- Call to undefined method PDO::bindParam()
- Call to undefined method Illuminate\Database\Query\Builder::lists() when seeding after updating to Laravel 5.3
- Fatal error: Call to undefined function random_bytes()
- Call to undefined function mysqli()
- PHP: Call to undefined function gzdecode()
- Call to undefined function exif_imagetype()
- PHP Fatal Error: Call to undefined function password_verify()
- Call to undefined function filter_var()
- Fatal error: Call to undefined method GuzzleHttp\Client::request() with Guzzle 6
- cakephp datasource Call to undefined method
- Call to undefined function oci_connect, php_oci8_11g.dll , windows 10, php5.6.24
- PHP Call to undefined function
- can't find mcrypt => Call to undefined function Laravel\mcrypt_create_iv()
- How to solve “call to undefined function domxml_new_doc()…”
- Fatal error: Call to undefined function ldap_connect() in ubuntu
- WordPress and Call to undefined function add_menu_page()
- Fatal error: Call to undefined function apply_filters() in /public_html/wp-includes/load.php on line 317
- Fatal error: Call to undefined function mcrypt_get_block_size()
- Fatal error: Call to undefined function domxml_new_doc()
- Fatal error: Call to undefined method PDOStatement::lastInsertId()
- PHP, Fatal error: Call to undefined method, why?
- Call to undefined function curl_file_create() [file handling]
- Fatal error: Call to undefined function NOW()
- call to undefined function mb_strimwidth
- Call to undefined method JController::getInstance()
- Call to undefined method Illuminate\Database\Query\Builder::notify()
- Call to undefined function pcntl_fork() php-fpm nginx
- Call to undefined function MYSQL_NUM_ROWS()
- WordPress Plugin: How to resolve “Call to undefined function add_action() as well as add_action()”?
- Fatal error: Uncaught Error: Call to undefined function bcadd()
- Call to undefined function mb_strlen() on PHP 7 Ubuntu 14.04
- PHPUnit - Call to undefined function curl_init() error
- Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header() in RevalidateBackHistory.php
- Fatal error: Call to undefined function tally()
- PHP Fatal error: Call to undefined function?
- Wordpress plugin - call to undefined function finfo_open()
- PHPUnit TDD, PHP Fatal error: Call to undefined method
- Uncaught Error: Call to undefined function NOW()
- Fatal error: Call to undefined function phpinclude()
- Call to undefined function 'init_set'
- Call to member function query() on Null
- Uncaught Error: Call to undefined function sqlsrv_connect()
- Fatal error: Call to undefined function getsqlvaluestring()
- PHP Codeigniter Call to undefined method CI_DB_sqlsrv_driver::result()
- Call to undefined function now()
- Call to undefined function mysqli_connect(). Tried solution from other similar questions but no luck
- How to solve Call to undefined method Illuminate\Database\Query\Builder::notify()? (laravel 5.3)
- Fatal error: Call to a member function count() on a non-object in not solved
- Call to undefined method mysqli_result::fetch()
- Call to undefined method Illuminate\Database\Schema\MySqlBuilder::defaultStringLength()
- Call to undefined method (laravel 5.2)
- Fatal error: Call to undefined function ftp_ssl_connect()
- Fatal error: Call to undefined method mysqli_stmt::query()
- Can I/How to… call a protected function outside of a class in PHP
- Fatal error: Call to undefined function: imagecreate()
- Call to undefined function Symfony\Polyfill\Mbstring\iconv_strlen()
- Call to undefined function mcrypt_decrypt() - even when php5-mcrypt installed
- Call a PHP function after onClick HTML event
- Call Mongodb stored function from PHP7
- Laravel - Call to undefined method Illuminate\Database\Query\Builder::user()
- PHP Fatal error: Call to undefined function when function is defined
- Can JavaScript call a PHP function directly, or do I need separate php file to call the function?
- Smarty: is it possible to call a PHP function (from the controller class) inside the template?
- Fatal error: Call to a member function prepare() on null
- PHP Error: Fatal error: Call to undefined method
- Call to undefined function finfo_open()
- mysql is enabled in php.ini but I'm still getting Call to undefined function mysql_connect()
- php - Fatal error: Call to undefined function mcrypt_get_iv_size() in AppServ
- Uncaught Error: Call to undefined function mysql_connect()
- Laravel: Call to undefined function Symfony\Component\Console\mb_convert_variables()?
- Call to undefined function curl_version
- Trying to call method: undefined function error
- Error “Call to undefined method stdClass::delete()” while trying delete a row in Laravel
- BigQuery PHP Call to undefined method Google_Client::setAssertionCredentials()
- Call to undefined function mysqli_result()
- Call to undefined method after upgrading to PHP 5.4.0
- “Fatal error: Call to undefined function socket_create()” even though enabled in php.ini
- Fatal error: Uncaught Error: Call to undefined function curl_version() - Localhost Dev
- Fatal error: Call to undefined method PDO::close()
- Error: Call to undefined method CodeIgniter\Database\MySQLi\Result::paginate()
- Fatal error: Call to undefined function checkdnsrr()
- Call to undefined method Route::name()
- “Call to undefined .. mssql_connect” when using PHP in IIS?
- Woocommerce error: Call to undefined function array_replace_recursive()
- Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::get_result()
- Apache/PHP undefined function curl_init()
- Laravel Call to undefined method App\\ Model ::mapInto(),...
- Call to undefined method App::uses() - cakephp - CakeEmail
- wordpress: Fatal error: Call to undefined function is_wp_error() in wp-includes/load.php on line 339
- Trying to call a protected function from outside the class
- PHP 5.4.7,Apache,win7,sqlite. Error info: Call to undefined function sqlite_open()
- Fatal error: Call to undefined method mysqli::num_rows()
- Call to undefined method DB_CONNECT::query()
- Call to undefined Builder::save() when saving a polymorphic relationship
- Call to undefined method from composer added package
- Call to undefined function __() in wp-db.php
- Call to undefined function sqlsrv_connect()
- Fatal error: Call to undefined method connectDB::prepare()
- Call to undefined function mssql_connect()
- Uncaught Error: Call to undefined function curl_init()
- Fatal error: Call to undefined function file_exist() php
- Call to undefined method mysqli_stmt::get_result
- “unpacking” a tuple to call a matching function pointer
- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function sqlsrv_connect()
- Call to undefined function curl_init().?
- PHP Fatal error: Call to undefined function json_decode()
- Fatal error: Call to undefined function mb_detect_encoding()
- C++ Call Pointer To Member Function
- A call to PInvoke function '[…]' has unbalanced the stack
- “Undefined function 'function_name' for input arguments of type 'double'.”
- Why is using the function name as a function pointer equivalent to applying the address-of operator to the function...
- “Call to undefined function mysql_connect()” after upgrade to php-7
- How to call C# DLL function from VBScript
- Call to undefined function __() error - phpMyAdmin
- Fatal error: Call to undefined function mysqli_result()
- Attempt to call an undefined function glutInit
- Using `std::function<void(…)>` to call non-void function
- Fatal error: Call to undefined method mysqli_result::fetch_all()
- How to compare variables to undefined, if I don’t know whether they exist?
- Fatal error: Call to undefined function socket_create()
- Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs
- Call to undefined method Maatwebsite\Excel\Excel::load()
- file_get_html displays Fatal Error Call to undefined function
- Call to undefined function odbc_connect() message while connecting SAP Hana database
- Can I set variables to undefined or pass undefined as an argument?
- Fatal error: Call to undefined function mb_strlen()
- How do I call a pointer-to-member-function?
- Call to undefined function odbc_connect() php 7
- Fatal error: Call to undefined function openssl_random_pseudo_bytes()
- Call to undefined method DOMDocument::getElementsByClassName()
- Fatal error: Call to undefined method mysqli_stmt::get_result()
- PyOpenGL :: OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for...
- Call to undefined function curl_init() even it is enabled in php7
- Fatal error: Call to undefined function pg_connect()
- call list of function using list comprehension
- Fatal error: Call to undefined function mysqli_connect()
- Fatal error: Call to undefined function mcrypt_encrypt()
- Call to undefined function curl_init() - with WAMP
- Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2
- Fatal error: Call to undefined function: ldap_connect()
- Strange ambiguous call to overloaded function error
- A call to PInvoke function has unbalanced the stack. This is likely because the managed PInvoke .. (.NET 4)
- PHPunit Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration()
- PHP call Class method / function
- How to call a PHP function in JavaScript?
- Determining the Parameter Types of an Undefined Function
- phpMyAdmin Fatal error: Call to undefined function __()
- Fatal error: Call to undefined function mssql_connect() or sqlsrv_connect() in xampp
- Undefined function in MATLAB
- What happens in assembly language when you call a method/function?
- Call functions from function inside an object (object literal)
- Codeigniter error: Call to undefined function mysql_pconnect()
- How to pass the value 'undefined' to a function with multiple parameters?
- Laravel, Call to undefined function Database\Seeders\factory()
- Ways to call a Javascript function using the value of a string variable?
- How can I call a sqlserver function from VB.net(or C#) ? Is there some syntax like stored procedure?
- Fatal error: Call to undefined function form_open() in c
- Pass and call a member function (boost::bind / boost::function?)
- Why is this call to member function ambiguous?
- C++11 auto, std::function and ambiguous call to overloaded function
- How to force matlab to call a regular function rather than class method when they are overloaded?
- register_shutdown_function not catch Fatal error: (Uncaught Error unset static property example, Call to undefined...
- Xcode 10 call to unavailable function std::visit
- Call to undefined method Illuminate\Routing\Route::get()
- How to call Scalar-valued function from LINQ to Entities server-side
- Call to undefined method Illuminate\Database\Query\Builder::associate()
- Wordpress: PHP Fatal error: Call to undefined function get_option()
- 'fabs' : ambiguous call to overloaded function when using templates
- Ambiguous call to overloaded function - std::to_string
- How to resolve ambiguity of call to overloaded function with literal 0 and pointer
- QT no matching function for call to 'MainWindow::connect()
- Call to undefined function convert_to_screen()
- Why can't a class method call a global function with the same name?
- Can I call a C# function by a SQL Server trigger?
- Forward undefined number of arguments to another function
- JavaScript IE appendChild() - Unexpected call to method or property access
- Call to undefined method Illuminate\Database\Query\Builder::links()
- Call to undefined function mime_content_type(), can't change server settings
- Sentry 2 Facebook Oauth On Laravel says Call to undefined method ::profile()
- Call to undefined method mysqli_stmt::get_result() AND mysqlnd installed
- Call to undefined function from another php file
- Passing this from .call() to arrow function
- Libsodium “Call to undefined function sodium_randombytes_buf”
- call variable jQuery function
- Call to undefined method Illuminate\Database\Query\Builder::save()?
- How to call a function using pointer-to-member-function
- jQuery.getScript() fails to load function
- Getting 'Fatal error: Call to undefined function' when using a function inside an if statement?
- Javascript: passing a not defined variable to a function
- Joomla how to make an ajax call to an helper.php module
- Two ways of immediate call to anonymous function (function(d){ }() ); and (function(x){ } )();
- Why does firebug say my function call is “undefined”
- use strict leads to undefined function
- Python: How to call a long function containing hundreds of lists in a short form
- Jquery: Return the value of a ajax call to caller function?
- Why does it return a random value other than the value I give to the function?
- Why does the C++ linker allow undefined functions?
- “Call to undefined function str_slug()” in Laravel 6.0
- C++ error 'Undefined reference to Class::Function()'
- C++ undefined reference to defined function
- how to use std::function to point to a function template
- Laravel 4 : Call to undefined method Redis::connection()
- Lumen/Laravel 6: Call to undefined function array_except()
- Why is there no need for `call` to return from called batch script which is involved in a pipe?
- Call to undefined function Mpdf\mb_regex_encoding()
- Twilio, How to transfer a in-progress call to another number
- (Delphi) Call DLL with function pointer parameter
- How to assign a function, returned by another function, to a function variable? The result rather than the...
- Call to undefined function Doctrine\ORM\Mapping\Driver\simplexml_load_file()
- Is it valid to pass the address of a non-array variable to a function parameter declared as `Type ptr[static 1]`?
- how to pass multiple arguments to onSuccess function in Prototype?
- touchableopacity onpress function undefined (is not a function) React Native
- CakePHP call to member function on non-object
- Using [].push.call() to modify an object's length
- Call to a member function getClientOriginalName() on array laravel
- Fatal error: undefined function - why?
- Segfault when trying to call a Python function from C
- How Can I Pass an Undefined Method Like an Undefined Function
- Python, Call a class function from another class
- "No matching function for call to... unresolved overloaded function type"
- Fatal error: Call to undefined function getRecords() in C:\xampp\htdocs\Employees.php on line 101
- Call to undefined function mb_internal_encoding() in My Goddady hosted website
- call to undefined method DateTime::add method in php
- ambiguous call to overloaded function
- Laravel API ResourceCollection - Call to undefined method Illuminate\Database\Eloquent\Builder::mapInto()
- Codeception: [RuntimeException] Call to undefined method AcceptanceTester::wait
- Call to undefined method Intervention\Image\Facades\Image::make()
- Call to undefined method Illuminate\\Database\\Schema\\Blueprint::increments()
- Can unsigned integer incrementation lead to undefined defined behavior?
- Laravel - Call to undefined method Illuminate\Foundation\Application::share()
- jQuery call to find function gives a “not well-formed” error in Firefox
- How do I pass every element of a list to a function as unnamed arguments?
- XAMPP - Fatal error: Call to undefined function mysql_connect()
- Laravel 4 Call to undefined method Illuminate\Database\Eloquent\Collection::links()
- how to set a int value passed by parameter to a function and assign it to global so I can use outside of the function?
- PHP Fatal error: Call to undefined function mysql_pconnect() in
Only authorized users can answer the search term. Please sign in first, or register a free account.
After looking at your
phpinfo()
output, it appears the mysql extensions are not being loaded. I suspect you might be editing the wrong php.ini file (there might be multiple copies). Make sure you are editing the php file at C:phpphp.ini (also check to make sure there is no second copy in C:Windows).Also, you should check your Apache logs for errors (should be in the logs directory in your Apache install.
If you haven't read the below, I would take a look at the comments section, because it seems like a lot of people experience quirks with setting this up. A few commenters offer solutions they used to get it working.
http://php.net/manual/en/install.windows.extensions.php
Another common solution seems to be to copy libmysql.dll and php_mysql.dll from c:PHP to C:WindowsSystem32.