I\'m trying to access mysql and when I run the mysql command, I get the following.
[root@ip-10-229-65-166 tpdatabase-1.8.0.28356]# mysql ERR
[root@ip-10-229-65-166 tpdatabase-1.8.0.28356]# mysql
ERR
rm -rvf /var/lib/mysql/ib_logfile* touch /var/lib/mysql/mysql.sock touch /var/lib/mysql/mysql.pid chown -R mysql:mysql /var/lib/mysql systemctl restart mysql
try this and check the permission of both /var/lib/mysql/mysql.sock and /tmp