从Ports安装MySQL

安装了mysql55-server
 
#cd /usr/ports/database/mysql51-server
#make
#make install clean (安装) 
等待完成……………………………… 
#chown -R mysql /var/db/mysql
#chgrp -R mysql /var/db/mysql
#cp /usr/local/share/mysql/my-medium.cnf /usr/local/etc/my.cnf(选择一个配置文件)
#echo 'mysql_enable = "YES"' >>/etc/rc.conf(开机启动) 
#mysqld_safe(启动) 
#/usr/local/bin/mysql_intall_db --user=mysql 
#mysqladmin -u root password "newpassword" 

完成...... 

#mysql -u root -p
Enter password:
 
 
mysql>show databases;(enter)
posted @ 2010-10-16 08:56  CalvinChu  阅读(247)  评论(0编辑  收藏  举报