Arduino mega 2560 won't get detected by pc

pert:
Are you saying that you tried a different board with the same USB cable and same USB port on the same PC and the problem did not occur with that board?

Yup.