mac上的mysql数据库的默认数据库mysql被删除了,怎么恢复?

刚建好的mysql里面有两个库实例,mysql和test,我的mysql被删除了,怎么重建呢?

我用mysql_install_db命令,说 ‘’’ FATAL ERROR: Could not find ./bin/my_print_defaults

If you compiled from source, you need to run ‘make install’ to copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top level of the extracted archive, or pass the --basedir option pointing to that location. ‘’’

重新安装吧,$brew reinstall mysql 也报错 ‘’ curl: (22) The requested URL returned error: 404 Not Found

Error: Failed to download resource “mysql”

Download failed: https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-boost-8.0.12.tar.gz ‘’

支持一把!谢谢!

现在 $ brew 命令报错好像是因为我电脑到github.com连不出去,ping 的报错都是time out.

没有被删除,用mysql的root账户登录mysql就能看到所有的库实例都在,包括mysql