忘记 macOS 上的 MySQL 密码

忘记 macOS 上的 MySQL 密码

请帮助我一步一步地在终端的帮助下设置 MySQL,我想我记不住密码了,或者我搞砸了。我收到以下消息,但我记不住密码了

jaychavan@Jays-Air ~ % cd /usr/local/mysql
jaychavan@Jays-Air mysql % cd /usr/local/mysql
jaychavan@Jays-Air mysql % sudo bin/mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 

相关内容