Internal server error on localhost

I have installed ERPNext on localhost but I am facing Internal server error when I try to access the site.
I have followed the following link for installation
https://github.com/frappe/frappe/wiki/Guide:-Manual-Install-ERPNext-on-Ubuntu-17.xx-and-18.xx-(develop-branch)#database-login-issues
Please help.

Hi, try resolving the issue as suggested in this video. It worked for me:

Regards.

Thank you for the reply @Sirjames. After running the command
" sudo mysqld --tc-heuristic-recover=ROLLBACK"
I am facing the following error.

bench@ashutosh-Latitude-E7450:~/bench$ sudo mysqld --tc-heuristic-recover=ROLLBACK
2020-03-18 17:08:57 140360558750848 [Note] mysqld (mysqld 10.1.44-MariaDB-0ubuntu0.18.04.1) starting as process 7026 …
2020-03-18 17:08:57 140360558750848 [ERROR] mysqld: Can’t lock aria control file ‘/var/lib/mysql/aria_log_control’ for exclusive use, error: 11. Will retry for 30 seconds
2020-03-18 17:09:28 140360558750848 [ERROR] mysqld: Got error ‘Could not get an exclusive lock; file is probably in use by another process’ when trying to use aria control file ‘/var/lib/mysql/aria_log_control’
2020-03-18 17:09:28 140360558750848 [ERROR] Plugin ‘Aria’ init function returned error.
2020-03-18 17:09:28 140360558750848 [ERROR] Plugin ‘Aria’ registration as a STORAGE ENGINE failed.
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: The InnoDB memory heap is disabled
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Using Linux native AIO
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Using SSE crc32 instructions
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Initializing buffer pool, size = 256.0M
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Completed initialization of buffer pool
2020-03-18 17:09:28 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:28 140360558750848 [Note] InnoDB: Retrying to lock the first data file
2020-03-18 17:09:29 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:29 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:30 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:30 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:31 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:31 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:32 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:32 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:33 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:33 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:34 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:34 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:35 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:35 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:36 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:36 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:37 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:37 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:38 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:38 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:39 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:39 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:40 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:40 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:41 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:41 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:42 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:42 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:43 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:43 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:44 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:44 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:45 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:45 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:46 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:46 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:47 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:47 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:48 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:48 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:49 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:49 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:50 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:50 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:51 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:51 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:52 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:52 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:53 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:53 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:54 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:54 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:55 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:55 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:56 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:56 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:57 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:57 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:58 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:58 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:09:59 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:09:59 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:00 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:00 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:01 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:01 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:02 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:02 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:03 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:03 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:04 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:04 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:05 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:05 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:06 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:06 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:07 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:07 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:08 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:08 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:09 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:09 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:10 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:10 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:11 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:11 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:12 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:12 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:13 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:13 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:14 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:14 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:15 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:15 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:16 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:16 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:17 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:17 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:18 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:18 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:19 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:19 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:20 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:20 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:21 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:21 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:22 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:22 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:23 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:23 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:24 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:24 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:25 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:25 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:26 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:26 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:27 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:27 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:28 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:28 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:29 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:29 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:30 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:30 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:31 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:31 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:32 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:32 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:33 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:33 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:34 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:34 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:35 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:35 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:36 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:36 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:37 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:37 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:38 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:38 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:39 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:39 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:40 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:40 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:41 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:41 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:42 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:42 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:43 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:43 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:44 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:44 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:45 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:45 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:46 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:46 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:47 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:47 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:48 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:48 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:49 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:49 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:50 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:50 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:51 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:51 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:52 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:52 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:53 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:53 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:54 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:54 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:55 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:55 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:56 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:56 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:57 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:57 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:58 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:58 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:10:59 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:10:59 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:00 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:00 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:01 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:01 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:02 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:02 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:03 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:03 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:04 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:04 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:05 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:05 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:06 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:06 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:07 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:07 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:08 140360558750848 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2020-03-18 17:11:08 140360558750848 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2020-03-18 17:11:08 140360558750848 [Note] InnoDB: Unable to open the first data file
2020-03-18 17:11:08 7fa83d3eac80 InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means ‘Resource temporarily unavailable’.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2020-03-18 17:11:08 140360558750848 [ERROR] InnoDB: Can’t open ‘./ibdata1’
2020-03-18 17:11:08 140360558750848 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2020-03-18 17:11:08 140360558750848 [ERROR] Plugin ‘InnoDB’ init function returned error.
2020-03-18 17:11:08 140360558750848 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2020-03-18 17:11:08 140360558750848 [Note] Plugin ‘FEEDBACK’ is disabled.
2020-03-18 17:11:08 140360558750848 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-03-18 17:11:08 140360558750848 [ERROR] Aborting

Wow.

My experience I had issues too.

a) First time, I mis-typed the command.
b) Second time, I had to restart server before it worked.

Hope this helpful in some way.

I typed the command correct. Even tried second time but still the same error.

if you look at your error logs, it shows you have misconfigured your mysql server. it has nothing to do with Frappe/ERPNext bugs or errors. You should find help from internet because it generic issue related to mysql.

If nothing important is hosted inside your mysql server, then simply do clean uninstall and then try official installation steps from