I have mysql installed on ubuntu. I need to log into mysql with root but I cann't remember root password.
so I decided to change root password. I start to do this job by these steps:
- sudo service mysql stop
- sudo mysqld --skip-grant-tables &
at this step I get this error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
what is wrong here?