Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Email

第 18 章 mysql

目錄

18.1. install

18.1. install

18.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>