Merge pull request #47227 from flokli/php-mysql-sock-18.03
php: set mysql socket path if mysql[i] or pdo_mysql support is enabledrelease-18.03-flake
commit
8e41b9fb41
|
@ -115,12 +115,14 @@ let
|
|||
};
|
||||
|
||||
mysql = {
|
||||
configureFlags = ["--with-mysql${if mysqlndSupport then "=mysqlnd" else ""}"];
|
||||
configureFlags = ["--with-mysql${if mysqlndSupport then "=mysqlnd" else ""}"
|
||||
"--with-mysql-sock=/run/mysqld/mysqld.sock"];
|
||||
buildInputs = mysqlBuildInputs;
|
||||
};
|
||||
|
||||
mysqli = {
|
||||
configureFlags = ["--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}"];
|
||||
configureFlags = ["--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}"
|
||||
"--with-mysql-sock=/run/mysqld/mysqld.sock"];
|
||||
buildInputs = mysqlBuildInputs;
|
||||
};
|
||||
|
||||
|
@ -131,7 +133,8 @@ let
|
|||
};
|
||||
|
||||
pdo_mysql = {
|
||||
configureFlags = ["--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}"];
|
||||
configureFlags = ["--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}"
|
||||
"--with-mysql-sock=/run/mysqld/mysqld.sock"];
|
||||
buildInputs = mysqlBuildInputs;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue