有一次用ports安装后不能运行也不能随系统启动
没办法,去mysql.com下载了2进制包来直接解压安装
这下还是不能启动mysqld
强行用 pkg_del 去掉mysql 的pkg后运行
mysql/supportedfiles/mysql.server start
就可以启动mysqld了
要想随系统启动我这样做成了:
cp mysql/supportedfiles/mysql.server /usr/local/etc/rc.d/mysqld.sh
然后在/etc/rc.conf中加入一行
mysqld_enable=YES
reboot 系统重启动后mysqld就可自动运行了。