Git Product home page Git Product logo

mysql-build's Introduction

mysql-build

mysql-build - provides a command to compile and install different versions of MySQL.

The overall structure is loosly borrowed from Sam Stephenson's ruby-build.

Installation

git clone https://github.com/kamipo/mysql-build.git ~/mysql-build

export PATH="$HOME/mysql-build/bin:$PATH"

Usage

mkdir -p ~/opt/mysql
mysql-build -v 5.7.10 ~/opt/mysql/mysql-5.7.10

cd ~/opt/mysql/mysql-5.7.10
./bin/mysqld --initialize-insecure --basedir=.
./bin/mysqld_safe &

./bin/mysql -e 'SELECT @@version'

mysql-build's People

Contributors

aeroastro avatar charsbar avatar dealforest avatar do-aki avatar genya0407 avatar harukasan avatar hfm avatar kamipo avatar kazhiramatsu avatar moznion avatar ravelll avatar shim0mura avatar takatoshiono avatar xaicron avatar yahonda avatar yoku0825 avatar yuuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mysql-build's Issues

MySQL 5.7.5-m15 doesn't build without boost-1.55

MySQL 5.7.5-m15 get to require boost-1.55.
(Search "boost" in this relnote.)
http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-5.html

$ bin/mysql_build -v 5.7.5-m15 /tmp/mysql575
Installing mysql-5.7.5-m15...
~/git/mysql-build
~/git/mysql-build/build ~/git/mysql-build
~/git/mysql-build/build/mysql-5.7.5-m15 ~/git/mysql-build/build ~/git/mysql-build
-- Running cmake version 2.8.11.1
..
-- MySQL 5.7.5-m15
-- Packaging as: mysql-5.7.5-m15-Linux-x86_64
-- BOOST_VERSION_NUMBER is #define BOOST_VERSION 104100
CMake Warning at cmake/boost.cmake:200 (MESSAGE):
  Boost minor version found is 41 we need 55
Call Stack (most recent call first):
  CMakeLists.txt:466 (INCLUDE)


-- Could not find (the correct version of) boost.

CMake Error at cmake/boost.cmake:37 (MESSAGE):
  You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>

  This CMake script will look for boost in <directory>.  If it is not there,
  it will download and unpack it (in that directory) for you.

  If you are inside a firewall, you may need to use an http proxy:

  export http_proxy=http://example.com:80

Call Stack (most recent call first):
  cmake/boost.cmake:203 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:466 (INCLUDE)


-- Configuring incomplete, errors occurred!

BUILD FAILED

Results logged to /home/yoku0825/git/mysql-build/bin/../build.log

Last 10 log lines:
  If you are inside a firewall, you may need to use an http proxy:

  export http_proxy=http://example.com:80

Call Stack (most recent call first):
  cmake/boost.cmake:203 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:466 (INCLUDE)


-- Configuring incomplete, errors occurred!

It needs cmake option only if build target is 5.7.5 or later.

"mysql-build -v 5.7.5-m15" failed on Ubuntu 14.04 LTS

Cloned the repository, exported command to path and ran
$mysql-build -v 5.7.5-m15 ./5.7.5
Which resulted in below msg.
Not at all sure what went wrong (first time seeing cmake and trying to build mysql)
and for that matter this is my first issue ever raised.

screenshot from 2015-05-02 21 36 56

Not able to run mysql-server on solaris 10.

I have installed mysql-server on one of the zones of solaris 10 using below command:

pkgin install mysql-server

It had install mysql-server, mysql-client and binutils packages. It gets successfully installed. But, when i tried to run mysql using 'mysql' command. It gives below error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (95)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.