Project

General

Profile

Bug #100945

Updated by Sybille Peters 11 months ago

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

 h2. Reproduce 

 on DB (with existing user "typo3"): 
 <pre><code class="shell"> 
 mysql> create database t3intro12 CHARACTER SET utf8 COLLATE utf8_general_ci; 
 mysql> grant all on t3intro12.* to `typo3`@`localhost`; 
 </code></pre> 

 <pre><code class="shell"> 
 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 
 </code></pre> 

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

 <pre><code class="shell"> 
 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" 
 </code></pre> 



 h2. Result 

 <pre> 
 In SetupCommand.php line 428: 
                                                       
   Please use a port in the range between 1 and 65535.   
                                                       

 </pre> 


 </code></pre> 

 h2. Expected result 

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

 ./vendor/bin/typo3 setup -h 

 h2. Versions 

 * reproduced with TYPO3 12 base distribution 
 * reproduced with TYPO3 13 base distribution 

 h2. 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 

Back