Error in Installing WordPress in Localhost
-
Hello,
This is the first time I’m trying to install a WordPress site in my Windows 11 laptop using localhost. But unfortunately at the very end I’m repeatedly facing an error. Please help me out.
Steps I followed:
- Downloaded XAMPP from the official website.
- Installed it by following on screen instructions
- Opened the XAMPP Control Panel and started the Apache and MySQL services.
- First I tried starting Apache in XAMPP using port number 80. But the Apache services were not starting. Hence, I changed the port number from 80 to 85 in httpd.conf.
- In the same file I changed listen 80 to listen listen 85 and changed the servername from localhost:80 to localhost:85.
- I also changed the port number in httpd-ssl.conf from 443 to 4433 and the port number for listen from 443 to 4433.
- For MySQL I changed the port number from 3306 to 3307 in my.ini.
- Downloaded the latest version of WordPress.
- Extracted the wordpress.zip file into the XAMPP’s htdocs folder.
- Created a database for WordPress on http://localhost/phpmyadmin and named it wordpress
- Gave all the db permissions to the user root .
- Opened http://localhost:85/wordpress/ in my Chrome browser and selected my preferred language English
- After that I entered the following database details:
- Database Name: wordpress
- Username: root
- Password: ***
- Database Host: localhost
- Table Prefix: wp_
- Then I clicked the Submit button and faced the following error again and again:
error establishing a database connection
Please let me know what I should do to resolve the error.
Thank you,
Gourab
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.