Difference between revisions of "MySQL"
(No difference)
| |
Revision as of 02:32, 31 January 2021
- Medium article on how to clean out existing installation before reinstalling
Resetting the 'root' password
This is one of the most vexing actions to execute in all of computing administration. It's unclear if what appears to be just plain wrong advice (issue mysqladmin -u root -p flush-privileges password 'new_passwd') is installation, platform or sequence dependent, or if it's just plain wrong. I will catalog below the methods that affirmatively DO NOT WORK to save others the trouble.
- From the MySQL 8.0 Reference Manual
1. "Log on to your system as the Unix user that the MySQL server runs as (for example, mysql)." (This means root, since I've never logged in otherwise.)
2. Stop the MySQL server. (No instructions here, so I'm going with systemctl stop mysql. No need for sudo since I'm already root.)
3.
Abandoning this. Going to try and run mysql in a docker container. Here are the docker installation instructions. And now back to our program on dev.mysql.com