Hey. I was having a similar error when trying to access mysql at the command line. I look in the error.log (/var/log/mysql/error.log) and saw that I was having the following issue:
Code:
111027 6:20:29 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
111027 6:20:29 [ERROR] Do you already have another mysqld server running on port: 3306 ?
111027 6:20:29 [ERROR] Aborting
I went into the my.cnf file (/etc/mysql/my.cnf) and found this line:
Code:
bind-address = 192.168.1.121
I'm not sure why it was bound to this IP address but it might have something to do with the configuration of my VM. I commented this line out and restarted mysql (service mysql start) and it works again.
Hope that helps someone!