ThinkPHP cannot actively link to the database command line connection

clipboard.png

after restarting mysql in window server2012, the password account host is all right. You cannot connect to the database through thinkPHP, but you can connect to the database with command line first and then refresh it.

Php
Mar.30,2021

if you change it to localhost, you will solve the problem

.
Menu