Hi,
I am trying to install mysql but none of the files containing the default password exist
I am trying to install mysql but none of the files containing the default password exist
Code:
root@rancid:/home/rancid # pkg info -D mysql57-server
mysql57-server-5.7.40:
On install:
Initial password for first time use of MySQL is saved in $HOME/.mysql_secret
ie. when you want to use "mysql -u root -p" first you should see password
in /root/.mysql_secret
MySQL57 has a default /usr/local/etc/mysql/my.cnf,
remember to replace it with your own
or set `mysql_optfile="$YOUR_CNF_FILE` in rc.conf.
On upgrade:
Remember to run mysql_upgrade the first time you start the MySQL server
after an upgrade from an earlier version.
root@rancid:/home/rancid #
root@rancid:/home/rancid # cat $HOME
cat: /root: Is a directory
root@rancid:/home/rancid # cat $HOME/.mysql_secret
cat: /root/.mysql_secret: No such file or directory
root@rancid:/home/rancid # cat root/.mysql_secret
cat: root/.mysql_secret: No such file or directory
root@rancid:/home/rancid #
root@rancid:/usr/local/etc/mysql #
root@rancid:/usr/local/etc/mysql # locate mysql_secret
root@rancid:/usr/local/etc/mysql # locate mysql57-server_secret
root@rancid:/usr/local/etc/mysql #
root@rancid:/usr/local/etc/mysql # root/.mysql_secret
root/.mysql_secret: Command not found.
root@rancid:/usr/local/etc/mysql # /root/.mysql_secret
/root/.mysql_secret: Command not found.
root@rancid:/usr/local/etc/mysql # $HOME/.mysql_secret
/root/.mysql_secret: Command not found.
root@rancid:/usr/local/etc/mysql # /$HOME/.mysql_secret
//root/.mysql_secret: Command not found.
root@rancid:/usr/local/etc/mysql #
root@rancid:/home/rancid #
root@rancid:/home/rancid # cd /usr/local/etc/mysql
root@rancid:/usr/local/etc/mysql # ls -lah
total 40
drwxr-xr-x 3 root wheel 512B Apr 6 15:36 .
drwxr-xr-x 39 root wheel 2.0K Apr 6 15:36 ..
drwxr-x--- 2 mysql mysql 512B Mar 21 01:54 keyring
-rw-r--r-- 1 root wheel 2.2K Mar 21 01:54 my.cnf
-rw-r--r-- 1 root wheel 2.2K Mar 21 01:54 my.cnf.sample