fanrenfly 发表于 2016-06-26 21:57

请问有装源码包的通用方法吗?

    装mysql源码版的,装了多次没装上。还有也想装其他的源码版的程序。

fanrenfly 发表于 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       

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/mysql5start
# /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

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

fanrenfly 发表于 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)
页: [1]
查看完整版本: 请问有装源码包的通用方法吗?