gpt4 book ai didi

mysql - 如何从 brew info mysql 中删除 mysql 实例

转载 作者:太空宇宙 更新时间:2023-11-03 11:28:07 25 4
gpt4 key购买 nike

我正在尝试从我的 macbook pro 中删除 mysql 以重新开始。

我已按照有关如何删除 mysql 的所有实例和文件的指南进行操作,但是如果我运行

brew info mysql

我仍然得到有关 mysql 8.0 的信息如下:-

mysql: stable 8.0.12 (bottled)
Open source relational database management system
https://dev.mysql.com/doc/refman/8.0/en/
Conflicts with:
mariadb (because mysql, mariadb, and percona install the same
binaries.)
mariadb-connector-c (because both install plugins)
mysql-cluster (because mysql, mariadb, and percona install the same
binaries.)
mysql-connector-c (because both install MySQL client libraries)
percona-server (because mysql, mariadb, and percona install the same
binaries.)
Not installed
From: https://github.com/Homebrew/homebrew-
core/blob/master/Formula/mysql.rb
==> Dependencies
Build: cmake ✘
Required: openssl ✘
==> Requirements
Required: macOS >= 10.10 ✔
==> Options
--with-debug
Build with debug support
--with-embedded
Build the embedded server
--with-local-infile
Build with local infile loading support
--with-memcached
Build with InnoDB Memcached plugin
--with-test
Build with unit tests
==> Caveats
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
==> Analytics
install: 66,127 (30d), 215,889 (90d), 794,987 (365d)
install_on_request: 61,289 (30d), 185,026 (90d), 647,998 (365d)
build_error: 444 (30d)

我怎样才能完全删除它?感谢您的帮助!

最佳答案

mysql 已经卸载了。查看输出中间的这些行:

Not installed
From: https://github.com/Homebrew/homebrew-
core/blob/master/Formula/mysql.rb

Homebrew 正在从 GitHub 远程获取有关 mysql 的依赖项和使用情况的信息。我也没有安装 mysql,当我运行 brew info mysql 时得到相同的输出。如果您尝试从命令行运行 mysql,您应该得到 -bash: mysql: command not found

关于mysql - 如何从 brew info mysql 中删除 mysql 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52483262/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com