A 5.0 magnitude earthquake shook the coast of Northern California Wednesday night.