错误 2002 (HY000):无法连接到“xx.xxx.xxx.xxx”上的 MySQL 服务器 (115)

错误 2002 (HY000):无法连接到“xx.xxx.xxx.xxx”上的 MySQL 服务器 (115)

我想连接到 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

建议将不胜感激

相关内容