A mí me gusto cocinar.
this is because you are saying 'cooking pleases me' so you use 'me', te would be you and le would be it/her/him. it is gusto as the conjugation of this verb is
gusto (me)
gustas (you singular)
gusta (he/she/it)
gustamos (we)
gustáis (you plural)
gustan (them)