Can not install Aimeos-Laravel package in fresh Laravel 5.1

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
sonnguyen
Posts: 2
Joined: 03 Nov 2015, 06:37

Can not install Aimeos-Laravel package in fresh Laravel 5.1

Post by sonnguyen » 03 Nov 2015, 07:06

Hi,

I have read guide at https://aimeos.org/docs/Laravel/Install_Aimeos and process step by step but get error in order install aimeos-laravel in fresh Laravel 5.1.

Can you help me clear my mistake?

Code: Select all

RM-PROs-MacBook-Pro:aimeos1 rm-pro$ php artisan vendor:publish
Copied Directory [/vendor/aimeos/aimeos-laravel/src/database/migrations] To [/database/migrations]
Copied Directory [/vendor/aimeos/aimeos-laravel/src/views] To [/resources/views/vendor/shop]
Copied Directory [/vendor/aimeos/aimeos-laravel/public] To [/public/packages/aimeos/shop]
Publishing complete for tag []!
RM-PROs-MacBook-Pro:aimeos1 rm-pro$ php artisan migrate
Nothing to migrate.
RM-PROs-MacBook-Pro:aimeos1 rm-pro$ php artisan aimeos:setup --option=setup/default/demo:1
                                         
  [MW_DB_Exception]                                 
  SQLSTATE[HY000] [2002] No such file or directory  

User avatar
aimeos
Administrator
Posts: 3097
Joined: 01 Jan 1970, 00:00

Re: Can not install Aimeos-Laravel package in fresh Laravel

Post by aimeos » 03 Nov 2015, 08:57

I think you've used "localhost" as host parameter which causes MySQL to try Unix domain sockets first. But it seems there's no socket in the standard location (usually /var/lib/mysql/mysql.sock). Please try "127.0.0.1" instead which enforces using TCP/IP.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sonnguyen
Posts: 2
Joined: 03 Nov 2015, 06:37

Re: Can not install Aimeos-Laravel package in fresh Laravel

Post by sonnguyen » 03 Nov 2015, 09:33

Thanks for quick reply and great tip. It worked!

Post Reply