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

Most Motivational Movies for Entrepreneurs

The Pursuit of Happyness(2006) While the protagonist (played by Will Smith) in this upbeat film succeeds by becoming a successful salesman for a huge financial firm, Chris Gardner (the actual person) used his sales skills to start his own company. Office Space Motivation comes in two varieties: positive and negative. Positive motivation moves you forward; negative motivation keeps you from going backwards. This film reminds entrepreneurs why they should never settle for a corporate job again. The Social Network Even though actor Jesse Eisenberg plays Mark Zuckerberg as if he were Lex Luthor's little brother, the story of Facebook's rapid growth is a testament that sometimes entrepreneurs do change the world. The Aviator Before there was Richard Branson or Elon Musk, there was Howard Hughes. This bio-pic captured both the personal and business struggles of one of history's most enigmatic and creative entrepreneurs. Nightcrawler (2014) Nightc

Top 15 Best Live Streaming Platforms

Live streaming encompasses a wide variety of topics, from social media to video games. When it comes to finding the best live streaming platform there is a lot of competition around. Today we will go through each of the most popular platforms to help you find the right one for you to stream your gameplay. 5 Best Live Streaming Platforms 5 Top Free Live Streaming Platforms 5 Best Game Streaming Platforms 5 Best Live Streaming Platforms for All Needs 1. Netflix Netflix is best known for allowing people to watch series and films from numerous devices. Users can open an account and add different user profiles which is great for people that want to have separate accounts for their whole household without opening numerous accounts and paying separately. It has now added a live streaming service allowing viewers to partake in live exercise classes and watch sports as they happen. 2. LiveStream LiveStream is a paid live streaming platform that lets customers upload l