M HYPE SPLASH
// general

MySql WorkBench Can't connect to MySQL server on '127.0.0.1' (111)

By Emma Terry

Can't connect to MySQL server on '127.0.0.1' (111)

I have install mysql Workbench using ubuntu software center, now i want to create a connection but facing this problem.

2

3 Answers

Ok, This means that you need to install MySQL first, or connect to a machine with MySQL installed. Check this URL on how to do so on Ubuntu

I faced this problem once. The issue was that the allowed host for root was localhost. The host was not unable to map localhost to 127.0.0.1. In your my.cnf file, set the bind address as follows:

bind-address = 127.0.0.1

To allow all IPs use %.

Restart the server and then check.

same issue i faced with mysql workbench 6.3.8 build 1228 CE (64-bits) community with kubuntu 18.04 version.

i set connection method standard tcp/ip over ssh and when i try to connect to remote server it asks for ssh password and after successful ssh tunnel it asks for remote mysql password ( which was expected as i did not store passwords in keychain -- option available there in connection window ) and when i entered it i got same above error.

after checking at server mysql log i found this line:Access denied for user 'root'@'localhost' (using password: NO)

but i already entered the password while workbench asks me.

finally i try edit connection and store mysql password there in keychain option and it works fine.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy