1.确认以下依赖包已安装

【ncurses ncurses-devel openssl-devel bison autoconf automake bison gcc m4 libtool make gcc-c++ cmake perl】

[root@std ~]# rpm -qa|grep ncurses
ncurses-5.5-24.20060715
ncurses-devel-5.5-24.20060715
[root@std ~]# rpm -qa|grep openssl
openssl-0.9.8e-.el5_4.
openssl-devel-0.9.8e-.el5_4.
[root@std ~]# rpm -qa|grep bison
bison-2.3-2.1
[root@std ~]# rpm -qa|grep autoconf
autoconf-2.59-
[root@std ~]# rpm -qa|grep automake
automake14-.4p6-.el5.
automake15-1.5-.el5.
automake-1.9.-2.3.el5
automake16-1.6.-.el5.
automake17-1.7.-.el5.
[root@std ~]# rpm -qa|grep gcc
compat-libgcc--2.96-
compat-gcc--g77-3.4.-
libgcc-4.1.-.el5
gcc-c++-4.1.-.el5
compat-gcc--3.4.-
compat-gcc--c++-3.4.-
gcc-java-4.1.-.el5
gcc-4.1.-.el5
gcc-gfortran-4.1.-.el5
[root@std ~]# rpm -qa|grep m4
m4-1.4.-.el5.
[root@std ~]# rpm -qa|grep libtool
libtool-1.5.-.el5_4
[root@std ~]# rpm -qa|grep make
automake14-.4p6-.el5.
automake15-1.5-.el5.
automake-1.9.-2.3.el5
imake-1.0.-
make-3.81-.el5
automake16-1.6.-.el5.
automake17-1.7.-.el5.
[root@std ~]# rpm -qa|grep gcc-c++
gcc-c++-4.1.-.el5

2.建立用户及组

[root@std ~]# groupadd mysql
[root@std ~]# useradd -r -g mysql -s /bin/false mysql
[root@std ~]#

3.解压mysql包并建立软连接

[root@std ~]# cp mysql-5.7.-linux-glibc2.-i686.tar.gz /usr/local/
[root@std ~]# cd /usr/local/
[root@std local]# tar -xzf mysql-5.7.-linux-glibc2.-i686.tar.gz
[root@std local]# ls -ld mysql-5.7.-linux-glibc2.-i686*
drwxr-xr-x wheel Nov : mysql-5.7.-linux-glibc2.-i686
-rw-r--r-- root root Feb : mysql-5.7.-linux-glibc2.-i686.tar.gz
[root@std local]# ln -s mysql-5.7.-linux-glibc2.-i686 mysql
[root@std local]# ls -ld mysql*
lrwxrwxrwx root root Feb : mysql -> mysql-5.7.-linux-glibc2.-i686
drwxr-xr-x wheel Nov : mysql-5.7.-linux-glibc2.-i686
-rw-r--r-- root root Feb : mysql-5.7.-linux-glibc2.-i686.tar.gz

4.配置mysql

[root@std local]# cd mysql
[root@std mysql]# mkdir {data,log}
[root@std mysql]# ls -d data
data
[root@std mysql]# ls -d log
log
[root@std mysql]# cd ..
[root@std local]# ll -d mysql
lrwxrwxrwx root root Feb : mysql -> mysql-5.7.-linux-glibc2.-i686
[root@std local]# chown -R mysql.mysql mysql
[root@std local]# ll -d mysql
lrwxrwxrwx mysql mysql Feb : mysql -> mysql-5.7.-linux-glibc2.-i686
[root@std local]# ll -d mysql-5.7.-linux-glibc2.-i686
drwxr-xr-x wheel Feb : mysql-5.7.-linux-glibc2.-i686
[root@std local]# chown -R mysql.mysql mysql-5.7.-linux-glibc2.-i686
[root@std local]# ll -d mysql-5.7.-linux-glibc2.-i686
drwxr-xr-x mysql mysql Feb : mysql-5.7.-linux-glibc2.-i686
[root@std local]# cp mysql/support-files/my-default.cnf /etc/my.cnf
[root@std local]# vi /etc/my.cnf # For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at % of total RAM for dedicated server, else %.
# innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin # These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = ..... # Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [client]
default-character-set = utf8
port =
socket = /usr/local/mysql/mysql.sock [mysqld]
character-set-server = utf8
port =
socket = /usr/local/mysql/mysql.sock
skip-name-resolve
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
log-error = /usr/local/mysql/log/mysql_error.log
pid-file =/usr/local/mysql/log/mysql.pid
explicit_defaults_for_timestamp=true
lower_case_table_names =
query_cache_limit = 10M
max_heap_table_size = 64M
~
~
~
"/etc/my.cnf" 50L, 1582C written

