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 ...
随机推荐
- 升级python
一开始有这个需求,是因为用 YaH3C 替代 iNode 进行校园网认证时,一直编译错误,提示找不到 Python 的某个模块,百度了一下,此模块是在 Python2.7 以上才有的,但是系统的自带的 ...
- 建表过程-列名&列类型&修改表B
怎么建表? 主键 名称 重量 价格 生产日期 保质期 产地 种类 分析:我们只要把第一行的表头建好后,这张表也就完成了. 术语:建表的过程就是声明字段过程 ...
- 移动wap隐藏的坑
非原创,只做转载 ------------------------------------------------------------------------------------------- ...
- git pull push 不用输入用户名和密码的方法
1.在计算机的安装盘下找到 '用户' 这个文件夹打开. 2.找到'用户' 文件夹下面你当前的用户. 3.新建'.gitconfig' 文件 4. [user] email = name = [pus ...
- Redis五种数据类型命令介绍(4)
1.string类型命令 设置值:set id 001 获取值:get id 删除键值:del id 验证键是否存在:exists id 显示所有的key:keys * incr .incrby指 ...
- Range Sum Query - Mutable
https://leetcode.com/problems/range-sum-query-mutable/ 因为数组会变动,所以缓存机制受到了挑战...每次更新数组意味着缓存失效,这样一更新一查找的 ...
- 安装.NET FRAMEWORK 4.5安装进度条回滚之后发生严重错误 代码0x80070643
安装.NET FRAMEWORK 4.5安装进度条回滚之后发生严重错误 代码0x80070643 注意: 回滚完成后,不要急着点击完成 查看日志:用IE浏览器打开,最后红色部分就是要查看的部分,本人 ...
- 权限管理[Linux]
chown username file,... 改变文件的属主(只有管理员可以使用此命令) -R:修改目录及其内部文件的属主 -reference=somefile_path file,...把想要设 ...
- 4 Best Time to Buy and Sell Stock III_Leetcode
Say you have an array for which the ith element is the price of a given stock on day i. Design an al ...
- 微信小程序资料
作者:初雪链接:https://www.zhihu.com/question/50907897/answer/128494332来源:知乎著作权归作者所有,转载请联系作者获得授权. 1:下载开发者工具 ...