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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ck at bru6 dot de
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC