I used pkg(8) to install MySQL 5.7 by this command:
Then I have problems to start MySQL, and the command and output is listed below:
And I search by google and someone said the /usr/local/etc/rc.d/mysql-server file have to be modified. The line
should comment the string
.
I follow this order, and finally get these errors:
Please help me ,thanks!
$ sudo pkg install mysql57-server
Then I have problems to start MySQL, and the command and output is listed below:
Code:
$ sudo sysrc mysql_enable=yes
mysql_enable: -> yes
$ sudo service mysql-server start
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql
Code:
eval $mysql_install_db $mysql_install_db_args >/dev/null 2>/dev/null
Code:
">/dev/null 2>/dev/null"
I follow this order, and finally get these errors:
Code:
$ sudo service mysql-server start
2016-06-15 22:55:14 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2016-06-15 22:55:14 [ERROR] Child process: /usr/local/libexec/mysqldterminated prematurely with errno= 32
2016-06-15 22:55:14 [ERROR] Failed to execute /usr/local/libexec/mysqld --defaults-extra-file=/usr/local/etc/mysql/my.cnf --bootstrap --datadir=/var/db/mysql --lc-messages-dir=/usr/local/share/mysql --lc-messages=en_US --basedir=/usr/local
-- server log begin --
mysqld:
-- server log end --
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql