Skip to content

Instantly share code, notes, and snippets.

@samayo
Created December 18, 2014 15:36
Show Gist options
  • Save samayo/305ef8a08a4a4ec9f9c7 to your computer and use it in GitHub Desktop.
Save samayo/305ef8a08a4a4ec9f9c7 to your computer and use it in GitHub Desktop.
mariadb error
$ yum -y update
$ yum -y install cmake glibc.i686 ncurses-devel
$ wget https://downloads.mariadb.org/f/mariadb-5.5.40/source/mariadb-5.5.40.tar.gz
$ tar xzvf mariadb-5.5.40.tar.gz
$ cd mariadb-5.5.40
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb -DMYSQL_TCP_PORT=3306 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/usr/local/mariadb/data -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_FEDERATEDX_STORAGE_ENGINE=1 -DWITH_ARIA_STORAGE_ENGINE=1 -DWITH_XTRADB_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DENABLED_LOCAL_INFILE=1 -DWITH_EXTRA_CHARSETS=all -DWITH_READLINE=1 -DWITH_SSL=bundled -DWITH_ZLIB=system
make
make install
./mysql_install_db --basedir=/usr/local/mariadb/
service mysql start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment