User tests: Successful: Unsuccessful:
Pull Request for Issue # .
When installing Joomla using a database user who has the privilege to create a database on the specified database server and specifying a database name for which no database exists, the installation should create that database.
This currently might work with MySQLi, but not with MySQL (PDO) or PosgreSQL (PDO).
This Pull Request (PR) fixes that.
At least for PosgreSQL (PDO) I think it never has been working, except maybe for very old versions, because all information I found says that it is not possible to connect to a PostgreSQL server without specifying a database. So this PR here uses the 'postgres' database which is installed with a default PostgreSQL installation.
Start a new Joomla 4 installation without the patch of this PR applied, using a database server and user combination which allows to create a new database, and a database name for which no database exists on that server.
Result: See section "Actual result" below.
Do the same with the patch of this PR applied.
Result: See section "Expected result" below.
A new database with the specified name is created on the specified server, and the installation finishs with successs, if everything else is right.
Maybe somewhere is written that installing a new database doesn't work when using PostgreSQL (PDO)? If so, this has to be changed.
This PR doesn't fix the fact that a database will also be created with MySQL (PDO) or PosgreSQL (PDO) when the server doesn't fulfill the minimum version requirement because that check is done after database creation. This issue I plan to fix with another, future PR.
Status | New | ⇒ | Pending |
Category | ⇒ | Installation |
Labels |
Added:
?
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-14 22:26:42 |
Closed_By | ⇒ | wilsonge |
I have tested this item✅ successfully on b83bdd2
Post patch
pdo_psql : success
pdo: mysql : success
mysqli: success
Pre Patch:
pdo_psql: fail
pdo_mysql: fail
mysqli: success
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28338.