标签:使用 令行 usr python efi tps tor mysql命令 nec
brew install mysql
commond not found
重新执行一遍
brew install mysql
命令行提示:
Warning: mysql-5.7.10 already installed, it‘s just not linked
brew link --overwrite mysql
Linking /usr/local/Cellar/mysql/5.7.10...
Error: Could not symlink share/man/man8/mysqld.8
/usr/local/share/man/man8 is not writable.
sudo chown -R ‘yin‘ /usr/local
注意: yin是你电脑的用户名
brew link --overwrite mysql
提示:
Linking /usr/local/Cellar/mysql/5.7.10... 92 symlinks created
心想着,这下算是成功了吧。重新执行:
mysql -u root -p
但是又报错:
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
依次执行:
unset TMPDIR
bash mysql_install_db --verbose --user=root
--basedir="$(brew --prefix mysql)"--datadir=/usr/local/var/mysql --tmpdir=/tmp
接下来启动mysql
bash mysql.server start
标签:使用 令行 usr python efi tps tor mysql命令 nec
原文地址:https://www.cnblogs.com/java-xz/p/10280112.html