It will aggro you and you can tame it with honey.

You must put the honey in your hotbar and then trow it to the pig and right after that you can mount it and start a minigame and while you do the minigame it gets tamed

More Andrewsarchus Taming & KO Tips