I took down the existing ceiling fan with light fixture and put up a simple light fixture w/out a fan. The fan/light was controlled by one switch, with simple wiring (one black and one white wire). When I turned the breaker back on, the light came on, yay, but now the light won't turn off.
The wiring from the ceiling consists of two black, two white, and a ground...the wiring in the new light fixture also has two white, two black, and a ground wire.
How should these be connected?
You need to know which cable is the power feed and which cable runs to the switch. As far as the light fixture is concerned the 2 blacks and the 2 whites connect together. Then the whites are connected to the white from the power feed cable. Then the black power feed cable connects to the black wire from the switch,and the white wire from the switch connects to the 2 blacks from the fixture.