Category: Plugins

Q: cakephp-queue having DB connection error with migrations migrate

Hi I'm trying to install the cakephp-queue plugin from Github, following the steps:

1. require cakephp-queue via composer:

> composer require dereuromark/cakephp-queue:dev-master

2. load the plugin within bootstrap.php

3. but when I try migrate, I get an error message:

> cake Migrations migrate -p Queue

console error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.11_5/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/usr/local/Cellar/php70/7.0.11_5/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.11_5/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/usr/local/Cellar/php70/7.0.11_5/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0

Welcome to CakePHP v3.3.5 Console
---------------------------------------------------------------
App : src
Path: {****}/src/
PHP : 7.0.11
---------------------------------------------------------------

using migration path {****}/vendor/dereuromark/cakephp-queue/config/Migrations

using seed path {****}/dereuromark/cakephp-queue/config/Seeds                                                                               

  [InvalidArgumentException]                                                   

  There was a problem connecting to the database: SQLSTATE[HY000] [2002] No s  

  uch file or directory                                                        
                                                                               

migrate [-t|--target TARGET] [-d|--date DATE] [-p|--plugin PLUGIN] [-c|--connection CONNECTION] [-s|--source SOURCE]

I use the latest version of cakephp 3.

The DB connection should not be a problem. But if any of you have a solution to this problem, please help me thanks.

migration
1 Answers

Version: 3.3.5

user
Doug

3

Doug, can you post your database connection's config in app.php?

In my experience, the main reason is because you have connection pointing to localhost (local env) instead of 127.0.0.1. Try to change host name from localhost to 127.0.0.1.

achao
achao

9

Created: 17 Oct '16

Last Reply: 20 Oct '16

Replies: 1

Views: 1142

Votes: 1

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.


Join Now Tour

Download Cakephp

Start baking your own CakePHP application!


Cakephp All Versions