When you get the error:
It can be for several reasons, one of them is also the post installation.
To resolve follow these steps:
- 1st - Find out which version of MySQL you have
- 2nd - Then run the command
Where X.X.XX is the version of your MySQL
The output will be something like:
After that, you will need to restart your MySQL server (example for systemd, if you have OpenRC use the
- 3rd - And then run the command below with root
The password you should enter (if you have not yet created a root password for MySQL) is your system root user’s password
So you’ll probably be able to log in to MySQL.
If you want the normal user to log in as root, run the command below:
Okay, solved, enjoy MySQL !!!
via: https://wiki.gentoo.org/wiki/MySQL and https://wiki.gentoo.org/wiki/MySQL/Startup_Guide
recommended reading: https://wiki.gentoo.org/wiki/MySQL/Migrate_to_5.0