I found the solution and would like to share it the community.
First I have removed the warning of max_open_files
by editing file using this command
sudo nano /etc/systemd/system/mysqld.service
Changed LimitNOFILE to 40000 from 16364
#LimitNOFILE=16364
LimitNOFILE=40000
Then I googled and found the same problem on this thread
Repeated the same procedure
checked mysql-error.log file and the error was same.
Then entered 2 commands and my app was up and functional
mysqld --tc-heuristic-recover=ROLLBACK
service mysql start