How do I recover / reset rancher login?

I tried to turn off access control by following the faqs guide, but I get this error,

root@ubuntu16-rancher01:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bb06e04f8a28 rancher/server “/usr/bin/entry --…” 2 months ago Up 4 days 3306/tcp, 0.0.0.0:8080->8080/tcp reverent_franklin
root@ubuntu16-rancher01:~# docker exec -it bb06e04f8a28 mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
root@ubuntu16-rancher01:~#

What am I doing wrong? thanks

If you’re using an external database then you need to connect to it. The example is for the default embedded database.

Thanks, looks like it is external…

fixed it now, thanks