If you face error establishing a database connection while installing wordpress on local host with xampp on Windows 10 or 11, then you can fix it by creating a new database user.
If you database user doesn't resolve your problem then it is the problem with database host.
You need to click on xampp control panel, then click on the Apache configuration. Here copy the database host along with the port number. Under database host you need to replace with this Apache host.
コメント