|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72158 Wrong description of option --mysql
Submitted: 2016-05-04 15:15 UTC Modified: -
From: ck at bru6 dot de Assigned:
Status: Open Package: MySQL related
PHP Version: 5.6.21 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ck at bru6 dot de
New email:
PHP Version: OS:


 [2016-05-04 15:15 UTC] ck at bru6 dot de
From manual page:
The value for the option --mysql is *not* the complete path of the mysql_config script - entering that gives the error "MySQL header not found". The correct value here is rather the directory containing the "include" path to mysql.h. So if mysql.h is in /usr/local/include, the value of the --mysql option should be "/usr/local".

Or, in the words of ./configure --help:

--with-mysql=DIR        Include MySQL support.  DIR is the MySQL base
                          directory, if no DIR is passed or the value is
                          mysqlnd the MySQL native driver will be used

However, --with-mysqli wants the path to mysql_config here. That seems a bit inconsistent.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 11:01:27 2019 UTC