MySQL essential与MySQL

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL essential与MySQL相关的知识,希望对你有一定的参考价值。

在官网上下载mysql sever 100多M,在网上有许多MySQL—essential,版本还挺高,只有30 40多M,请问这两个有什么关系啊,各有什么用途啊?请给前辈指教!

The Essentials Package:
不包含 embedded server and benchmark suite,有自动安装程序和配置向导,没有MySQL Documentation。

The Complete Package:
包含 embedded server and benchmark suite,有自动安装程序和配置向导,有MySQL Documentation。

The Noinstall Archive:
包含 embedded server and benchmark suite,没有自动安装程序和配置向导,有MySQL Documentation。

参考:
For MySQL 5.0, there are three installation packages to choose from when installing MySQL on Windows:

The Essentials Package: This package has a filename similar to mysql-essential-5.0.40-win32.msi and contains the minimum set of files needed to install MySQL on Windows, including the Configuration Wizard. This package does not include optional components such as the embedded server and benchmark suite.

The Complete Package: This package has a filename similar to mysql-5.0.40-win32.zip and contains all files needed for a complete Windows installation, including the Configuration Wizard. This package includes optional components such as the embedded server and benchmark suite.

The Noinstall Archive: This package has a filename similar to mysql-noinstall-5.0.40-win32.zip and contains all the files found in the Complete install package, with the exception of the Configuration Wizard. This package does not include an automated installer, and must be manually installed and configured.

The Essentials package is recommended for most users. It is provided as an .msi file for use with the Windows Installer. The Complete and Noinstall distributions are packaged as Zip archives. To use them, you must have a tool that can unpack .zip files.

Your choice of install package affects the installation process you must follow. If you choose to install either the Essentials or Complete install packages, see Section 2.4.8.2, “Installing MySQL with the Automated Installer”. If you choose to install MySQL from the Noinstall archive, see Section 2.4.8.5, “Installing MySQL from a Noinstall Zip Archive”.
参考技术A 1
打开d:\server_tools\a
mysql-essential-5.0.87-win32\mysql-essential-5.0.87-win32.msi
2
选择custom自定义安装
3点击【change】更改mysql安装目录
4
核实安装信息
5开始安装,一直【next】到finish,单击【finish】
6选择detailed
configuration进行详细配置
7选择mysql运行模式:server
machine
8选择mysql数据库默认存储方式:non-trans
only
(myisam)
9设定mysql最大连接数:一般设置为128
-
512之间的整数。

ubuntu16.04编译安装mysql5.7

1、安装编译依赖

sudo apt-get install make cmake gcc g++ bison libncurses5-dev build-essential

2、下载mysql5.7并解压

下载地址:

tar -xzf mysql-5.7.21.tar.gz -C /usr/local
cd /usr/local/mysql-5.7.21

3、编译安装

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DENABLED_LOCAL_INFILE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql -DCOMPILATION_COMMENT="lq-edition" -DENABLE_DTRACE=0 -DOPTIMIZER_TRACE=1 -DWITH_DEBUG=1

这一步可能会遇到boost1_59的问题,下载boost1_59_0源码编译安装即可,下载地址:https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz安装方法参照这篇文章

编译

make

安装

sudo make install

4、配置mysql

4.1 新建用户和用户组

sudo groupadd mysql
sudo useradd -g mysql mysql

4.2 设置mysql安装目录的权限

cd /usr/local/mysql
sudo chown -R mysql:mysql ./

4.3 初始化mysql,生成mysql临时密码

sudo bin/mysqld --initialize --user=mysql

4.4 开启ssl功能

sudo bin/mysql_ssl_rsa_setup

4.5 启动mysql

sudo bin/mysqld_safe --user=mysql

这一步后会产生一个临时登录密码,可以在下一步登录时使用。

4.6 启动mysql服务并更改密码

sudo support-files/mysql.server start
sudo bin/mysql -u root -p
SET PASSWORD FOR root@localhost = PASSWORD(newpass)

4.7 将mysql服务放在/etc/init.d目录下

sudo cp support-files/mysql.server /etc/init.d/mysql.server

这样就可以使用命令 service mysql start 来启动mysql服务。

4.8 将mysql添加到环境变量

vim ~/.bashrc

在开头添加

export MYSQL_HOME=/usr/local/mysql
export PATH=$PATH:$MYSQL_HOME/bin

然后

source ~/.bashrc

使环境变量生效。

5、参考

1、https://blog.csdn.net/birdben/article/details/51712495

2、https://www.jianshu.com/p/117dab1b658d

3、https://blog.csdn.net/this_capslock/article/details/47170313

以上是关于MySQL essential与MySQL的主要内容,如果未能解决你的问题,请参考以下文章

mysql-essential-5.1.55-win32 安装

MySQL essential版本和普通版本有啥区别

免费架构之ADF12C essentials+MYSQL5.5.40+GLASSFISH4.1

安装配置Mysql

Emmet 中的单引号与 VS Web Essentials

160309_Qt Essentials