Only center of terrain is textured

I recently tried to make a terrain,but when I added a material and created it, only the very center of the terrain had a material on it. How could I fix this so the entire terrain has a texture?