Home | Mirror | Search

第 15 章 mysql

目錄

1. install

1. install

1. install

freebsd# pkg_add -r mysql51-server
freebsd# /usr/local/bin/mysql_install_db 
freebsd# chown -R mysql /var/db/mysql 
		

/etc/rc.conf

freebsd# vi /etc/rc.conf
mysql_enable="YES"
		

start

freebsd# /usr/local/etc/rc.d/mysql-server start
Starting mysql.
		

set password

freebsd# /usr/local/bin/mysqladmin -u root password 'chen'
		
		
freebsd# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.39 FreeBSD port: mysql-server-5.1.39

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
		
		
comments powered by Disqus