Error connecting to database on localhost xampp os x

I am very new to Wordpress and want to learn it, and the first step was unsuccessful :( I tried to install it on localhost (xampp), and this error "Error connecting to database" was displayed

I took every step in this video https://www.youtube.com/watch?v=A3fXcvnzlkw

  • install xampp-osx-5.6.30.
  • enable mysql database and apache server.
  • go to phpmyadmin and add a new database name "wp".
  • download wordpress 4.7.2
  • copy the wordpress folder to htdocs, then rename it to wp.
  • go to wp-sample-config, rename it to wp-config, change the database name to wp, the database username to root and the database password is empty. ''
  • in localhost / wp / wp-admin / install.php

then the error shows

I tried adding a new user to phpmyadmin and changing wp-config I tried changing the database host from localhost to 127.0.0.1in wp-config I tried twice using xampp I tried another program mamp nothing helped

my version of os x os x yosemite 10.10.5 should i change any sessions on my computer? are there any programs that i can install causing the problem? What can I do?

here are some photos

wp-config /

+4
source share
1 answer

6 7 . WordPress wp-config.php, , . , , ( localhost) , .

. , , , Wordpress . , , , . , root, , - root/root

, xampp , , html .

0

Source: https://habr.com/ru/post/1668880/


All Articles