Connection between esp 8266-01 and Arduino Mega

Hi there! I am currently trying to connect esp 8266-01 with my Arduino Mega board. But most of esp 8266 pinout on the online source is different with mine.
My esp 8266-01 pinout is like below:

3v3|RX
RST|IO0
EN|IO2
TX|GND

Anyone familiar with the connection? and also how to upload wifi and its password to esp 8266-01??
Thanks in advance!

it is the normal esp-01 pinout when viewed from the other side of the board