For many African countries, a change of country name was part of the whole process of gaining complete independence from their colonisers. Countries such as Ghana, Tanzania, Burundi went through a renaming right after they gained independence.
Whiles many countries went through the name changing process, a few countries went through changing and relocation of their capital cities. Many countries already had capital cities that were industrial and had all the seats of government in one central place.
More about this
The cost of relocating, planning and rebuilding a capital city could also cost millions. Here are the African countries that decided to take new capital cities regardless of all the challenges.