エラー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)

localhostの場合でもインストールしようとすると同じエラーが発生します。

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

提案をいただきありがとうございます。

関連情報