Oktober 2013 Archive

5.6.Debian Installing MySQL 5.6 using the package provided via dev.mysql.com is some kind of silly.
Using a package you expect the packagemanager to solve conflicts and dependencies and you expect to have a running application after install.
But ..
I downloaded the Debian Package.

root@debianmy56:/var/tmp# dpkg -i mysql.deb 
Selecting previously deselected package mysql.
(Reading database ... 8799 files and directories currently installed.)
Unpacking mysql (from mysql.deb) ...
Setting up mysql (5.6.14) ...
Ok - beside the unusual name for the package - everything worked fine. Lets see if we got mysql user and group:
root@debianmy56:/var/tmp# getent passwd mysql
root@debianmy56:/var/tmp# getent group mysql
Oha, is there an init-script?
root@debianmy56:/var/tmp# ls /etc/init.d/| grep -i mysql
Ok thats consequent and of course the package will not set the PATH for you:
root@debianmy56:/var/tmp# PATH=$PATH:/opt/mysql/server-5.6/bin/
We also get dependencies to solve and don't expect the database to be installed:
root@debianmy56:/var/tmp# mysqld --console
mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
root@debianmy56:/var/tmp# apt-get install libaio1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libaio1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7928 B of archives.
After this operation, 73.7 kB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package libaio1.
(Reading database ... 18390 files and directories currently installed.)
Unpacking libaio1 (from .../libaio1_0.3.107-7_amd64.deb) ...
Setting up libaio1 (0.3.107-7) ...
root@debianmy56:/var/tmp# mysqld --console
2013-10-12 22:52:57 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-10-12 22:52:57 307 [Warning] Can't create test file /opt/mysql/server-5.6/data/debianmy56.lower-test
2013-10-12 22:52:57 307 [Warning] Can't create test file /opt/mysql/server-5.6/data/debianmy56.lower-test
mysqld: Can't change dir to '/opt/mysql/server-5.6/data/' (Errcode: 2 - No such file or directory)
2013-10-12 22:52:57 307 [ERROR] Aborting
And so on.
You use packages to solve some of the problems you got using only tarballs:
# dpkg-query -W -f='${Provides}\n${Depends}\n${Conflicts}\n' mysql



#
But the Debian Package from dev.mysql.com is just a tarball in disguise.
Packages - requiring mysqld - are going to tell the packetmanager to install mysqld.
Have fun :/

Regards
Erkan

Über dieses Archiv

Diese Seite enthält alle Einträge von erkules del inglese von neu nach alt.

September 2013 ist das vorherige Archiv.

November 2013 ist das nächste Archiv.

Aktuelle Einträge finden Sie auf der Startseite, alle Einträge in den Archiven.

Seiten

Powered by Movable Type 4.23-en