![错误 2002 (HY000):无法连接到“xx.xxx.xxx.xxx”上的 MySQL 服务器 (115)](https://linux22.com/image/164799/%E9%94%99%E8%AF%AF%202002%20(HY000)%EF%BC%9A%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%E2%80%9Cxx.xxx.xxx.xxx%E2%80%9D%E4%B8%8A%E7%9A%84%20MySQL%20%E6%9C%8D%E5%8A%A1%E5%99%A8%20(115).png)
我想连接到 memsql,但是当我尝试连接时我无法连接,出现错误:
mysql -u root -h 127.0.0.1 -P 3306 --prompt="memsql> "
ERROR 2002 (HY000): Can't connect to MySQL server on '127.0.0.1' (115)
即使对于本地主机,当我尝试安装时也会遇到相同的错误:
sudo apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mysql-server' has no installation candidate
E: Package 'mysql-client' has no installation candidate
建议将不胜感激