The first time the Israelites complained about no water, they grumbled out of Moses' hearing. The second time (38 years later), they spoke to him directly. This was an improvement.
The first time the Israelites complained about no water, God told Moses to strike the rock. The second time, God told him to speak to the rock. God tailored the response to the character of the people at the time.