How to connect 2 Usb wires together?

divijpawar

Reputable
Jul 9, 2015
8
0
4,520
My mouse's usb port came off when I tried unplugging it .
I have a psp's usb cable which has a usb port at one end and micro usb and charging pin at another end.
The problem is my mouse has black , white ,red,green wires whereas psp's wire has yellow ,blue,red and what appears to be brown.
How can i solder these wires together?? Does anybody know the usb color code?
 


I just need to know which are the wires i need to solder. Buying is not an option for me 🙁