1 |
|
### RPM external mysql 5.1.35 |
2 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib/mysql |
3 |
+ |
## INITENV SET MYSQL_HOME $MYSQL_ROOT |
4 |
|
|
5 |
|
#Different download locations according to the version. |
6 |
|
|
26 |
|
%build |
27 |
|
CFLAGS=-O3 CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \ |
28 |
|
./configure --prefix=%i --with-extra-charsets=complex \ |
29 |
< |
--enable-thread-safe-client --enable-local-infile |
29 |
> |
--enable-thread-safe-client --enable-local-infile \ |
30 |
> |
--with-plugins=innobase |
31 |
|
make %makeprocesses |
32 |
|
|
33 |
|
%install |
51 |
|
</Tool> |
52 |
|
EOF_TOOLFILE |
53 |
|
|
54 |
< |
%post |
53 |
< |
%{relocateConfig}bin/msql2mysql |
54 |
< |
%{relocateConfig}bin/mysqlaccess |
55 |
< |
%{relocateConfig}bin/mysqlbug |
56 |
< |
%{relocateConfig}bin/mysql_config |
57 |
< |
%{relocateConfig}bin/mysqld_multi |
58 |
< |
%{relocateConfig}bin/mysqld_safe |
59 |
< |
%{relocateConfig}bin/mysql_fix_privilege_tables |
60 |
< |
%{relocateConfig}bin/mysql_install_db |
61 |
< |
%{relocateConfig}etc/scram.d/%n |
62 |
< |
|
63 |
< |
# setup approripate links and made post install procedure |
64 |
< |
. $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh |
65 |
< |
cat > $MYSQL_ROOT/etc/my.cnf << EOF |
54 |
> |
cat << \EOF > %i/etc/my.cnf |
55 |
|
[mysqld] |
56 |
|
max_allowed_packet=128M |
57 |
|
|
69 |
|
query_cache_limit=10M |
70 |
|
query_cache_size=128M |
71 |
|
|
83 |
– |
# inodb |
72 |
|
innodb_thread_concurrency=0 |
73 |
|
innodb_concurrency_tickets=10000 |
74 |
|
innodb_commit_concurrency=0 |
77 |
|
innodb_file_io_threads = 4 |
78 |
|
innodb_checksums=0 |
79 |
|
innodb_doublewrite=0 |
80 |
< |
|
80 |
> |
innodb_data_file_path = ibdata1:2047M;ibdata2:2000M:autoextend |
81 |
|
|
82 |
|
max_heap_table_size=1024M |
83 |
|
tmp_table_size=1024M |
95 |
|
transaction-isolation = READ-COMMITTED |
96 |
|
EOF |
97 |
|
|
98 |
+ |
|
99 |
+ |
%post |
100 |
+ |
%{relocateConfig}bin/msql2mysql |
101 |
+ |
%{relocateConfig}bin/mysqlaccess |
102 |
+ |
%{relocateConfig}bin/mysqlbug |
103 |
+ |
%{relocateConfig}bin/mysql_config |
104 |
+ |
%{relocateConfig}bin/mysqld_multi |
105 |
+ |
%{relocateConfig}bin/mysqld_safe |
106 |
+ |
%{relocateConfig}bin/mysql_fix_privilege_tables |
107 |
+ |
%{relocateConfig}bin/mysql_install_db |
108 |
+ |
%{relocateConfig}etc/scram.d/%n |
109 |
+ |
|