mysql 5 5 14安裝筆記

2021-09-21 21:13:40 字數 1749 閱讀 6395

由於新的mysql-5.5和以前版本相比,有了很多更新和改進,今天抽時間安裝了一下新版的mysql。一下是安裝筆記。

新版mysql:

cmake:

安裝環境rhel5.4

1、安裝cmake

#tar zxf cmake-2.8.5.tar.gz  

#cd cmake-2.8.5  

#./bootstrap  

#make  

#make install  

2、編譯安裝mysql-5.5.14

useradd mysql  

tar zxf mysql-5.5.14.tar.g  

cd mysql-5.5.14  

cflags

="-o3"

cxx=

gcccxxflags

="-o3 -felide-constructors -fno-exceptions -fno-rtti"

cmake . -lh|more //cmake下檢視mysql的編譯配置  

cmake . 

-dcmake_install_prefix

=/usr/local/mysql 

-dextra_charsets

=all

make  

make install  

chown -r mysql:mysql /usr/local/mysql  

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

cd /usr/local/mysql/  

./scripts/mysql_install_db 

--user

=mysql

/usr/local/mysql/bin/mysqld_safe 

--user

=mysql

&  /usr/local/mysql/bin/mysql  

welcome to the mysql monitor.  commands end with ; or \g.  

your mysql connection id is 2  

server version: 5.5.14-log source distribution  

oracle is a registered trademark of oracle corporation and/or its  

affiliates. other names may be trademarks of their respective  

owners.  

type 'help;' or '\h' for help. type '\c' to clear the current input statement.  

mysql

>

show databases;  

+--------------------+  

| database           |  

+--------------------+  

| information_schema |  

| mysql              |  

| performance_schema |  

| test               |  

+--------------------+  

4 rows in set (0.01 sec  

centos下 MySQL 5 5 14 編譯安裝

mysql 最新的版本都需要cmake編譯安裝,估計以後的版本也會採用這種方式,所以特地記錄一下安裝步驟及過程,以供參考。以下安裝中涉及的幾點需要提前說明的問題 2.mysql 將以mysql使用者執行,而且將加入 service 開機自動執行 3.mysql 將被安裝在 usr local mys...

原始碼安裝MySQL 5 5 14到個人目錄

mysql 5.5.14使用cmake安裝,已經不需要.configure了。如果要安裝到個人目錄,cmake時需指定路徑。啟動時,my.cnf也要指定。cmake dcmake install prefix home mysql 5.5.14 make make install cd home l...

MySQL安裝筆記手寫 mysql安裝筆記

學習了很長時間的linux,有必要做一下整理筆記了,以下是mysql的安裝筆記,和常見的一些使用方法。因我喜歡除錯優化系統,所以在編譯安裝時使用了一些選項增加程式設計後程式的執行效率,有些可能我理解有錯,希望大家指出.mail flashc 21cn.com 安裝mysql tar zxvf mys...