The problem is with the cookie domain.
Login as forum admin. Goto Configuration --> settings --> general settings Clear the field: Cookie Domain
In case your admin login fails or you are not able to select configuration after your login don't worry!
Open the file: /forum/inc/settings.php Search for $settings['cookiedomain'] and set the field to empty string.
Now you can login into MyBB in your localhost!!