I have installed
A temporary password is generated for root@localhost: randomPassword
mysql -uroot -p'randomPassword'. But this still doesn't work. What is my password? I may have installed
I don't have experience of MacOS installs. In my experience of Linux installs, it prompts for the user to enter a root password on install.
There are however a wealth of instructions around on how to reset the root password if not known. I have used the
--skip-grant-tables method many times.
mysqlcommand line client
mysql> FLUSH PRIVILEGES;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';for MySQL 5.7.6 and later, or
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');for MySQL 5.7.5 and earlier
Source: MySQL Manual