Установка MySQL

Posted by alex on Sep 15, 2010 in СУБД MySQL |

Установка MySQL на FreeBSD из портов

Итак, поехали:
cd /usr/ports/databases/mysql50-server/
/usr/ports/databases/mysql50-server/>make

===> Vulnerability check disabled, database not found

You may use the following build options:

WITH_CHARSET=charset Define the primary built-in charset (latin1).
WITH_XCHARSET=list Define other built-in charsets (may be ‘all’).
WITH_COLLATION=collate Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes Enable secure connections.
WITH_LINUXTHREADS=yes Use the linuxthreads pthread library.
WITH_PROC_SCOPE_PTH=yes Use process scope threads
(try it if you use libpthread).
BUILD_OPTIMIZED=yes Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes Build a static version of mysqld.
(use it if you need even more speed).
WITHOUT_INNODB=yes Disable support for InnoDB table handler.
WITH_ARCHIVE=yes Enable support for Archive Storage Engine.
WITH_FEDERATED=yes Enable support for Federated Storage Engine.
WITH_NDB=yes Enable support for NDB Cluster.

===> Extracting for mysql-server-5.0.22
^C
/usr/ports/databases/mysql50-server/>

Опции в файле /etc/make.conf

собираем MySQL:

>cd /usr/ports/databases/mysql50-server/
/usr/ports/databases/mysql50-server/>make && make install && make clean

После инсталляции клиента сборка прекращается с ошибкой – не может найти библиотеку.

===> Installing ldconfig configuration file
===> Compressing manual pages for mysql-client-5.0.22
===> Registering installation for mysql-client-5.0.22
===> Returning to build of mysql-server-5.0.22
Error: shared library “mysqlclient.15” does not exist
*** Error code 1

Stop in /usr/ports/databases/mysql50-server.
/usr/ports/databases/mysql50-server/>

Я перезагрузился, помогло, но можно и иначе, дать команду:
>/sbin/ldconfig -m /usr/local/lib/mysql
Должно помочь и без перезагрузки.

После чего продолжаем инсталляцию:
/usr/ports/databases/mysql50-server/>make install && make clean

По окончании инсталляции, правим конфиг для mysql – /usr/local/etc/my.cnf

echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf

Запуск /usr/local/etc/rc.d/mysql-server.sh start

При проблемах (не запускается), смотрим лог ошибок:
>tail -f /var/db/mysql/uname -a | awk '{print $2}'.err

Источник: http://www.lissyara.su

Copyright © 2018 Заметки по UNIX All rights reserved.
Desk Mess Mirrored v1.4.3.1 theme from BuyNowShop.com.