我正在尝试在本地计算机上安装 openstack。我遵循以下文档:开发栈。安装过程因以下错误而中断:-
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
我也尝试过改变
bind-address = 127.0.0.1
到
bind-address = localhost
我也尝试重新启动 mysql 服务器,但仍然出现同样的错误。
错误:-
+ sudo mysql -uroot -pstackdb -h127.0.0.1 -e 'GRANT ALL PRIVILEGES ON *.* TO
'\''root'\''@'\''%'\'' identified by '\''stackdb'\'';'
Configuring and starting MySQL
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace
stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2013-04-01-164236