Install MySQL 8 on FreeBSD

Written by Yujin Boby

Edit in WordPress

To install MySQL 8 on FreeBSD 13, run

pkg install mysql80-server-8.0.25_2

Enable start on boot

echo 'mysql_enable="YES"' >> /etc/rc.conf

Start MySQL server

service mysql-server start

By default MySQL root user have no password set. You can login with the command

mysql

See FreeBSD