Project

General

Profile

Actions

Bug #100945

closed

vendor/bin/setup fails if port is not passed as option and host is "localhost"

Added by Sybille Peters 11 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2023-06-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

Port has a default of 3306, so this shouldn't fail.

Reproduce

on DB (with existing user "typo3"):

mysql> create database t3intro12 CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> grant all on t3intro12.* to `typo3`@`localhost`;

composer create-project typo3/cms-base-distribution:^12 t3intro12
cd t3intro12
./vendor/bin/typo3 setup --driver=mysqli --host=localhost --dbname=t3intro12 --username=typo3 --password='a34234Sfb8GHf!' --project-name=t3intro12 --force -n

For TYPO3 13, it needs some additional parameters, e.g.

vendor/bin/typo3 setup --driver=mysqli --host=localhost --dbname=t3intro13 --username=typo3 --password='mypasswd...' --project-name=t3intro13 --force -n  --admin-username=system --admin-user-password='mypasswd' --admin-email="myemail@mydomain" 

Result

In SetupCommand.php line 428:

  Please use a port in the range between 1 and 65535.  

Expected result

Port is default 3306, so port is set correctly and this should not fail, see

./vendor/bin/typo3 setup -h

Versions

  • reproduced with TYPO3 12 base distribution
  • reproduced with TYPO3 13 base distribution

Workaround

Pass the port explicitly, e.g.

./vendor/bin/typo3 setup --driver=mysqli --host=localhost --dbname=t3intro12 --username=typo3 --password='a34234Sfb8GHf!' --project-name=t3intro12 --force -n --port=3306

Actions

Also available in: Atom PDF