安装前准备
如果mysql用户不存在,那么添加mysql用户
groupadd mysqluseradd -g mysql mysql |
mysql编译安装
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.70.tar.gztar -zxvf mysql-5.1.70.tar.gzcd mysql-5.1.70yum install ncurses ncurses-devel./configure '--prefix=/usr/local/mysql' '--without-debug' '--with-charset=utf8''--with-extra-charsets=all' '--enable-assembler' '--with-pthread' '--enable-thread-safe-client' '--with-mysqld-ldflags=-all-static' '--with-client-ldflags=-all-static' '--with-big-tables' '--with-readline''--with-ssl' '--with-embedded-server''--enable-local-infile' '--with-plugins=innobase'makemake install到此mysql就安装到了/usr/local/mysql路径下,下面开始mysql的配置工作。安装mysql选项文件
mysql设置开机自启动
配置权限表
启动mysql
mysql如何导入旧的数据:
|
版权所有:兴化市领风网络技术有限公司 Copyright 2012 lfwl.com.cn All right reserved
地址:兴化市九洲城中城2号6-064商铺(老长途汽车站对面,金融大厦西50米) 电话:18001423889 备案号:苏ICP备12002775号-3