5.初始化数据库

[root@std local]# /usr/local/mysql/bin/mysql_install_db \
> --user=mysql \
> --basedir=/usr/local/mysql \
> --datadir=/usr/local/mysql/data
-- :: [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize

发现有报错,提示:MySQL 5.7.6 以上的版本使用mysqld --initialize进行初始化

[root@std local]# /usr/local/mysql/bin/mysqld \
> --initialize \
> --user=mysql \
> --basedir=/usr/local/mysql \
> --datadir=/usr/local/mysql/data
--04T02::.907629Z [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
--04T02::.907698Z [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
--04T02::.910476Z [ERROR] --initialize specified but the data directory has files in it. Aborting.
--04T02::.910635Z [ERROR] Aborting

发现有些启动参数必须设置:参考 http://blog.csdn.net/wyzxg/article/details/8787878
提示data directory has files,即数据目录已经有文件了,清除数据目录里的文件

配置sql_mode:

[root@std data]# vi /etc/my.cnf 

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at % of total RAM for dedicated server, else %.
# innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin # These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = ..... # Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M [client]
default-character-set = utf8
port =
socket = /usr/local/mysql/mysql.sock [mysqld]
character-set-server = utf8
port =
socket = /usr/local/mysql/mysql.sock
skip-name-resolve
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
log-error = /usr/local/mysql/log/mysql_error.log
pid-file =/usr/local/mysql/log/mysql.pid
explicit_defaults_for_timestamp=true
lower_case_table_names =
query_cache_limit = 10M
max_heap_table_size = 64M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER
~
~
"/etc/my.cnf" 50L, 1657C written
[root@std local]# pwd
/usr/local
[root@std local]# cd mysql/data/
[root@std data]# ls
auto.cnf ca.pem client-cert.pem client-req.pem ibdata1 ib_logfile1 performance_schema server-key.pem sys
ca-key.pem ca-req.pem client-key.pem ib_buffer_pool ib_logfile0 mysql server-cert.pem server-req.pem
[root@std data]# rm -rf *
[root@std data]# ll
total

重新初始化:

[root@std local]# /usr/local/mysql/bin/mysqld \
> --initialize \
> --user=mysql \
> --basedir=/usr/local/mysql \
> --datadir=/usr/local/mysql/data
--04T03::.900630Z [ERROR] --initialize specified but the data directory has files in it. Aborting.
--04T03::.900825Z [ERROR] Aborting

发现还是提示同样的报错,删除之前建的data文件夹,由mysql自己创建data目录即可。

[root@std mysql]# ls
bin COPYING data docs include INSTALL-BINARY lib log man README share support-files
[root@std mysql]# rm -rf data
[root@std mysql]# ll data
ls: data: No such file or directory

在重新初始化,没有任何提示,正常结束:

[root@std mysql]# /usr/local/mysql/bin/mysqld \
> --initialize \
> --user=mysql \
> --basedir=/usr/local/mysql \
> --datadir=/usr/local/mysql/data
[root@std mysql]#
[root@std mysql]# /usr/local/mysql/bin/mysql_ssl_rsa_setup 
Generating a bit RSA private key
....................+++
....................+++
writing new private key to 'ca-key.pem'
-----
Generating a bit RSA private key
...............................................................+++
..+++
writing new private key to 'server-key.pem'
-----
Generating a bit RSA private key
......+++
.............................................................+++
writing new private key to 'client-key.pem'
-----

6.启动数据库

[root@std mysql]# /usr/local/mysql/bin/mysqld_safe --user=mysql
:: mysqld_safe Logging to '/usr/local/mysql/log/mysql_error.log'.
:: mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

修改密码发现有权限问题:

[root@std data]# /usr/local/mysql/bin/mysqladmin -u root password ''
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

在mysql_error.log 日志里发现有初始密码:

[root@std log]# tail -f mysql_error.log
--04T03::.628582Z [Warning] InnoDB: New log files created, LSN=
--04T03::.260581Z [Warning] InnoDB: Creating foreign key constraint system tables.
--04T03::.382168Z [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: d1b4565b-caf2-11e5-a1fe-000c29a3d3fb.
--04T03::.463227Z [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-02-04T03:53:15.465781Z 1 [Note] A temporary password is generated for root@localhost: F>nWo%wli60_
--04T03::.091095Z [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.

使用初始密码登录,发现登录不了:

[root@std ~]# /usr/local/mysql/bin/mysql -u root -p 'F>nWo%wli60_'
Enter password:

7.利用–skip-grant-tables的方式登录数据库服务器

--kill掉mysql服务

[root@std bin]# ps -ef|grep mysql |grep -v grep
root : pts/ :: tail -f mysql_error.log
root : pts/ :: /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
mysql : pts/ :: /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/log/mysql_error.log --pid-file=/usr/local/mysql/log/mysql.pid --socket=/usr/local/mysql/mysql.sock --port=
[root@std bin]# kill -
[root@std bin]# kill -
[root@std bin]# ps -ef|grep mysql |grep -v grep
root : pts/ :: tail -f mysql_error.log
[root@std mysql]# /usr/local/mysql/bin/mysqld_safe --user=mysql
:: mysqld_safe Logging to '/usr/local/mysql/log/mysql_error.log'.
:: mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data Killed
[root@std mysql]#

--修改my.cnf配置文件,增加skip-grant-tables配置

[root@std mysql]# vi /etc/my.cnf 

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at % of total RAM for dedicated server, else %.
# innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin # These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = ..... # Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M [client]
default-character-set = utf8
port =
socket = /usr/local/mysql/mysql.sock [mysqld]
character-set-server = utf8
port =
socket = /usr/local/mysql/mysql.sock
skip-name-resolve
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
log-error = /usr/local/mysql/log/mysql_error.log
pid-file =/usr/local/mysql/log/mysql.pid
explicit_defaults_for_timestamp=true
lower_case_table_names =
query_cache_limit = 10M
max_heap_table_size = 64M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER
skip-grant-tables
"/etc/my.cnf" 51L, 1675C written

--启动mysql服务

[root@std mysql]# /usr/local/mysql/bin/mysqld_safe --user=mysql
:: mysqld_safe Logging to '/usr/local/mysql/log/mysql_error.log'.
:: mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

--登录mysql服务,修改root密码

[root@std bin]# /usr/local/mysql/bin/mysql -u root -p
Enter password: --直接回车
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7. MySQL Community Server (GPL) Copyright (c) , , Oracle and/or its affiliates. All rights reserved. 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> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A Database changed
mysql> UPDATE user SET password=PASSWORD('') WHERE user='root';
ERROR (42S22): Unknown column 'password' in 'field list'

发现此处修改密码出错,该版本中user表已经没有password列:

mysql> desc user ;
+------------------------+-----------------------------------+------+-----+-----------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------------+-----------------------------------+------+-----+-----------------------+-------+
| Host | char() | NO | PRI | | |
| User | char() | NO | PRI | | |
| Select_priv | enum('N','Y') | NO | | N | |
| Insert_priv | enum('N','Y') | NO | | N | |
| Update_priv | enum('N','Y') | NO | | N | |
| Delete_priv | enum('N','Y') | NO | | N | |
| Create_priv | enum('N','Y') | NO | | N | |
| Drop_priv | enum('N','Y') | NO | | N | |
| Reload_priv | enum('N','Y') | NO | | N | |
| Shutdown_priv | enum('N','Y') | NO | | N | |
| Process_priv | enum('N','Y') | NO | | N | |
| File_priv | enum('N','Y') | NO | | N | |
| Grant_priv | enum('N','Y') | NO | | N | |
| References_priv | enum('N','Y') | NO | | N | |
| Index_priv | enum('N','Y') | NO | | N | |
| Alter_priv | enum('N','Y') | NO | | N | |
| Show_db_priv | enum('N','Y') | NO | | N | |
| Super_priv | enum('N','Y') | NO | | N | |
| Create_tmp_table_priv | enum('N','Y') | NO | | N | |
| Lock_tables_priv | enum('N','Y') | NO | | N | |
| Execute_priv | enum('N','Y') | NO | | N | |
| Repl_slave_priv | enum('N','Y') | NO | | N | |
| Repl_client_priv | enum('N','Y') | NO | | N | |
| Create_view_priv | enum('N','Y') | NO | | N | |
| Show_view_priv | enum('N','Y') | NO | | N | |
| Create_routine_priv | enum('N','Y') | NO | | N | |
| Alter_routine_priv | enum('N','Y') | NO | | N | |
| Create_user_priv | enum('N','Y') | NO | | N | |
| Event_priv | enum('N','Y') | NO | | N | |
| Trigger_priv | enum('N','Y') | NO | | N | |
| Create_tablespace_priv | enum('N','Y') | NO | | N | |
| ssl_type | enum('','ANY','X509','SPECIFIED') | NO | | | |
| ssl_cipher | blob | NO | | NULL | |
| x509_issuer | blob | NO | | NULL | |
| x509_subject | blob | NO | | NULL | |
| max_questions | int() unsigned | NO | | | |
| max_updates | int() unsigned | NO | | | |
| max_connections | int() unsigned | NO | | | |
| max_user_connections | int() unsigned | NO | | | |
| plugin | char() | NO | | mysql_native_password | |
| authentication_string | text | YES | | NULL | |
| password_expired | enum('N','Y') | NO | | N | |
| password_last_changed | timestamp | YES | | NULL | |
| password_lifetime | smallint() unsigned | YES | | NULL | |
| account_locked | enum('N','Y') | NO | | N | |
+------------------------+-----------------------------------+------+-----+-----------------------+-------+
rows in set (0.01 sec)

使用下面的语句修改密码:

mysql> update user set authentication_string=password(''), password_expired='N' where user='root';
Query OK, row affected, warning (0.01 sec)
Rows matched: Changed: Warnings: mysql> flush privileges;
Query OK, rows affected (0.00 sec) mysql>

--关闭mysql服务,去掉skip-grant-tables

[root@std bin]# /usr/local/mysql/bin/mysqladmin -u root -p   shutdown
Enter password:
[root@std bin]# ps -ef|grep mysql|grep -v grep
root : pts/ :: tail -f mysql_error.log
[root@std mysql]# vi /etc/my.cnf 

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at % of total RAM for dedicated server, else %.
# innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin # These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = ..... # Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M [client]
default-character-set = utf8
port =
socket = /usr/local/mysql/mysql.sock [mysqld]
character-set-server = utf8
port =
socket = /usr/local/mysql/mysql.sock
skip-name-resolve
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
log-error = /usr/local/mysql/log/mysql_error.log
pid-file =/usr/local/mysql/log/mysql.pid
explicit_defaults_for_timestamp=true
lower_case_table_names =
query_cache_limit = 10M
max_heap_table_size = 64M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER
~
"/etc/my.cnf" 50L, 1657C written

--重新启动mysql服务,用新密码尝试登录

[root@std bin]# ./mysql -u root -p
Enter password: --此时不输入密码回车
ERROR (): Access denied for user 'root'@'localhost' (using password: NO)
[root@std bin]# ./mysql -u root -p
Enter password: --输入新密码
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7. MySQL Community Server (GPL) Copyright (c) , , Oracle and/or its affiliates. All rights reserved. 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>

--尝试启动时加上skip-grant-tables参数无密码登录

-1-关闭数据库

[root@std bin]# ./mysqladmin -u root -p shutdown
Enter password:
[root@std bin]# ps -ef|grep mysql|grep -v grep
root : pts/ :: tail -f mysql_error.log

-2-加上skip-grant-tables方式启动

[root@std mysql]# /usr/local/mysql/bin/mysqld_safe --user=mysql --skip-grant-tables
:: mysqld_safe Logging to '/usr/local/mysql/log/mysql_error.log'.
:: mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

-3-尝试无密码登录

[root@std bin]# ./mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7. MySQL Community Server (GPL) Copyright (c) , , Oracle and/or its affiliates. All rights reserved. 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>

在直接输入密码处直接回车登录数据库成功,省去了修改my.cnf文件的麻烦。

此中方式启动,关闭的时候也不需要密码,直接回车即可:

[root@std bin]# ./mysqladmin -u root -p shutdown
Enter password: --直接回车

8.配置mysql的启动环境,正常启动

[root@std mysql]# ln -s /usr/local/mysql/bin/* /usr/local/bin/
[root@std mysql]# ln -s /usr/local/mysql/lib/* /usr/lib/
ln: creating symbolic link `/usr/lib/pkgconfig' to `/usr/local/mysql/lib/pkgconfig': File exists
[root@std mysql]# ln -s /usr/local/mysql/include/* /usr/include/
[root@std mysql]# ldconfig
[root@std mysql]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
[root@std mysql]# chmod 755 /etc/init.d/mysqld
[root@std mysql]# chown mysql.mysql /etc/init.d/mysqld
[root@std mysql]# /etc/init.d/mysqld start
Starting MySQL..
[root@std init.d]# /etc/init.d/mysqld status
MySQL running (13859)

此时就可以随便在任何目录执行mysql命令了,不用写全路径了:

[root@std ~]# mysql -V
mysql Ver 14.14 Distrib 5.7., for linux-glibc2. (i686) using EditLine wrapper
[root@std ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7. MySQL Community Server (GPL) Copyright (c) , , Oracle and/or its affiliates. All rights reserved. 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> select version() ;
+-----------+
| version() |
+-----------+
| 5.7. |
+-----------+
row in set (0.00 sec) mysql>

参考:

http://dev.mysql.com/doc/refman/5.7/en/binary-installation.html
http://www.xker.com/page/e2015/07/211127.html
http://www.2cto.com/database/201508/433985.html

Red Hat5.5 install Generic mysql-5.7.10的更多相关文章

  1. Install DBD::mysql for Perl in XAMPP in Mac , solving errors

    我不知道 why,在 Mac 安装 DBI::mysql 总会报错 我为了给 cgi-bin 添加 mysql-perl 数据库支持,也是够麻烦的 make sure that mysql and m ...

  2. MySQL 5.6.10 跨平台GTID复制实践

    根据业务需要,建立MySQL复制来实现数据冗余. 1:binlog_format   默认值是:statement 有效值: ROW,基于行的复制 STATEMENT 基于语句级别的复制 MASTER ...

  3. the install of mysql in Linux System

    一.下载MySql 浏览器打开 https://www.mysql.com/downloads/mysql/#downloads 下载 我下载的版本是Red Hat 5 版本的 https://www ...

  4. Red Hat5下源码安装mysql5.6过程记录

    1.安装cmake包 [root@edu soft]# tar -xzf cmake-.tar.Z [root@edu soft]# cd cmake- [root@edu cmake-]# ./co ...

  5. centos7 install 安装mysql

    # wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community- ...

  6. CentOS 6.5/6.6 安装(install)mysql 5.7 最完整版教程

    Step1: 检测系统是否自带安装mysql # yum list installed | grep mysql Step2: 删除系统自带的mysql及其依赖命令: # yum -y remove ...

  7. Hive remote install mode (mysql) step by step

    Prerequisite: Hadoop cluster is avalable; Mysql installed on namenode; Step1: download the latest hi ...

  8. Linux 使用yum install安装mysql登陆不上解决办法

    CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/ CentOS Can’t connec ...

  9. my06_sysbench install for mysql 并初始化表数据

    sysbench安装 ************************************************************** 安装sysbench依赖包 rpm -q autom ...

随机推荐

  1. ubuntu下命令杂项

    一. 1.用sudo apt-get install python3-numpy之后,会默认把numpy安装到  /usr/lib/python3/dist-packages目录下,而且版本比较低. ...

  2. java模拟浏览器上传文件

    public static void main(String[] args) { String str = uploadFile("C:/Users/RGKY/Desktop/wKgBHVb ...

  3. R语言环境安装与基本使用

    R语言安装包可以从这个地址选择合适的URL去下载:https://cran.r-project.org/mirrors.html,这里使用这个https://mirrors.tuna.tsinghua ...

  4. 动态规划求最长公共子序列(Longest Common Subsequence, LCS)

    1. 问题描述 子串应该比较好理解,至于什么是子序列,这里给出一个例子:有两个母串 cnblogs belong 比如序列bo, bg, lg在母串cnblogs与belong中都出现过并且出现顺序与 ...

  5. AgileEAS.NET SOA 中间件平台.Net Socket通信框架-介绍

    一.前言 AgileEAS.NET SOA 中间件平台是一款基于基于敏捷并行开发思想和Microsoft .Net构件(组件)开发技术而构建的一个快速开发应用平台.用于帮助中小型软件企业建立一条适合市 ...

  6. java中的throw与throws的区别

    什么时运行时异常?什么是非运行时异常? 通俗的讲: 运行时异常:就是编译通过,运行时就崩了,比如数组越界. 非运行时异常:就是编译不通过,这时就得必须去处理了.不然就没法运行了. 全面的讲: Thro ...

  7. XACML学习

    学习的网站: http://www.cinlk.com/2015/07/27/xacml/ http://www.cinlk.com/2015/08/22/swiftabac/ http://blog ...

  8. 函数式编程之柯里化(curry)

    函数式编程curry的概念: 只传递给函数一部分参数来调用函数,然后返回一个函数去处理剩下的参数. var add = function(x) { return function(y) { retur ...

  9. [原创]Centos7 从零编译配置Memcached

    序言 Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载.它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态.数据库驱动网站的速度. Memca ...

  10. 解决java.beans.Introspector导致的内存泄漏

    解决方案: 在WEB.XML 中配置监听器: <listener> <listener-class> org.springframework.web.util.Introspe ...