Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 97101  / 3 Years ago, sat, may 22, 2021, 2:52:25

I know that some users may say that this is a duplication but seriously I have combed the answers and those on the internet for over half a day and I am so frustrated i am going to explode.



Now that therapeutic explanation is done, I have installed MySql Server and MariaDb 10 from the Ubuntu repositories on Ubuntu 12.04 LTS and input the root password when it is installing[When the pink screen appears and prompts for the root password] and the installation goes through as smoothly as a knife through butter.



Now the real frustration begins in either of the below 2 scenarios:




  1. When I enter the sudo /usr/bin/mysql_secure_installation command nd am prompted to enter the root password



or



2.When I enter the mysql -u root -p command and am prompted for the password.



Please I really need help on this - I have lost count of the number of times I have had to uninstall and reinstall either MySQL or MariaDb because this pain in neck erf an error.


More From » server

 Answers
6

I think I may have figured out the issue - It has to do with the long password.I think that this should reported as a bug to MySQl and MariaDB developers because on installation you can create a password with over 100 characters but when you try to login to MySQl or MariaDB when it is in production you get the above error.



So glad I figured this out after so much pain - surprising really that this has not been identified as a bug considering how many years MySQL has been in production.



So basically one resolution is to go through the following steps to resolve the above issue:




  1. Start with a blank password on a non-production server and is if it works


  2. If you are successful with step 1 then proceed with securing your mysql installation by typing the follwing command: sudo /usr/bin/mysql_secure_installation and try entering a more complex password - comination of lowercase letters, numbers, symbols and uppercase letters of at least 8 characters should be fine.


  3. I recommend starting with 8 and move upwards till you reach a ceiling with the number of characters you can enter.




The above should be a step in the right direction to getting your MySQL server secured.


[#26002] Saturday, May 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ranquctive

Total Points: 391
Total Questions: 103
Total Answers: 104

Location: South Sudan
Member since Thu, Feb 4, 2021
3 Years ago
ranquctive questions
;