To edit the database, install phpmyadmin.
http://www.phpmyadmin.net/home_page/index.php
Edit table: mdl_config table
edit the value(s) in 'blockedip'
To remove any IP from being blocked, remove whatever values are there and leave it blank.
'spirit of sharing', Ken