freebsd 下安装PORTS安装MYSQL

/usr/ports/databases/mysql51-server
# make install clean
 
 
/usr/local/bin
# ls
innochecksum                    mysql_config                    mysqlbug                        mysqltest_embedded
my_print_defaults               mysql_fix_privilege_tables      mysqlcheck                      perror
myisam_ftdump                   mysql_install_db                mysqld_safe                     replace
myisamchk                       mysql_tzinfo_to_sql             mysqldump                       resolve_stack_dump
myisamlog                       mysql_upgrade                   mysqlimport                     resolveip
myisampack                      mysql_waitpid                   mysqlshow
mysql                           mysqladmin                      mysqlslap
mysql_client_test_embedded      mysqlbinlog                     mysqltest
# ./mysql_install_db --user=mysql     初始化数据库
 ./mysqld_safe &     启动数据库
 
QH-XN-PA# netstat -an
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address       (state)
tcp4       0      0 *.3306                 *.*                    LISTEN
ps -ef|grep mysql
ps: Process environment requires procfs(5)
22804   1  I      0:00.01  /bin/sh ./mysqld_safe
23991   1  S+     0:00.00  grep mysql
 
./mysqladmin -u root password XXXX          修改密码
 

本文出自 “生活学习” 博客,转载请与作者联系!

你可能感兴趣的:(mysql,FreeBSD)