- 浏览: 509326 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (156)
- xml (4)
- web前端 (24)
- jQuery (18)
- java (38)
- SQL (9)
- perl (2)
- OTRS (1)
- GWT (4)
- Linux (32)
- Maven (2)
- Spring (2)
- Oracle Win7 (1)
- css (8)
- eclipse (3)
- mysql (11)
- tomcat (5)
- git (4)
- javascript (22)
- font (1)
- android (1)
- log4j (1)
- email (1)
- sublime plugin (1)
- html (2)
- matches (1)
- php (3)
- apache (3)
- gd (1)
- docker (5)
- rails (1)
- RabbitMQ (1)
- Ubuntu (3)
- L2TP VPN (1)
- nodejs (1)
- oraclejet (1)
- ubutun (1)
- ntp (1)
- ngix (1)
- ssl (1)
- https (1)
- Linux,Debian (2)
- dpkg (1)
- pac (1)
- vi (1)
- vim (1)
- java,http (0)
- httpClient (0)
- shutter (1)
- shell (1)
- redmine (1)
最新评论
-
纵观全局:
配置之后,连接显示不是私密连接
keytool生成证书与Tomcat SSL配置 -
zhuchao_ko:
可以 伪造
java获得ip地址 -
longhua2003:
代码太乱了
java下载文件 -
tomhat:
ccx410 写道 安装gwt报错,unable to ret ...
GWT CellTable -
ccx410:
安装gwt报错,unable to retrieve osgi ...
GWT CellTable
1. 构建环境
2. 安装FPM
3. 编译安装
4. 打包前准备
vi /data/rpms/mysql-5.7.20/opt/swancmp/mysql/my.cnf
vi /opt/before_install.sh
vi /opt/after_install.sh
vi /opt/before_remove.sh
vi /opt/after_remove.sh
4. 打包
启动MySQL
[root@localhost ~]# /etc/init.d/mysqld start
Starting MySQL. SUCCESS!
查看日志
查找初始root密码
登录
yum -y groupinstall "Development Tools" yum -y install ruby ruby-devel rubygems gcc openssl-devel
2. 安装FPM
gem sources --add http://mirrors.aliyun.com/rubygems/ --remove http://rubygems.org/ gem install arr-pm fpm
3. 编译安装
yum install libaio-devel ncurses-devel libgcrypt perl make cmake gcc gcc-c++ bison -y mkdir -p /data/{download,rpms/mysql-5.7.20} cd /data/download tar zxf mysql-5.7.20.tar.gz tar zxf boost_1_59_0.tar.gz cd mysql-5.7.20 export DIR_SRC_INSTALL=/data/rpms/mysql-5.7.20 export DIR_SRC_BOOST=/data/download/boost_1_59_0 export DIR_RPM_INSTALL=/opt/swancmp/mysql export DIR_RPM_DATA=/opt/swancmp/mysql/mysql export LDFLAGS="-Wl,-rpath=${DIR_PY_RPM_INSTALL}/lib ${LDFLAGS}" groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : useradd -M -N -g mysql -o -r -d ${DIR_RPM_DATA} -s /bin/false -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || : mkdir -p /opt/swancmp/mysql/{mysql,log,tmp} chown -R mysql:mysql /opt/swancmp/mysql/mysql/ cmake -DCMAKE_INSTALL_PREFIX=${DIR_RPM_INSTALL} \ -DMYSQL_DATADIR=${DIR_RPM_DATA} \ -DWITH_BOOST=${DIR_SRC_BOOST} \ -DSYSCONFDIR=${DIR_RPM_INSTALL} \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_PARTITION_STORAGE_ENGINE=1 \ -DWITH_FEDERATED_STORAGE_ENGINE=1 \ -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DENABLED_LOCAL_INFILE=1 \ -DENABLE_DTRACE=0 \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_bin \ -DWITH_EMBEDDED_SERVER=1 make make install DESTDIR=${DIR_SRC_INSTALL}
4. 打包前准备
vi /data/rpms/mysql-5.7.20/opt/swancmp/mysql/my.cnf
[client] default-character-set=utf8 # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld] character-set-server=utf8 # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # 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 # # 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 basedir=/opt/swancmp/mysql datadir=/opt/swancmp/mysql/mysql tmpdir=/opt/swancmp/mysql/tmp socket=/tmp/mysql.sock port=3307 # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log-error=/opt/swancmp/mysql/log/mysqld.log pid-file=/opt/swancmp/mysql/run/mysqld/mysqld.pid # validate_password = off,取消MySQL强制密码规则校验设置 validate_password=off max_connections=32000
vi /opt/before_install.sh
#!/bin/bash groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : useradd -M -N -g mysql -o -r -d /opt/swancmp/mysql/mysql -s /bin/false -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
vi /opt/after_install.sh
#!/bin/bash mkdir -p /opt/swancmp/mysql/{log,run/mysqld,mysql,tmp} >/dev/null 2>&1 || : /bin/touch /opt/swancmp/mysql/log/mysqld.log >/dev/null 2>&1 || : /bin/chown mysql:mysql -R /opt/swancmp/mysql/log/mysqld.log >/dev/null 2>&1 || : /bin/chown mysql:mysql -R /opt/swancmp/mysql/run/mysqld >/dev/null 2>&1 || : /bin/chown mysql:mysql -R /opt/swancmp/mysql/tmp >/dev/null 2>&1 || : /bin/chown mysql:mysql -R /opt/swancmp/mysql/mysql >/dev/null 2>&1 || : cp /opt/swancmp/mysql/support-files/mysql.server /etc/init.d/mysqld chmod +x /etc/init.d/mysqld chkconfig --add mysqld >/dev/null 2>&1 || : chkconfig mysqld on >/dev/null 2>&1 || : # cp /opt/swancmp/mysql/support-files/my.cnf /etc/my.cnf /opt/swancmp/mysql/bin/mysqld --initialize --user=mysql --basedir=/opt/swancmp/mysql/ --datadir=/opt/swancmp/mysql/mysql >/dev/null 2>&1
vi /opt/before_remove.sh
#!/bin/bash /etc/init.d/mysqld stop >/dev/null 2>&1 || :
vi /opt/after_remove.sh
#!/bin/bash mv /opt/swancmp/mysql/mysql /opt/swancmp/mysql/mysql-$(date +%Y$m%d%H%M%S) rm -rf /opt/swancmp/mysql/log rm -rf /opt/swancmp/mysql/run rm -rf /opt/swancmp/mysql/tmp
4. 打包
# mkdir -p /data/rpms/mysql-5.7.20 # cp -rf /data/download/mysql-5.7.20/opt /data/rpms/mysql-5.7.20 fpm -s dir -t rpm -p $(pwd) -n swancmp-mysql -v '5.7.20' \ -C ${DIR_SRC_INSTALL} \ --directories=${DIR_RPM_INSTALL}/bin \ --directories=${DIR_RPM_INSTALL}/lib \ --directories=${DIR_RPM_INSTALL}/docs \ --directories=${DIR_RPM_INSTALL}/include \ --directories=${DIR_RPM_INSTALL}/man \ --directories=${DIR_RPM_INSTALL}/mysql-test \ --directories=${DIR_RPM_INSTALL}/share \ --directories=${DIR_RPM_INSTALL}/support-files \ --directories=${DIR_RPM_INSTALL}/my.cnf \ --directories=${DIR_RPM_INSTALL}/COPYING \ --directories=${DIR_RPM_INSTALL}/COPYING-test \ --directories=${DIR_RPM_INSTALL}/README \ --directories=${DIR_RPM_INSTALL}/README-test \ --config-files=${DIR_RPM_INSTALL}/my.cnf \ --category=Applications/Databases \ --url 'https://dev.mysql.com/doc/refman/5.7/en/' \ --description 'mysql-5.7.20' \ --vendor 'www.asiacom.net.cn' \ --license 'GPL' \ --iteration 1.el7 \ --conflicts 'mariadb-libs' \ --depends '/usr/bin/perl net-tools perl(Getopt::Long) perl(strict)' \ --before-install /opt/before_install.sh \ --after-install /opt/after_install.sh \ --before-remove /opt/before_remove.sh \ --after-remove /opt/after_remove.sh \ -m "zhangliqiang@asiacom.net.cn"
启动MySQL
[root@localhost ~]# /etc/init.d/mysqld start
Starting MySQL. SUCCESS!
查看日志
[root@localhost ~]# cat /opt/swancmp/mysql/log/mysqld.log 2018-12-26T12:13:50.314830Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-12-26T12:13:50.877718Z 0 [Warning] InnoDB: New log files created, LSN=45790 2018-12-26T12:13:50.953826Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2018-12-26T12:13:51.019086Z 0 [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: b48ed1b8-0907-11e9-8d25-080027f2328b. 2018-12-26T12:13:51.021745Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2018-12-26T12:13:51.023048Z 1 [Note] A temporary password is generated for root@localhost: wAB>te)Uc1Li 2018-12-26T12:14:15.403027Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-12-26T12:14:15.403113Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2018-12-26T12:14:15.403146Z 0 [Note] /opt/swancmp/mysql/bin/mysqld (mysqld 5.7.20) starting as process 21788 ... 2018-12-26T12:14:15.410581Z 0 [Note] InnoDB: PUNCH HOLE support available 2018-12-26T12:14:15.410631Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-12-26T12:14:15.410638Z 0 [Note] InnoDB: Uses event mutexes 2018-12-26T12:14:15.410642Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2018-12-26T12:14:15.410646Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-12-26T12:14:15.410650Z 0 [Note] InnoDB: Using Linux native AIO 2018-12-26T12:14:15.423683Z 0 [Note] InnoDB: Number of pools: 1 2018-12-26T12:14:15.423813Z 0 [Note] InnoDB: Using CPU crc32 instructions 2018-12-26T12:14:15.425086Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-12-26T12:14:15.431601Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-12-26T12:14:15.436539Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2018-12-26T12:14:15.445463Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2018-12-26T12:14:15.462798Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-12-26T12:14:15.462991Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-12-26T12:14:15.506295Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2018-12-26T12:14:15.508558Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2018-12-26T12:14:15.508591Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2018-12-26T12:14:15.509055Z 0 [Note] InnoDB: Waiting for purge to start 2018-12-26T12:14:15.559527Z 0 [Note] InnoDB: 5.7.20 started; log sequence number 2565377 2018-12-26T12:14:15.560300Z 0 [Note] Plugin 'FEDERATED' is disabled. 2018-12-26T12:14:15.566989Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2018-12-26T12:14:15.567015Z 0 [Note] Server hostname (bind-address): '*'; port: 3307 2018-12-26T12:14:15.567622Z 0 [Note] IPv6 is available. 2018-12-26T12:14:15.567640Z 0 [Note] - '::' resolves to '::'; 2018-12-26T12:14:15.567663Z 0 [Note] Server socket created on IP: '::'. 2018-12-26T12:14:15.568357Z 0 [Note] InnoDB: Loading buffer pool(s) from /opt/swancmp/mysql/mysql/ib_buffer_pool 2018-12-26T12:14:15.569776Z 0 [Note] InnoDB: Buffer pool(s) load completed at 181226 20:14:15 2018-12-26T12:14:15.587853Z 0 [Note] Event Scheduler: Loaded 0 events 2018-12-26T12:14:15.588146Z 0 [Note] /opt/swancmp/mysql/bin/mysqld: ready for connections. Version: '5.7.20' socket: '/tmp/mysql.sock' port: 3307 Source distribution 2018-12-26T12:14:15.588163Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check. 2018-12-26T12:14:15.588183Z 0 [Note] Beginning of list of non-natively partitioned tables 2018-12-26T12:14:15.598451Z 0 [Note] End of list of non-natively partitioned tables [root@localhost ~]# cat /opt/swancmp/mysql/log/mysqld.log 2018-12-26T12:13:50.314830Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-12-26T12:13:50.877718Z 0 [Warning] InnoDB: New log files created, LSN=45790 2018-12-26T12:13:50.953826Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2018-12-26T12:13:51.019086Z 0 [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: b48ed1b8-0907-11e9-8d25-080027f2328b. 2018-12-26T12:13:51.021745Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2018-12-26T12:13:51.023048Z 1 [Note] A temporary password is generated for root@localhost: wAB>te)Uc1Li 2018-12-26T12:14:15.403027Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-12-26T12:14:15.403113Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2018-12-26T12:14:15.403146Z 0 [Note] /opt/swancmp/mysql/bin/mysqld (mysqld 5.7.20) starting as process 21788 ... 2018-12-26T12:14:15.410581Z 0 [Note] InnoDB: PUNCH HOLE support available 2018-12-26T12:14:15.410631Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-12-26T12:14:15.410638Z 0 [Note] InnoDB: Uses event mutexes 2018-12-26T12:14:15.410642Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2018-12-26T12:14:15.410646Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-12-26T12:14:15.410650Z 0 [Note] InnoDB: Using Linux native AIO 2018-12-26T12:14:15.423683Z 0 [Note] InnoDB: Number of pools: 1 2018-12-26T12:14:15.423813Z 0 [Note] InnoDB: Using CPU crc32 instructions 2018-12-26T12:14:15.425086Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-12-26T12:14:15.431601Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-12-26T12:14:15.436539Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2018-12-26T12:14:15.445463Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2018-12-26T12:14:15.462798Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-12-26T12:14:15.462991Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-12-26T12:14:15.506295Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2018-12-26T12:14:15.508558Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2018-12-26T12:14:15.508591Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2018-12-26T12:14:15.509055Z 0 [Note] InnoDB: Waiting for purge to start 2018-12-26T12:14:15.559527Z 0 [Note] InnoDB: 5.7.20 started; log sequence number 2565377 2018-12-26T12:14:15.560300Z 0 [Note] Plugin 'FEDERATED' is disabled. 2018-12-26T12:14:15.566989Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2018-12-26T12:14:15.567015Z 0 [Note] Server hostname (bind-address): '*'; port: 3307 2018-12-26T12:14:15.567622Z 0 [Note] IPv6 is available. 2018-12-26T12:14:15.567640Z 0 [Note] - '::' resolves to '::'; 2018-12-26T12:14:15.567663Z 0 [Note] Server socket created on IP: '::'. 2018-12-26T12:14:15.568357Z 0 [Note] InnoDB: Loading buffer pool(s) from /opt/swancmp/mysql/mysql/ib_buffer_pool 2018-12-26T12:14:15.569776Z 0 [Note] InnoDB: Buffer pool(s) load completed at 181226 20:14:15 2018-12-26T12:14:15.587853Z 0 [Note] Event Scheduler: Loaded 0 events 2018-12-26T12:14:15.588146Z 0 [Note] /opt/swancmp/mysql/bin/mysqld: ready for connections. Version: '5.7.20' socket: '/tmp/mysql.sock' port: 3307 Source distribution 2018-12-26T12:14:15.588163Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check. 2018-12-26T12:14:15.588183Z 0 [Note] Beginning of list of non-natively partitioned tables 2018-12-26T12:14:15.598451Z 0 [Note] End of list of non-natively partitioned tables
查找初始root密码
[root@localhost mysql]# grep -r 'temporary password' /opt/swancmp/mysql/log/mysqld.log 2018-12-26T12:13:51.023048Z 1 [Note] A temporary password is generated for root@localhost: wAB>te)Uc1Li
登录
[root@localhost mysql]# /opt/swancmp/mysql/bin/mysql -uroot -p'wAB>te)Uc1Li' mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.20 Copyright (c) 2000, 2017, 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>
发表评论
-
构建mysqlRPM安装包
2019-03-20 18:57 636构建环境 yum -y groupinstall " ... -
Mysql Job failed to start
2016-08-16 09:08 979I got an error while am up star ... -
SQL语句
2016-03-09 15:43 822重置root密码 # /etc/init.d/mysqld ... -
卸载apt-get安装的mysql
2016-03-04 09:32 1075删除 mysql 1 sudo apt-get auto ... -
sql查询列为null显示0
2016-02-22 10:04 3185查itemfile表中itemdesc、re_level列的信 ... -
Ubuntu安装PHP+MYSQL+Apache 和GD库
2016-01-06 16:06 1096Ubuntu安装PHP+MYSQL+Apache 和GD库 ... -
命令连接远程数据库
2015-01-28 17:31 96连接到远程主机上的MYSQL 假设远程主机的IP为:110.1 ... -
自动备份数据库
2014-12-11 14:15 520最近数据库出现问题,想到定时备份数据库SQL于是查到点资料自己 ... -
Mysql : tinytext, text, mediumtext, longtext
2014-09-16 19:22 1202Mysql : tinytext, text, mediumt ... -
MYSQL数据库导入数据时出现乱码的解决办法
2013-06-21 12:33 1941安装mysql后 配置MySQL [root@sample ~ ... -
mysql数据库,命令;mysql 赋权限;
2013-06-21 10:41 24631、安装 MySQL 首先来进行 MySQL 的安装。打开超级 ...
相关推荐
MySQL 5.7 版本驱动包是针对Java开发者用于连接MySQL数据库的重要组件,它遵循JDBC(Java Database Connectivity)规范,使得Java程序能够通过标准API与MySQL数据库进行交互。在Java应用程序中,我们通常使用MySQL ...
以上只是MySQL 5.7官方文档中部分重要知识点的概述,实际文档内容更为详尽,涵盖了安装、配置、使用、维护的全过程,是学习和解决问题的宝贵资源。通过深入阅读和实践,可以不断提升在MySQL 5.7上的专业技能。
在本文中,我们将详细探讨如何在Linux环境下编译安装MySQL 5.7,这是一个关键的任务,特别是对于那些希望自定义配置或对系统性能有特定需求的IT专业人员。以下是整个安装过程的步骤: 首先,确保你的系统已经安装了...
本教程将详细讲解如何使用Shell脚本来一键安装MySQL 5.7.38版本,包括设置初始密码、自定义安装路径以及创建普通用户等核心步骤。 首先,让我们了解MySQL 5.7.38的基础知识。这是MySQL数据库的一个稳定版本,提供了...
为了编译和安装MySQL 5.7.33,通常需要遵循以下步骤: 1. **环境准备**:确保操作系统上安装了必要的编译工具,如GCC、Make、Perl、Python等。 2. **解压源代码**:使用`tar -zxvf mysql-5.7.33.tar.gz`命令解压缩...
安装过程中,你可以选择自定义安装,根据实际需求安装服务器、配置工具、MySQL Workbench等组件,也可以选择全部安装。在安装过程中,系统会引导你配置诸如端口号、数据存储路径、账户安全设置等关键参数。 MySQL ...
3. **选择安装路径**: 默认情况下,安装程序会自动设置路径,但用户可以自定义,例如选择"D:\javasoft"作为安装目录。 4. **确认安装内容**: 安装向导会显示所选的安装类型和目录,确认无误后点击“Install”。 5....
总的来说,MySQL 5.7.30结合Boost库的源码安装是一个复杂但有益的过程,可以让开发者深入了解MySQL的内部机制,并自定义配置以满足特定需求。通过这样的安装方式,不仅可以学习数据库管理系统的核心原理,还能提升对...
这个解压版适用于在Linux环境下安装和运行MySQL,无需通过编译源代码的方式,大大简化了部署流程。以下是对MySQL 5.7在Linux环境下的安装、配置和使用的一些关键知识点的详细说明: 1. **下载与解压** - 首先,你...
1. **安装与配置**:MySQL 5.7的安装包括Windows、Linux和Mac OS等多个平台的安装步骤,以及配置文件my.cnf的解析,理解重要参数如`datadir`、`port`、`bind-address`等。 2. **SQL基础**:SQL(结构化查询语言)是...
在本文中,我们将深入探讨如何在CentOS 7操作系统上通过源代码编译来安装Apache 2.4、MySQL 5.6和PHP 7.1。这个过程对于那些希望自定义软件配置或在没有预装包的环境中部署这些服务的系统管理员来说非常有用。 首先...
在Windows 11操作系统上安装MySQL是一个相对简单的过程,但对初学者来说可能有些复杂。以下是一份详细的步骤指南,帮助您了解如何在Win11上成功安装MySQL。 首先,你需要下载MySQL的安装文件。MySQL通常提供两种...
- **自定义安装路径**:介绍了如何更改MySQL的安装位置。 - **服务与进程**:解释了MySQL服务启动和停止的过程。 #### 六、编译器特定构建特性 - **章节概述**:如果用户需要从源码编译MySQL,这部分提供了有关...
在本教程中,我们将深入探讨如何在CentOS7系统上编译安装MySQL 5.7.24。这个过程涉及到多个步骤,包括...通过这种方式,你可以自定义MySQL的配置,确保其与特定系统环境相适应,同时也能更好地理解和控制MySQL的运行。
构建配置指的是 MySQL 在编译时默认启用的一些性能方案组件。这些组件可以在服务器启动时通过配置文件进行调整。例如,可以通过以下配置项控制哪些组件被启用: ```ini [mysqld] performance_schema = ON ...
4. **动态SQL**:通过使用预编译语句和参数绑定,MySQL 5.7.21.0提供了更灵活的动态SQL执行能力,增强了安全性并减少了SQL注入的风险。 5. **安全增强**:此版本加强了安全功能,如密码验证插件,提供了更强大的...
完成编译安装后,脚本会调整安装目录和数据目录的权限,确保它们归属于`mysql:mysql`用户和组。然后,运行`mysql_install_db`脚本来初始化MySQL服务器,这一步会创建默认的系统数据库和表,设置root用户的密码等。...
本文将详细介绍如何在Linux环境下使用自动编译安装脚本来安装MySQL 5.7.30版本。 首先,你需要了解的是编译安装与预编译二进制安装的区别。预编译二进制安装通常更简单快捷,但可能不完全符合系统的特定需求或配置...
总的来说,MySQL 5.7.4的源码安装是一个复杂但必要的过程,尤其在特定环境下,如需要自定义配置或者解决与系统软件包的兼容性问题时。通过源码安装,可以更好地控制MySQL的版本和特性,确保其在特定系统中的稳定运行...