I installed MySQL and forgot my root password (Mac OSX El Capitan).
I am using the tutorial by [Ubuntu][1]
to reset my password but I am having issues very early
I type sudo /usr/local/mysql/support-files/mysql.server stop
And get sudo: /usr/local/mysql/support-files/mysql.server: command not found
I move forward anyway and type:
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &`
mysql -u root
And I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1]+ Stopped sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
Any suggestions? (NEVERMIND- FIGURED IT OUT, I POSTED ANSWER BELOW)