solenoid connection to arduino-2-pin JST PH connector.

I bought this solenoid

I want to connect the solenoid to breadboard or arduino's GPIO (to give it power and control from arduino and not external power source)
.
I don't know how to handle this type of connector

appreciate a help.

jossie.

There is NO WAY you can do that without an external power source.

Cut the connector off and solder on header pins?

You cannot and must not try driving a relay direct from Arduino pins, you
risk blowing up the Arduino.

A relay winding is a highly inductive load and takes a lot of current. You
need a switching transistor or MOSFET to drive it, and a freewheel
diode to prevent inductive spike from frying everything. Checkout
the Arduino Playground entry on relays, same thing as a solenoid
electrically.

thanks steini44 and mark,
I did not know that solenoid draw so much power.
i'll probably look for another type of motor.perhaps servo.
and sorry for late reply.
thankx again.
jossie