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:
I've tried a variety of ways, but it does not work, is there a solution?
2 Answers 2
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?Febriyanto Nugroho– Febriyanto Nugroho2016年12月08日 06:27:36 +00:00Commented Dec 8, 2016 at 6:27 -
@FebriyantoNugroho after chaning localhost to 127.0.0.1 now you have access denied error right ? please confirm ?Manthan Dave– Manthan Dave2016年12月08日 06:30:36 +00:00Commented Dec 8, 2016 at 6:30
-
Yes sir, of courseFebriyanto Nugroho– Febriyanto Nugroho2016年12月08日 06:32:32 +00:00Commented Dec 8, 2016 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 worksManthan Dave– Manthan Dave2016年12月08日 06:33:31 +00:00Commented Dec 8, 2016 at 6:33
-
I'll try it laterFebriyanto Nugroho– Febriyanto Nugroho2016年12月08日 06:37:13 +00:00Commented Dec 8, 2016 at 6:37
In your terminal run below command and look for MYSQL_SERVICE_PORT_33060_TCP_ADDR. You can use for your database server host.
php -i
Explore related questions
See similar questions with these tags.
febri, I get the following error likeSQLSTATE[HY000] [2002] Connection refusedSQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)