1 , initialize MySQL database (actually MySQL table, test table, infomation table)
# Cd/mysql/mysql
# scripts/mysql_install_db--user=mysql--basedir=/mysql/mysql--datadir=/data/3307
2 , copy the startup file
#cp/mysql/mysql/support-files/mysql.server/etc/init.d/mysqld
3 , change the configuration file
# CP/MYSQL/SUPPOTS-FILE/MY-DEFAULT-CNF
[Client]
port=
socket=
Prompt=\\[email protected] \\r:\\m:\\s->
# at the time of landing, distinguish the sign of landing
[Mysqld]
Basedir=
Datadir=
port=
Server-id=
Socket=/data/mysql.sock
Log-bin=/data/mysql_bin
Binlog_format=mixed/row/sql
binlog-do-db=
binlog-ignore-db=
Long_query_time=1
Relay-log=/data/relay_bin
Relay-log-info-file=/data/relay_log.info
[Mysqld_safe]
Log-error=/data/mysql_err.log
Pid-file=/data/mysql_pid.pid
4 , start MySQL
#/etc/init.d/mysqld start
This article is from the "Technical Bo" blog, please be sure to keep this source http://hostman.blog.51cto.com/6303208/1673488
MySQL Series b------MySQL installation