Closed gosocial2 closed 4 years ago
Hello, i think this because connection issue with your config. Can you verify this issue guys @InsiteFX, @AbdulRafay ?
I did not face this issue. I think error is because of missing database driver.
@gosocial2 please try running the following command
sudo apt install php7.2-pdo php7.2-mysql
NOTE: please adjust the command as per your php version
You may need to edit your php.ini file and make sure that the PDO extension is not remarked out ; semi-colon in front of it.
@AbdulRafay and @InsiteFX , thank you both for your replies.
PDO is already enabled in my php.ini, (I have other non-framework-based apps using it), but it is not enabled in my CI4/Boilerplate project's .env settings:
database.default.DBDriver = MySQLi
This migration issue occurred with some other CI4 projects I created, too, so I opened an issue there (https://github.com/codeigniter4/CodeIgniter4/issues/3359)
Are you guys saying that switching to PDO can be a workaround?
I' am using the MySQLi driver and everything is running fine here, the only difference is that I manually installed Boilerplate. I know that Lonnie also updated the Myth/Auth a couple of days ago for the new filer parameters.
I' am using the MySQLi driver and everything is running fine here, the only difference is that I manually installed Boilerplate. I know that Lonnie also updated the Myth/Auth a couple of days ago for the new filer parameters.
Can you briefly describe the manual installation step? Still require myth/auth via composer? And where to paste copied contents of Boilerplate/src/. ?
I manually install Myth/Auth also.
In the .env file, changing
database.default.hostname = localhost
to
database.default.hostname = 127.0.0.1
solves the issue.
You might want to update the README.MD section for INSTALLATION step 2.
Thanks for your help anyway.
No such file or directory ERROR Running
php spark boilerplate:install
ends prematurely.To Reproduce Steps to reproduce the behavior:
composer create-project codeigniter4/appstarter agungsugiartoboilerplate
composer require agungsugiarto/boilerplate
Terminal Output with Errors