Mysql password expired. Can't connect

后端 未结 19 1420
慢半拍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 06:53

    mysqladmin -u [username] -p password worked for me on OS X El Capitan and MySQL 5.7.12 Community Server. Example:

    $ /usr/local/mysql/bin/mysqladmin -u root -p password
    Enter password:
    New password:
    Confirm new password:
    Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
    

    This is similar to pavan sachi's answer, but with password prompts.

    My error was "#1862 - Your password has expired. To log in you must change it using a client that supports expired passwords." at phpMyAdmin login screen first time.

提交回复
热议问题