こうなったので
ec2-user:/environment/talkle4 (master) $ sudo touch /var/lib/mysql/mysql.sock/environment/talkle4 (master) $ sudo chown mysql:mysql /var/lib/mysql/mysql.sock
ec2-user:
ec2-user:~/environment/talkle4 (master) $ sudo /etc/init.d/mysqld restart
Stopping mysqld: [ OK ]
Socket file /var/lib/mysql/mysql.sock exists.
The file /var/lib/mysql/mysql.sock is not a socket file, which is suspicious.
Please, remove /var/lib/mysql/mysql.sock manually to start the service.
エラー番号が13になりました。そのほかやってみたこととしては
ec2-user:/environment/talkle4 (master) $ sudo mysql.server restart/environment/talkle4 (master) $ sudo chown mysql:mysql /var/lib/mysql
sudo: mysql.server: command not found
ec2-user:
ec2-user:/environment/talkle4 (master) $ sudo mysql.server restart/environment/talkle4 (master) $ mysql -u root
sudo: mysql.server: command not found
ec2-user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
ec2-user:/environment/talkle4 (master) $ sudo chown mysql:mysql /tmp^C/environment/talkle4 (master) $ sudo chmod 777 /tmp/mysql.sock
ec2-user:
ec2-user:~/environment/talkle4 (master) $ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)