Repository navigation
Conversation
* The legacy `mysql` module has been removed with PHP 7.0. * `pdo_mysql` is used, which `extension=pdo_mysql.so` even reflected, but the used config keys were for the `mysql` module, hence ineffective. * `pdo_mysql` has only two keys, from which only `pdo_mysql.default_socket` is relevant: https://www.php.net/manual/en/ref.pdo-mysql.php#pdo-mysql.configuration * The builtin `pdo_mysql.default_socket` is usually correct, and should only be adjusted if it does not work OOTB. That way, changed distro defaults won't beak the setup. E.g. Debian Forky will switch from `/run/mysqld/mysqld.sock` to `/run/mariadbd/mysqld.sock`, hence setting this explicilty will cause a distro upgrade to break things. * ini sections in PHP config files generally serve visual structuring only, but are otherwise ignored. The more common `;` for comments in PHP configs is used, otherwise the example is kept minimal, focusing on the added `pdo_mysql.default_socket`. The config file path has been made more generic. Debian has its own config structure, with `phpenmod`/`phpdismod`, which not all distros share. But a per-module config file somewhere below /etc/php is common. * The backwards-compatibility note has been moved below the config example, so that the `pdo_mysql.default_socket` sentence and related config example stay together. Signed-off-by: MichaIng <micha@dietpi.com>
Contributor
📖 Documentation Preview📄 1 changed documentation pageLast updated: Tue, 10 Nov 2026 15:23:14 GMT |
MichaIng
force-pushed
the
fix/pdo_mysql
branch
2 times, most recently
from
November 10, 2026 14:59
aaa80fa to
5ca5864
Compare
The database configuration page did not make use of explicit code clocks with respective syntax highlighting. This is hereby done across the page, replacing generic `::` blocks. Signed-off-by: MichaIng <micha@dietpi.com>
MichaIng
force-pushed
the
fix/pdo_mysql
branch
from
November 10, 2026 15:13
5ca5864 to
4422c8e
Compare
Member
Author
|
I tried to replace the single line code and command blocks with |
Member
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




mysqlmodule has been removed with PHP 7.0.pdo_mysqlis used, whichextension=pdo_mysql.soeven reflected, but the used config keys were for themysqlmodule, hence ineffective.pdo_mysqlhas only two keys, from which onlypdo_mysql.default_socketis relevant: https://www.php.net/manual/en/ref.pdo-mysql.php#pdo-mysql.configurationpdo_mysql.default_socketis usually correct, and should only be adjusted if it does not work OOTB. That way, changed distro defaults won't beak the setup. E.g. Debian Forky will switch from/run/mysqld/mysqld.sockto/run/mariadbd/mysqld.sock, hence setting this explicilty will cause a distro upgrade to break things.;for comments in PHP configs is used, otherwise the example is kept minimal, focusing on the addedpdo_mysql.default_socket.phpenmod/phpdismod, which not all distros share. But a per-module config file somewhere below/etc/phpis common. This has been aligned for the PostgreSQL module, too.pdo_mysql.default_socketsentence and related config example stay together.inisyntax highlighting to be wrong, since generic code blocks were used, I replaced them with explicit.. code-block:: <lang>blocks.☑️ Resolves
🖼️ Screenshots
Before
After
✅ Checklist
codespellor similar and addressed any spelling issues