-If the service is not started. Then right-click 'Computer'---->Management--->Services and Applications---->Services, and find the service named MYSQL in the column on the right.
At this time, its status should be empty, that is, not started. It is OK to start this service.
Source URL:
The above is the detailed content of Unable to connect to the MySQL service on host named localhost'. For more information, please follow other related articles on the PHP Chinese website!