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: 2021-01-12 13:12 UTC
From: ck at bru6 dot de Assigned: cmb (profile)
Status: Closed Package: MySQL related
PHP Version: 5.6.21 OS:
Private report: No CVE-ID: None
 [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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-12 13:12 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-01-12 13:12 UTC] cmb@php.net
The mysql related info has been removed from that section[1],
so this ticket is obsolete now.

[1] <https://github.com/php/doc-en/commit/383a659e1f0f7aa3330b31a095a1e927611d4c71>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 07:01:23 2021 UTC