----MySQL安装版本以及技术文档
mysql目前常用版本 mysql-5.6.15.tar.gz
----MySQL编译安装
1. 安装环境要求:mysql用户和组且ID为27,安装软件make,cmake,gcc,gcc-c++,ncurses-devel ,bison。 groupadd -g 27 mysqluseradd -u 27 -g mysql -s /sbin/nologin -M mysql
2.创建安装目录/usr/local/mysql5.6 ,数据目录/database,PID目录/var/run/mysqld,日志目录/var/log/mysqld。 配置文件目录/usr/local/mysql5.6/etc 3.cmake -LH 产生CMakeCache.txt, 在make是就按这个cache文件来编译(这样全是默认,建议使用步骤4)。
4.制定CMakeCache.txt文件
cmake /
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql5.6 / 指定安装路径
-DMYSQL_DATADIR:PATH=/database / 指定数据库路径
-DSYSCONFDIR:PATH=/usr/local/mysql5.6/etc / 指定配置文件路径
-DWITH_DEBUG:BOOL=on 开启调试功能
5.编译软件make
6.安装软件make install
7.MySQL配置文件修改/usr/local/mysql5.6/etc/my.cnf
[mysqld]
basedir=/usr/local/mysql5.6
datadir=/database
socket=/var/run/mysqld/mysql5.6.sock
pid-file=/var/run/mysqld/mysql5.6.pid
port=3307 默认是3306
user=mysql
[mysqld_safe]
log-error=/var/log/mysqld/mysql5.6-error.log
8.给各个相关目录赋予mysql权限
chown -R myslq.mysql /usr/local/mysql5.6 /database /var/run/mysqld/ /var/log/mysqld
9.执行mysql_install_db 脚本文件
/usr/local/mysql5.6/scripts/mysql_install_db --basedir=/usr/local/mysql5.6 --datadir=/database --user=mysql
10.复制启动命令文件到系统目录
cp /usr/local/mysql5.6/support-files/mysql.server /etc/rc.d/init.d/mysql5.6或/etc/init.d/mysqld
11.设置开机启动mysql,和启动myslqd
chkconfig --add mysql5.6
service mysql5.6 start
12.配置环境变量将/usr/local/mysql5u6/bin 添加到profile中
export PATH=$PATH:/usr/local/mysql5u6/bin
使文件生效
source /etc/profile
03-mysql-自动安装脚本
#!/bin/bash
#comment
#./mysql-5.6.sh mysql-5.6.15.tar.gz
#:set ff=unix
#:set nobomb
name1="$1"
name2=${name1/.tar.gz

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools
