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
Open MySQL console and type SET PASSWORD = 'your password'; and then press ENTER Key which will set your defined password for user root.
You can only write SET PASSWORD = ''; which will set password as blank for root user.