mysql 源码 安装
2013-11-28 12:47
399 查看
编译 MySQL5.0
# ./configure --prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data --enable-thread-safe-client
--enable-local-infile --enable-assembler
--enable-community-features --enable-profiling
--with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static
--with-charset=utf8 --with-collation=utf8_general_ci
--with-extra-charsets=all --with-mysqld-user=mysql
--without-embedded-server --with-big-tables
--with-server-suffix=-community
--with-unix-socket-path=/usr/local/mysql/etc/mysql.sock
--without-debug --without-man --without-docs --without-bench
--with-csv-storage-engine --with-blackhole-storage-engine
--with-federated-storage-engine
编译完成后的配置(其它版本的操作类似)
# cd /usr/local/mysql
# cp share/mysql/my-medium.cnf /etc/my.cnf
# mkdir etc
#cp
share/mysql/mysql.server /etc/init.d/mysqld
#chmod
755 /etc/init.d/mysqld
安装数据库文件
#
./bin/mysqld_install_db
# chown -R
root:root . //root:root 可以换成已存在的用户如已有用户lxc,
可以写成chown -R lxc:lxc .
#
./bin/mysqld_safe --user=root &
运行:mysqld
#/etc/init.d/mysqld start
改root密码
#mysqladmin -u root password
'####' //####为那你的密码
# ./configure --prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data --enable-thread-safe-client
--enable-local-infile --enable-assembler
--enable-community-features --enable-profiling
--with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static
--with-charset=utf8 --with-collation=utf8_general_ci
--with-extra-charsets=all --with-mysqld-user=mysql
--without-embedded-server --with-big-tables
--with-server-suffix=-community
--with-unix-socket-path=/usr/local/mysql/etc/mysql.sock
--without-debug --without-man --without-docs --without-bench
--with-csv-storage-engine --with-blackhole-storage-engine
--with-federated-storage-engine
编译完成后的配置(其它版本的操作类似)
# cd /usr/local/mysql
# cp share/mysql/my-medium.cnf /etc/my.cnf
# mkdir etc
#cp
share/mysql/mysql.server /etc/init.d/mysqld
#chmod
755 /etc/init.d/mysqld
安装数据库文件
#
./bin/mysqld_install_db
# chown -R
root:root . //root:root 可以换成已存在的用户如已有用户lxc,
可以写成chown -R lxc:lxc .
#
./bin/mysqld_safe --user=root &
运行:mysqld
#/etc/init.d/mysqld start
改root密码
#mysqladmin -u root password
'####' //####为那你的密码
相关文章推荐
- 源码编译安装MySQL 5.7.9
- MySQL 5.6.26源码安装
- 【原创】mysql-python安装 dj…
- 安装mysql时出现HTTP 500 内部服务…
- HIVE及Mysql 的安装
- liunx 安装Mysql
- 源码安装apache&mysql加入到系统服务
- LAMP 源码安装apache mysql php
- Mysql安装过程--使用源码安装 & 常用命令
- Mysql 安装失败的解决办法
- mysql CMake与make安装参数对应
- CentOS 6.3下源码安装LAMP(Li…
- Mysql for MacOSX 安装和基本操作
- 安装mysql时出现HTTP 500 内部服务…
- 编译安装nginx php mysql 遇到的问…
- linux centos7 编译安装mysql 5.6
- Centos 安装lamp环境,使用源码编…
- mysql安装图解 mysql图文安装…
- 安装mysql 5.5.14 报错
- CentOS 7 源码安装 mysql5.7.12 完整教程¢OS下mysql开启远程连接