MySQL officially released version 5.5.8 With msi installation package to win the next Ubuntu is still a conservative version 5.1 rpm and tar.gz source version on the official website, has yet to ubuntu installation source, I do not rpm too cold, we can only compile the source code is installed, refer to the online compiler installation options, the test several times, and finally succeeded, to be notes.
5.5.8 compiled using cmake under Ubuntu apt-get the mysql specific compiler options are as follows:
[Root @ PowerPC mysql-5.5.8] # cmake. /
>-DCMAKE_BUILD_TYPE: STRING = Release /
>-DCMAKE_INSTALL_PREFIX: PATH = / usr / local / mysql /
>-DCOMMUNITY_BUILD: BOOL = ON /
>-DENABLED_PROFILING: BOOL = ON /
>-DENABLE_DEBUG_SYNC: BOOL = OFF /
>-DINSTALL_LAYOUT: STRING = STANDALONE /
>-DMYSQL_DATADIR: PATH = / var / run / mysql /
>-DMYSQL_MAINTAINER_MODE: BOOL = OFF /
>-DWITH_EMBEDDED_SERVER: BOOL = ON /
>-DWITH_EXTRA_CHARSETS: STRING = all /
>-DWITH_SSL: STRING = bundled /
>-DWITH_UNIT_TESTS: BOOL = OFF /
>-DWITH_ZLIB: STRING = bundled /
>-LH
Of which:>-DENABLE_DEBUG_SYNC: BOOL = OFF / option to join compile error, passed the removal.
Then the description is in accordance with the source package INSTALL_SOURCE.txt
hell> cd / usr / local / mysql
shell> chown-R mysql.
shell> chgrp-R mysql.
shell> scripts / mysql_install_db – user = mysql
shell> chown-R root.
shell> chown-R mysql var
shell> cp support-files/my-medium.cnf / etc / my.cnf # optional
shell> bin / mysqld_safe – user = mysql &
shell> cp / usr / local / mysql / support-files / mysql.server / etc / init.d / mys
ql.server # Optional
At this point the installation is complete, the server starts normally. However, / usr / local / mysql is not in the PATH, every time / usr / local / mysql / bin / mysqld start / usr / local / mysql / bin path can be added to the PATH Ubuntu modify the / etc / environment file, note the notation error ubuntu next is likely to get up.
As for how to add the mysql service to system service, such as service mysql start, slowly groping. Now that the server has been able to start the first small meet.
PS: compile options refer to the “small Xin linux learning website”