Replies: 3 comments 15 replies
-
Is your MySQL running? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Run: $ php --ini Is the |
Beta Was this translation helpful? Give feedback.
9 replies
-
Try: $ /Applications/MAMP/bin/php/php7.4.21/php spark shield:setup |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
System Environment:
macOS Monterey 12.4
MAMP Pro 6.6
Codeigniter is latest version
I've seen the other issues posted in regards to Sqlite and database connection issues, but they don't seem to fix.
I followed the appstarter instructions here https://codeigniter4.github.io/userguide/installation/installing_composer.html
Codeigniter:
Updated Config\App.php base url
Updated Config\Database.php settings for my DB (not using env file)
Checked Config\Logger and threshold set to 4
Through the Home Controller (Browser) I can successfully connect to DB and make a simple query that returns results so I know my database settings are valid
When I proceed to install Shield following these instructions https://github.com/codeigniter4/shield/blob/develop/docs/install.md and running "php spark migrate" (tried the -all option too, also I've removed the _support tests like suggested.) it throws two errors depending on the settings below...
Using these settings:
Running the command logs "ERROR - 2022-07-20 19:11:46 --> Error connecting to the database: No such file or directory"
Only changing localhost => 127.0.0.1
Running the command logs "ERROR - 2022-07-20 19:15:05 --> Error connecting to the database: Connection refused"
Doesn't tell me why it's refused...
I've only made the necessary changes to settings to make it run. I haven't moved folders, like the public folder, that some have suggested might be the issue.
Also running "php spark shield:setup" spits out - Command "shield:setup" not found. Probably cause previous commands are failing?
It's a very base install to test Shield. Pretty sure all my system requirements are adequate. Not sure what else to do.
Folder structure is:
ci4 folder -> appstarter folder -> framework folders (app,public,vendor, etc)
Did I miss a solution for my case? Can I manually create necessary DB tables for Shield and skip the migration and do the Manual Setup?
Beta Was this translation helpful? Give feedback.
All reactions