There are a couple of things to check to solve the 'Communications links' failure.
One thing in particular is to check whether your MySQL server accepts TCP connections. In your terminal, it looks like you are using named pipes.
Make sure your MySQL server allows TCP connections; check for the bind-address
configuration in mysql.ini
under [mysqld]
section. Its value should be at least 127.0.0.1
, or set it as *
to bind to all (not always a good idea).
Another point is the skip_networking configuration. Check if you have that, and remove and restart MySQL server. I believe this is set by default when you are installing MySQL.
(Also note that 8.0.17 is 'ancient' already).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…