I checked answers such as Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38) but the answers did not help.
I used service mysqld start
to run while generating the log file.
When trying to set up and run mysql, I continue to get the error
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
When I check the log file in /var/log/mysql.log I get the InnoDB error mesaage
The error means mysqld does not have the access rights to the directory.
File name ./ibdata1
File operation call: 'open'.
Cannot continue operation
directory /var/mysql does exist. I changed the mode by hand to 777 just to make sure and the run changed it back to 755.
drwxr-xr-x. mysql mysql /var/lib/mysql
-rwxrwxrwx. mysql mysql ibdata1
-rwxrwxrwx. mysql mysql ib_logfile0
-rwxrwxrwx. mysql mysql ib_logfile1
drwxrwxrwx. mysql mysql mysql srwxrwxrwx. mysql mysql shutdown (a DB I am trying to set up)
drwxrwxrwx. mysql mysql test
Other platforms in the system already have mysqld up and running and able to start or stop using service
.