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 |
|
|
50 |
|
</Tool> |
51 |
|
EOF_TOOLFILE |
52 |
|
|
53 |
< |
%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 |
53 |
> |
cat << \EOF > %i/etc/my.cnf |
54 |
|
[mysqld] |
55 |
|
max_allowed_packet=128M |
56 |
|
|
68 |
|
query_cache_limit=10M |
69 |
|
query_cache_size=128M |
70 |
|
|
83 |
– |
# inodb |
71 |
|
innodb_thread_concurrency=0 |
72 |
|
innodb_concurrency_tickets=10000 |
73 |
|
innodb_commit_concurrency=0 |
94 |
|
transaction-isolation = READ-COMMITTED |
95 |
|
EOF |
96 |
|
|
97 |
+ |
|
98 |
+ |
%post |
99 |
+ |
%{relocateConfig}bin/msql2mysql |
100 |
+ |
%{relocateConfig}bin/mysqlaccess |
101 |
+ |
%{relocateConfig}bin/mysqlbug |
102 |
+ |
%{relocateConfig}bin/mysql_config |
103 |
+ |
%{relocateConfig}bin/mysqld_multi |
104 |
+ |
%{relocateConfig}bin/mysqld_safe |
105 |
+ |
%{relocateConfig}bin/mysql_fix_privilege_tables |
106 |
+ |
%{relocateConfig}bin/mysql_install_db |
107 |
+ |
%{relocateConfig}etc/scram.d/%n |
108 |
+ |
|