This is a very common MySQL problem that is has very few answers out there. I thought I would create a quick video on how you can easily fix this problem.
The Errors that I get are the following:
-“mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.”
-“phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.”
-“MySQL said:
Cannot connect: invalid settings.”
The fix is extremely simply, all it takes is going into the my.ini file for mySQL on XAMPP and switching the port setting. Oftentimes the port is set to a different port than it should be.
In my case it was set to port 3308, and so I switched it to the default port for mySQL which is port 3306 and this fixed the problem for me. If you have any questions please let me know, and I will do my best to answer them for you.
Nguồn: https://chaoticpharmacology.com/
Xem thêm bài viết khác: https://chaoticpharmacology.com/cong-nghe/
Thanks, another hero without the cap…
Fixed!!!!! Thank You so Much!!!!!!!
not working
man thank you … realy good video with calm and precision
thank you so mach bro
Thanks, its works in my ubuntu
Solves mine , thanks bro
not working for me. its already port 3306
Thank you so much
same error …………
Thanks you.
Fever Rel… thank you. Excellent, simple, and effective.
Thanks sir you save more
Thanks sir you save more
Thanku it was very helpful
You can also change the port for Mysql by clicking on config -> Service and port settings -> mysql
Thanks you so much !!
You saved my day bro 🙂