Показаны сообщения с ярлыком install. Показать все сообщения
Показаны сообщения с ярлыком install. Показать все сообщения

17.10.2010

Install & Configuration MySQL Server on FreeBSD

So today I'll talk about how to install MySQL, with a given base has developed a rather strange situation, if you raise the forums, the number of questions relating to problems installing MySQL tremendously. In this case, the most common form of response is: "Well, then try this and that, although strange when you install it should happen automatically."

In order to deal with the installation once and I decided to write this short post, because MySQL is one of the most popular database in the world of open source software and its role is difficult to overestimate the (take any program that handles a large amount of information and most likely she would be happy to be friends with MySQL, but inekotoryh cases, there is no built-in database software and then installing third-party database to become simply required)

Proceed, we will put MySQL as usual from the ports, currently the most popular version is 5.1 it is what we are going to install.

# Cd / usr/ports/databases/mysql51-server & & make install clean (in dependencies will already be a client so alone MySQL client set is not necessary). As can be seen I put the MySQL with the default settings, but if you want to put additional modules and expand the functionality, then call a utility before you install # make and in the pseudo interface, you can choose what you need.

Thus, the installation is successful now we have proinstallit immediately base itself, it is done by running:

# Mysql_install_db

Install base that's on this path / var / db / mysql, now we have to change the owner and group for MySQL with their same database (here is always controversy, someone said that during the installation of the script itself does this, someone thatNo, somehow it is always possible to check the list of output # ls-l):

# Chown mysql / var / db / mysql

# Chgrp mysql / var / db / mysql

Everything is now possible to run the MySQL daemon in safe mode and set a password for root:

# / Usr / local / bin / mysqld_safe-user = mysql & (boolean)

# Mysqladmin-u root password INVENT YOUR PASSWORD (password set)

All right now if you did everything correctly, then the # mysql-u root-p should get out a request for a password by entering that you will go to the console MySQL.

Well, full of happiness edit # ee / etc / rc.conf add this line:

mysql_enable = "YES"

For people with a ban at Google give the link to off site MySQL Documentation MySQL

ps As usual kammentah try to answer all your questions.

23.07.2009

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

Итак сегодня я расскажу о том как установить MySQL, с данной базой сложилась довольно странная ситуация, если поднять форумы, то количество вопросов связанных с проблемами при установке MySQL колоссально. При этом самой распространенной формой ответа служит:"Ну тогда попробуйте это и это, хотя странно при установке это должно происходить автоматом".

Для того чтобы разобраться с установкой раз и навсегда я и решил написать этот небольшой пост, ведь MySQL это одна из самых популярных БД в мире СПО и ее роль сложно переоценить (возьми любую программу которая обрабатывает большое количество информации и скорее всего она с удовольствием будет дружить с MySQL, а в инекоторых случаях в ПО нет встроенной БД и тогда установка стороней БД становиться просто обязательна)

Приступим, ставить MySQL мы будем как обычно из портов, на данный момент самой популярной версией является 5.1 её то мы и будем устанавливать.

# cd /usr/ports/databases/mysql51-server && make install clean (в зависимостях уже будет клиент поэтому отдельно клиент MySQL ставить не надо). Как видно я ставлю MySQL с дефолтными настройками, но если ты хочешь поставить дополнительные модули и расширить функционал, то перед установкой вызываешь утилиту #make и в псевдографическом интерфейсе можешь выбрать то что тебе нужно.

Итак, установка прошла успешно теперь нам надо проинсталлить непосредственно саму базу, делается это командой:

#mysql_install_db 

База проинсталлировалась вот по этому пути /var/db/mysql, теперь надо сменить владельца и группу для работы MySQL со своими же базами (вот тут всегда разногласия, кто-то говорит, что при инсталляции скрипт сам выполняет эти действия, кто-то что нет, так или иначе это всегда можно проверить в списке вывода #ls -l):

#chown mysql /var/db/mysql

#chgrp mysql /var/db/mysql

Все теперь можно запустить демон MySQL в безопасном режиме и установить пароль для root:

#/usr/local/bin/mysqld_safe -user=mysql &  (запускаем демон)

#mysqladmin -u root password ТВОЙ ПРИДУМАННЫЙ ПАРОЛЬ (ставим пароль)

Все, теперь если ты все сделал правильно, то на #mysql -u root -p должен вылезти запрос на пароль, введя который ты попадешь в консоль MySQL.

Ну и для полного счастья отредактируем #ee /etc/rc.conf добавив такую строку:

mysql_enable=”YES”

Для людей с баном в Гугле даю ссылку на офф сайт MySQL Документация MySQL

ps Как обычно в камментах постараюсь ответить на любые ваши вопросы.