Upload Code on Arduino Mega using FTDI Cable
FTDI cables usually have RTS which is used to bring Reset low. If you only have four pins, press the Reset button on the board the moment you start the upload.