mysql安装

01 # 安装mysql
02 su - work
03 cd $HOME/local/src
05 tar zxvf mysql-5.1.49.tar.gz
06 cd mysql-5.1.49
07 ./configure --prefix=/home/work/local/mysql --with-charset=utf8 --with-extra-charsets=gbk,utf8,ascii,big5,latin1,binary --localstatedir=/home/work/local/mysql --with-plugins=all --with-pthread --enable-static --enable-thread-safe-client --enable-assembler --without-ndb-debug --with-unix-socket-path=/home/work/local/mysql/tmp/mysql.sock --with-mysqld-user=work
08 make
09 make install
10 mkdir -p /home/work/local/mysql/{tmp,log,data,etc}
11 touch /home/work/local/mysql/tmp/mysql.sock
12 /home/work/local/mysql/bin/mysql_install_db --datadir=/home/work/local/mysql/data
13 wget  ftp://pmo:pmo@ftp.iit.baidu.com/07.online-soft/my_master.cnf -P /home/work/local/mysql/etc
14 cd /home/work/local/mysql/etc
15 mv my_master.cnf my.cnf
16
17
18 # 启动mysql
19 su - work
20 /home/work/local/mysql/bin/mysqld_safe &
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值