Mysql password expired. Can't connect

后端 未结 19 1461
慢半拍i
慢半拍i 2020-12-02 06:20

I just wiped my Mac and did a fresh install of El Capitan. I\'m struggling to connect to Mysql now. Having gone through a web server setup process, I\'ve created a simple PH

19条回答
  •  悲&欢浪女
    2020-12-02 07:00

    This work for me:

    Source: https://www.diariodeunprogramador.net/fallo-al-conectar-mysql-your-password-expired/

    Login as root:

    mysql -u root -p
    

    and then you deactivate the automatic expiration of passwords of all the users:

    SET GLOBAL default_password_lifetime = 0;
    

提交回复
热议问题