Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用自制软件安装MySQL_Mysql_Macos_Installation_Homebrew - Fatal编程技术网

使用自制软件安装MySQL

使用自制软件安装MySQL,mysql,macos,installation,homebrew,Mysql,Macos,Installation,Homebrew,我通过mac HomeBrew安装了MySQLstable 8.0.19(瓶装): brew install mysql 它要求我遵循警告部分中的以下说明: We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured to only allow connections from localhost

我通过mac HomeBrew安装了MySQL
stable 8.0.19(瓶装)

brew install mysql
它要求我遵循警告部分中的以下说明:

We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured to only allow connections from localhost by default To connect run: mysql -uroot To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start 现在我尝试寻找默认密码。macOS的MySQL安装过程显示,在最后一步中,为用户提供了一个临时密码:

但我得到:

grep:/var/log/mysqld.log:没有这样的文件或目录

然后我尝试查找该日志文件:

sudo find / -name mysqld.log
但是我得到了很多
find:。。。不允许操作
而不是任何有意义的结果

如果你能帮我知道,我将不胜感激

  • 如果到目前为止我都做对了

    • 如果不是的话,我犯了什么错误,如何改正
  • 如果是,我如何获得临时密码

  • 下一步是什么


理想情况下,我应该能够在GUI中遵循其余的

好吧,我想我有了一些进步。我跑

brew services list
它显示mysql停止了,现在我运行:

brew services start mysql
现在,
mysql\u-secure\u安装
脚本在

Securing the MySQL server deployment. Connecting to MySQL using a blank password. 您应该能够从
/Applications/
文件夹中找到并运行MYSQLWorkbench


p.S.编写了简单的说明。

对于macOS用户,DBngin()提供了 您可以通过按钮启动/停止MySql、PostgreSQL(和redis)。。不同的 具有非重叠配置/数据目录的版本。
真的救了我和我的学生在我的数据库课程中。

这是免费的、自由的还是开源软件(FLOSS)?
brew services start mysql
Securing the MySQL server deployment. Connecting to MySQL using a blank password.
brew cask install mysqlworkbench