Скомпилирование PHP 8.* с LibmySqlClient для MySQL 8.*MySql

Форум по Mysql
Ответить
Anonymous
 Скомпилирование PHP 8.* с LibmySqlClient для MySQL 8.*

Сообщение Anonymous »

Php 8.4 - Выбор библиотеки считывает, частично: < /p>

Код: Выделить всё

// Recommended, compiles with mysqlnd
$ ./configure --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd

// Alternatively recommended, compiles with mysqlnd
$ ./configure --with-mysqli --with-pdo-mysql

// Not recommended, compiles with libmysqlclient
$ ./configure --with-mysqli=/path/to/mysql_config --with-pdo-mysql=/path/to/mysql_config
< /code>
В то время как MySQL 8.4 - 8.4.1.2 Кэширование SHA -2 считываемой аутентификации считывается, частично: < /p>
**Installing SHA-2 Pluggable Authentication**

The caching_sha2_password plugin exists in server and client forms:

- The server-side plugin is built into the server, need not be loaded
explicitly, and cannot be disabled by unloading it.

- The client-side plugin is built into the libmysqlclient client
library and is available to any program linked against libmysqlclient.

The server-side plugin uses the sha2_cache_cleaner audit plugin as a helper
to perform password cache management. sha2_cache_cleaner, like
caching_sha2_password, is built in and need not be installed.
< /code>
Я в настоящее время компилирует Php 8.4 с: < /p>
./configure \
--prefix=$path_to_php_bin \
--with-apxs=/usr/local/apache2/bin/apxs \
--enable-mbstring \
--with-mysqli \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-iconv=$(brew --prefix libiconv) \
--enable-fpm
Но когда я пытаюсь создать ссылку mysqli на веб-странице, я генерирую фатальную ошибку :

#1 [path_to_mysqli_connect_variables_file](10): connectDBi([host], [user], [password], [db])
#2 [path_to_php/html_header_file](12):include('[path_to_mysqli_connect_variables_file]')
#3 [path_to_website_index_file](3): include('[path_to_php/html_header_file]')
#4 {main} thrown in [path_to_global_php_include_commands_file] on line 201

Я считаю, что эта фатальная ошибка генерируется, потому что я не компиляции Php 8.4 с Libmysqlient Потому что выбор библиотеки - PHP 8.4 Рекомендует против этого, пока MySQL 8.4 - 8.4.1.2 Caching SHA -2 PLOGENTALICATITIONSITIONSITIONSITIONSITITIONSITIONSITIONSITIONSITO IS IPO. Необходимо скомпилировать PHP 8.* с LibmySqlClient для использования caching_sha2_password , с mysql 8.*:
  • Почему Php рекомендует против этого? caching_sha2_password , чем
    Компилирование Php 8.* с Libmysqlclient ? />

    Код: Выделить всё

    $ ./configure --with-mysqli=/path/to/mysql_config --with-pdo-mysql=/path/to/mysql_config

    Существует ли код, который должен быть в my.conf , чтобы скомпилировать PHP 8.* Эффективно для [caching_sha2_password] unhy? mysql_config означает my.conf , верно?
Заранее!

Подробнее здесь: https://stackoverflow.com/questions/797 ... or-mysql-8
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «MySql»