Mysql 재설치중 에러가 발생하네요 ㅠㅠ

[code:3lwx648g]ubuntu@ip-172-31-5-205:/usr/bin$ sudo apt-get install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
Need to get 0 B/12.4 kB of archives.
After this operation, 133 kB of additional disk space will be used.
Selecting previously unselected package mysql-client.
(Reading database ... 52400 files and directories currently installed.)
Preparing to unpack .../mysql-client_5.5.37-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-client (5.5.37-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.37-0ubuntu0.14.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (–configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.

dpkg: error processing package mysql-server (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mysql-client (5.5.37-0ubuntu0.14.04.1) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ip-172-31-5-205:/usr/bin$ [/code:3lwx648g]

먼저 이 명령어를 실행하신 뒤에…

$ sudo dpkg --configure -a

그래도 mysql이 정상 동작하지 않거나 하면 재설치를 하세요

$ sudo apt-get --yes autoremove --purge mysql-server-5.5

$ sudo apt-get --yes autoremove --purge mysql-client-5.5

$ sudo apt-get --yes autoremove --purge mysql-common

주의 : 기존에 사용하던 db가 있다면 먼저 백업 후 진행하세요

$ sudo rm -rf /var/lib/mysql /etc/mysql ~/.mysql

주의 : 기존에 사용하던 db가 있다면 먼저 백업 후 진행하세요

$ sudo deluser mysql

$ sudo apt-get autoclean

$ sudo apt-get update && sudo apt-get upgrade

$ sudo apt-get install mysql-server-5.5 mysql-client-5.5