How do I click trust on my computer after accidentally click do not?
You should be prompted again if you unplug the phone and plug it back in.
You can also reset your trust settings in the Settings app under General then Reset.
Here's an explanation from Apple's support site:

If you tap Trust, the computer will be trusted until you untrust all computers or you erase the device. If you tap Don't Trust, you'll see this alert each time you connect your device to that computer.
If you're using iOS 8 or later: To untrust all computers, tap Settings &gt; General &gt; Reset &gt; Reset Location &amp; Privacy. This will also reset your location and privacy settings. You can also untrust all computers by tapping Settings &gt; General &gt; Reset &gt; Reset Network Settings. This will also reset your network settings.