Skip to main content

How do I uninstall and reinstall MySQL in Ubuntu - Windows Subsystem for Linux


Before you remove your MySQL installation, try running the following command from the CLI.
mysql_secure_installation
If a password hasn't been set for root (for MySQL), that'll prompt you to set a password and run you through a series of steps to help clean up and secure MySQL (basic security).
Once set, then try running the command below to restart MySQL and see if you receive an error.
service mysql restart
We can troubleshoot to see what the issue is, as long as I know what errors you're receiving, or we can wipe the installation and start from scratch.
To remove MySQL, first you'd want to run:
apt-get remove -y mysql-*
and then:
apt-get purge -y mysql-*
The first command removes MySQL and associated packages while the second wipes configuration.

Official Page:- Windows Doc

Comments

Popular posts from this blog

3 Ways to extract the Windows 8 /10 Product key from the BIOS/UEFI

Sometimes you need your Windows 8 product key, in versions prior to Windows 8 it was quite easy, you can only look at the label of the product label on your computer. But since Windows 8 Microsoft has made a change. Most likely, you no longer have a product label. Instead, they register the product key in their BIOS / UEFI. This is a good feature because now when you reinstall Windows 8, your product key is automatically recovered from the BIOS / UEFI. But recovering the product key on its own was a bit more complicated. But fortunately, we can still extract it. If you can not start Windows, see the last part of Method 1 that will describe a method that does not require an installed version of Windows. 1- ShowKeyPlusUWP This is probably a bit easier. You can find the tool here: https://github.com/Superfly-Inc/ShowKeyPlus/releases/download/ShowkeyPlus/ShowKeyPlus.zip Extract the ZIP file and run ShowKeyPlus.exe This will show your installed key along with your OEM Key if prese...

80 year old surprising Beggar donating his money

Meet 98 year old Dobri Dobrev, a man who lost his hearing in the second world war. Every day he walks 10 kilometers from his village in his homemade clothes and leather shoes to the city of Sofia, Bulgaria, where he spends the day begging for money. Though a well known fixture around several of the city’s churches, known for his prostrations of thanks to all donors, it was only recently discovered that he has donated every penny he has collected — over 40,000 euros — towards the restoration of decaying Bulgarian monasteries and the utility bills of orphanages, living instead off his monthly state pension of 80 euros.

Warrior Empire: The Mughals

Warrior Empire: The Mughals is a sweeping, in-depth portrait of India’s most colorful, violent, and majestic era. From 1526 to 1858, this dynasty of nomadic warriors indulged their appetite for territorial expansion, spreading their rule throughout the Indian subcontinent. Though they conquered their kingdom with crushing brutality, the Mughals were also brilliant technological innovators and masters of art and architecture. This program offers lush, detailed images of Mughal accomplishments such as the glorious Taj Mahal, palaces, forts, water systems, elaborate gardens, and richly crafted artwork.