Lol....

The fan is DC, the wall is AC. I dunno how much basic electricity you've learned, either from school, or common sense but these two can not be hardwired together and work.

Get a 12v AC/DC universal adapter. Cut off the wire from the adapter that is supposed to be plugged into a phone, cd, w/e and then plug it into the fan.