1、MySQL的安装:

shell

# cd /usr/ports/databases/mysql55-server/ && make install clean

编辑MySQL配置文件:

shell

# cp /usr/local/share/mysql/my-small.cnf /usr/local/etc/my.cnf

2、MySQL添加到开机自启:

编辑/etc/rc.conf文件:

shell

# vi /etc/rc.conf

增加如下一行:

mysql_enable="YES" 

启动MySQL

shell

# /usr/local/etc/rc.d/mysql-server start
 
四、mysql的配置.txt · 最后更改: 2012/04/17 14:56 由 shaobo
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki