There is Debian, only MySQL 5.1 is in the repositories. I download the .deb package from the official MySQL site. Further, after the command (the rights to the package 777 are set):

root@box-test:~# dpkg -i /root/mysql-server-5.5.deb 

Mistake:

dpkg: не удалось обработать параметр /root/mysql-server-5.5.deb (--install):нет доступа к архиву: Нет такого файла или каталогаПри обработке следующих пакетов произошли ошибки: /root/mysql-server-5.5.deb

I go through the MC inside the package, run the INSTALL script (777) by pressing Enter, give me a minute’s thought:

 root@box-test:~# /usr/lib/mc/extfs.d/deb run /root/mysql-5.5.deb INSTALL 

Installing /root/mysql-5.5.deb(Чтение базы данных ... на данный момент установлено 24808 файлов и каталогов.)Подготовка к замене пакета mysql 5.5.18 (используется файл /root/mysql-5.5.deb) ...Распаковывается замена для пакета mysql ...Настраивается пакет mysql (5.5.18) ...

And that's all ... neither installed MySQL, nor workouts on commands like apt-get install mysql-server-5.5.18 . Tell me, please, a way to install MySQL version 5.5 without building it from sources. Thank you in advance.

  • @EgODiEz, and what is not satisfied with the build from source? I can describe in detail how to compile from sources - it is quite simple. - bsdmacs
  • To be honest, I never collected anything under * nix, so I'm looking for a quick way, because it is necessary for work. For interest and at home, you can dig, if you say that it takes a little time to build, then please drop the link to an adequate mana. But still I would like to get a reference to the working repository, as they say, you need to be simpler =) I'm not lazy, I just have a small block of work now, so I have to set priorities, save time ... - EgODiEz
  • From experience I can say that the branch 5.5 is not very stable. If there is no critical need in this thread, then it is better to use 5.1. - bsdmacs
  • If you decide to install from the deb package, connect the dotdeb repository. No problem with it dotdeb.org/instructions . - bsdmacs

3 answers 3

It was decided, though, and I had to dance, as in all the proposed manuals and solutions on the forums there are a lot of shortcomings and none of the methods worked 100%. I had to collect from several and think out the most. The method is relevant for versions of Debian 6.0.3 and MySQL-server-5.5.19 :

So, for the build, we need the build-essential , cmake , libncurses5-dev , chkconfig packages. If there are none, install:

 apt-get install build-essential cmake libncurses5-dev chkconfig 

Next, download the source:

 cd /tmpwget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.19.tar.gz/from/http:/mysql.mirrors.ovh.net/ftp.mysql.com/ 

Here he can save the archive in index.htm . Rename to mysql-5.5.19.tar.gz and unpack:

 tar -xf mysql-5.5.19.tar.gzcd mysql-5.5.19 

We create in advance a user and a group for a muscle:

 groupadd mysqluseradd -r -g mysql mysql 

Configure, compile, install:

 cmake .makemake install 

We set the rights:

 cd /usr/local/mysqlchown -R mysql .chgrp -R mysql .scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/chown -R root .chown -R mysql data 

Copy the configuration file to the / etc folder:

 cp support-files/my-medium.cnf /etc/my.cnf 

Install the service, assign rights, add to autorun and run:

 cp support-files/mysql.server /etc/init.d/mysqldchmod +x /etc/init.d/mysqldchkconfig --levels 235 mysqld onservice mysqld start 

If the launch was successful, set the root password:

 /usr/local/mysql/bin/mysqladmin -u root password 'password' 

Done, I hope someone will help my watch dances =)

    Try to still collect from the source code. It takes 10 minutes more.

    1. It is necessary to download the tarball from the official site.
    2. Unpack the archive in a temporary directory:

      tar -xf <archive_name> .tar.gz -C / name / directories / where / unpack

    3. Now go to the directory containing the source code files.

    4. Configuring (most likely the default options are sufficient), so it's simple:

      ./configure

    5. Now we collect (compile in the temporary directory), again simply:

      make

    6. Now install (transfer the collected code to the working directory):

      make install

    7. We check the work:

      / usr / local / mysql / bin / mysqld_safe & -u root

    8. At this assembly and installation is over.

    PS Contrary to popular belief - the assembly from the source is not a preregative of "home researchers". At my work those. platform of just over 100 servers. Software is installed from the source. There are no problems with further maintenance and maintenance.

    • Muscle cofig is produced by cmake. H. bsdmacs you have outdated information, please continue not to let on the wrong track. At the moment, the most current setting is shown below, it is quite different in many points from your manual. - EgODiEz

    Installing MySQL version 5.5 without building it from source will help connecting a third-party Dotdeb repository. At http://www.dotdeb.org/instructions/ you can find detailed instructions on how to do this.