Package: wordpress
Version: 6.8.1+dfsg1-1
Severity: normal
Tags: patch

Dear Maintainer,

In my understanding setup-mysql should create a user and a database in mysql 
for using in wordpress, if I install wordpress from scratch.
The creation of the user can only be done by root and not by the 
not-yet-created user itself.

Here is the patch I applied to the script. Then it worked for me:

86c86
<     MYSQLCOMMAND="mysql -u $DB_USER -p -h $DB_HOST"
---
>     MYSQLCOMMAND="mysql -u root -h $DB_HOST"

-- System Information:
Debian Release: 13.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wordpress depends on:
ii  apache2 [httpd]                         2.4.65-2
ii  ca-certificates                         20250419
ii  default-mysql-client                    1.1.1
ii  libapache2-mod-php                      2:8.4+96
ii  libapache2-mod-php8.4 [libapache2-mod-  8.4.10-1
    php]
ii  libjs-cropper                           1.2.2-2
ii  libjs-lodash                            4.17.21+dfsg+~cs8.31.198.20210220-9
ii  libjs-underscore                        1.13.4~dfsg+~1.11.4-3
ii  mariadb-client [virtual-mysql-client]   1:11.8.2-1
ii  php-gd                                  2:8.4+96
ii  php-getid3                              1.9.23+dfsg-1
ii  php-mysql                               2:8.4+96
ii  php8.4-gd [php-gd]                      8.4.10-1
ii  php8.4-mysql [php-mysqlnd]              8.4.10-1

Versions of packages wordpress recommends:
ii  wordpress-l10n                    6.8.1+dfsg1-1
ii  wordpress-theme-twentytwentyfive  6.8.1+dfsg1-1

Versions of packages wordpress suggests:
ii  mariadb-server [virtual-mysql-server]  1:11.8.2-1
pn  php-curl                               <none>
pn  php-imagick                            <none>
pn  php-mbstring                           <none>
pn  php-ssh2                               <none>
pn  php-xml                                <none>
pn  php-zip                                <none>

-- Configuration Files:
/etc/wordpress/htaccess changed [not included]

-- no debconf information

Reply via email to