dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.32k stars 656 forks source link

Can't connect to MySQL server on 'localhost' #1166

Open Saboor-Hamedi opened 4 days ago

Saboor-Hamedi commented 4 days ago

mycli -u username -pmypassword: I get the following errro: (2003, "Can't connect to MySQL server on 'localhost' ([WinError 10061] No connection could be made because the target machine actively refused it)")

Saboor-Hamedi commented 4 days ago

I am using windows

Saboor-Hamedi commented 2 days ago

Here's the corrected version with the specified formatting retained:

I found the answer: In case you changed the port 3306 to something else, like 3307, which was the case for me, just type on CLI: mysql -u username -pyourpassword -P 3307. Make sure the -P 3307 is capitalized.