I have installed phpstorm in ubuntu 14.04 Error when i try to acces to database using command php artisan migrate:
wwwsabininfonp@wwwsabininfonp-Aspire-E1-471:/opt/lampp/htdocs/fine-arts$ php artisan migrate
[PDOException]
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
and when i tried to use command composer update following error occurs:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- gregwar/captcha dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
- gregwar/captcha dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for gregwar/captcha dev-master -> satisfiable by gregwar/captcha[dev-master].
I dont know why is this code is scolding me.....
The error says that you need the "gd" extension for PHP. You should be able to install it like this: