免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1792 | 回复: 2
打印 上一主题 下一主题

[实践] 请问有装源码包的通用方法吗? [复制链接]

论坛徽章:
1
程序设计版块每日发帖之星
日期:2016-06-29 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-06-26 21:57 |只看该作者 |倒序浏览
    装mysql源码版的,装了多次没装上。还有也想装其他的源码版的程序。

论坛徽章:
1
程序设计版块每日发帖之星
日期:2016-06-29 06:20:00
2 [报告]
发表于 2016-06-26 22:09 |只看该作者
我们的资料是这样的:
# tar xf /share/soft/lamp/mysql_source/mysql-5.1.72.tar.gz -C /usr/src/
# cd /usr/src/mysql-5.1.72/
# ./configure --prefix=/usr/local/mysql --enable-assembler --enable-profiling --enable-local-infile --with-charset=gbk --with-extra-charsets=utf8,gb2312 --with-pthread  --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-low-memory --with-big-tables --with-plugins=myisam,innobase,ndbcluster --with-mysqlmanager
#make
#make install
# mkdir /usr/local/mysql/etc        --# vim /usr/local/mysql/etc/my.cnf       
[mysqld]
port=3307               
datadir=/date
socket=/var/run/mysqld/mysql5.socket       
pid-file=/var/run/mysqld/mysql5.pid
log=/var/log/mysqld/mysql5.log
log-err=/var/log/mysqld/mysql5-err.log
# mkdir /data   /var/run/mysqld/  /var/log/mysqld

# chown mysql.mysql /data  /var/log/mysqld /var/run/mysqld/ /usr/local/mysql/  -R
# cp /usr/src/mysql-5.1.72/support-files/mysql.server  /etc/init.d/mysql5
# vim /etc/init.d/mysql5
conf=/usr/local/mysql/etc/my.cnf       
# chmod 755 /etc/init.d/mysql5
# /usr/local/mysql/bin/mysql_install_db --datadir=/data/ --user=mysql
#/etc/init.d/mysql5  start
# /usr/local/mysql/bin/mysqld_safe --defaults-file=/usr/local/mysql/etc/my.cnf &

# /usr/local/mysql/bin/mysql --socket=/var/run/mysqld/mysql5.socket
#vim /usr/local/mysql/etc/my.cnf
[client]
socket=/var/run/mysqld/mysql5.socket
# /usr/local/mysql/bin/mysql  
# cp /usr/local/mysql/bin/mysql /bin/mysql5
# /usr/local/mysql/bin/mysqladmin shutdown  -p

论坛徽章:
1
程序设计版块每日发帖之星
日期:2016-06-29 06:20:00
3 [报告]
发表于 2016-06-29 20:24 |只看该作者
帮忙装上了

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.16 Source distribution

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2016-06-29 20:23:30 |
+---------------------+
1 row in set (0.00 sec)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP