Red Hat5.5 install Generic mysql-5.7.10
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的更多相关文章
- 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 ...
- MySQL 5.6.10 跨平台GTID复制实践
根据业务需要,建立MySQL复制来实现数据冗余. 1:binlog_format 默认值是:statement 有效值: ROW,基于行的复制 STATEMENT 基于语句级别的复制 MASTER ...
- the install of mysql in Linux System
一.下载MySql 浏览器打开 https://www.mysql.com/downloads/mysql/#downloads 下载 我下载的版本是Red Hat 5 版本的 https://www ...
- Red Hat5下源码安装mysql5.6过程记录
1.安装cmake包 [root@edu soft]# tar -xzf cmake-.tar.Z [root@edu soft]# cd cmake- [root@edu cmake-]# ./co ...
- centos7 install 安装mysql
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community- ...
- CentOS 6.5/6.6 安装(install)mysql 5.7 最完整版教程
Step1: 检测系统是否自带安装mysql # yum list installed | grep mysql Step2: 删除系统自带的mysql及其依赖命令: # yum -y remove ...
- Hive remote install mode (mysql) step by step
Prerequisite: Hadoop cluster is avalable; Mysql installed on namenode; Step1: download the latest hi ...
- Linux 使用yum install安装mysql登陆不上解决办法
CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/ CentOS Can’t connec ...
- my06_sysbench install for mysql 并初始化表数据
sysbench安装 ************************************************************** 安装sysbench依赖包 rpm -q autom ...
随机推荐
- append 添加的元素重新绑定事件
在jQuery当中append是动态向页面中添加元素的常见方法,但是很多时候append添加之后的节点再次绑定事件(比如click)的时候,就会发现click失效,这时候就会涉及到,on() 高版本的 ...
- CA扫盲的巅峰之作!!!
★ 先说一个通俗的例子 考虑到证书体系的相关知识比较枯燥.晦涩.俺先拿一个通俗的例子来说事儿. ◇ 普通的介绍信 想必大伙儿都听说过介绍信的例子吧?假设 A 公司的张三先生要到 B 公司去拜访,但是 ...
- ionic常用的命令
Ionic常用命令行解释 原文链接 安装ionic npm install -g ionic 更新www/lib/ionic 目录的文件,如有项目中有bower,此命令会运行bower updat ...
- Java职业生涯规划
java学习这一部分其实也算是今天的重点,这一部分用来回答很多群里的朋友所问过的问题,那就是我你是如何学习Java的,能不能给点建议?今天我是打算来点干货,因此咱们就不说一些学习方法和技巧了,直接来谈 ...
- php定界符<<<EOF讲解(转)
Heredoc技术.可用来输出大段的html和javascript脚本 1.PHP定界符的作用就是按照原样,包括换行格式什么的,输出在其内部的东西: 2.在PHP定界符中的任何特殊字符都不需要转义: ...
- python爬虫成长之路(二):抓取代理IP并多线程验证
上回说到,突破反爬虫限制的方法之一就是多用几个代理IP,但前提是我们得拥有有效的代理IP,下面我们来介绍抓取代理IP并多线程快速验证其有效性的过程. 一.抓取代理IP 提供免费代理IP的网站还挺多的, ...
- Centos7学习之静态IP设置方法介绍
1.编辑 ifcfg-eth0 文件,vim 最小化安装时没有被安装,需要自行安装不描述. # vim /etc/sysconfig/network-scripts/ifcfg-eth0 2.修改 ...
- 攻城狮在路上(陆)-- 提交运行MapReduce程序到hadoop集群运行
此种方式不能直接在eclipse中调试代码. 首先需要在src下放置服务器上的hadoop配置文件:core-site.xml\yarn-site.xml\hdfs-site.xml\mapred-s ...
- NetMQ(二): 请求响应模式 Request-Reply
ZeroMQ系列 之NetMQ 一:zeromq简介 二:NetMQ 请求响应模式 Request-Reply 三:NetMQ 发布订阅模式 Publisher-Subscriber 四:NetMQ ...
- Ubuntu菜鸟入门(七)—— 微信安装
一.安装git sudo apt-get install git 设置自己的用户名和密码 sudo git config --global user.name "ABC" sudo ...