1

I tried to install Magento using XAMPP for Linux (I use 32-bit Ubuntu), I've created a database, and when you want to add via Magento Installer I get an error message like this:

Picture

I've tried a variety of ways, but it does not work, is there a solution?

  • Make sure ur Host is correct – Ankit Shah Dec 8 '16 at 6:13
  • @AnkitShah When I try to change the host febri , I get the following error like SQLSTATE[HY000] [2002] Connection refused – qrsx Dec 8 '16 at 6:17
  • 1
    @FebriyantoNugroho replace localhost to 127.0.0.1 and then check – Manthan Dave Dec 8 '16 at 6:19
  • 2
    Possible duplicate of PDO Exception error on index – Khoa TruongDinh Dec 8 '16 at 6:20
  • @ManthanDave Error result I have SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) – qrsx Dec 8 '16 at 6:21
4

Try to replace localhost to 127.0.0.1 and check

This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured.

Refer this magento devdocs link http://devdocs.magento.com/guides/v2.0/install-gde/trouble/php/tshoot_phpini.html

You can also refer - PDO Exception error on index

It will works

  • Do I have to add value to the pdo_mysql.default_socket ? – qrsx Dec 8 '16 at 6:27
  • @FebriyantoNugroho after chaning localhost to 127.0.0.1 now you have access denied error right ? please confirm ? – Manthan Dave Dec 8 '16 at 6:30
  • Yes sir, of course – qrsx Dec 8 '16 at 6:32
  • @FebriyantoNugroho so now your first issue is solved , you just need to pass correct password . Check your database password with privillages and enter that password in the password field. it will works – Manthan Dave Dec 8 '16 at 6:33
  • I'll try it later – qrsx Dec 8 '16 at 6:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.