Starting MySQL on Bash on Ubuntu on WIndows

Viewed 18253

I've installed MySQL:

sudo apt-get install mysql-server

I've tried to start the service:

sudo service mysql start

But everytime I start it I get the message:

*Starting MySQL database server mysqld [fail]

I've tried reinstalling MySQL, killing any related running process, but nothing I've tried this entire week has worked.

I've also tried directly logging into mysql with the command below,

mysql -u root -p

But I would get the following error message:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Edits: I fixed a typo. I forgot to include "sudo" in the start command. This also did not work for me. I also added in what would happen if I tried to login to MySQL

1 Answers
Related