php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-05-04 15:15 UTC] ck at bru6 dot de
Description:
------------
---
From manual page: http://www.php.net/mysqlinfo.library.choosing
---
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 19 20:01:37 2019 UTC