mysql v7.11_编译后MySQL v5.7.11安装出错
在从源代码编译安装后尝试启动
mysql服务器时,我在MAC OS X 10.11中遇到以下错误.
keyring_file不可读.
我试图使用以下命令启动服务器.
./mysqld start
在终端中生成以下错误.
2016-03-24T18:43:50.591772Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-03-24T18:43:50.592053Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2016-03-24T18:43:50.592091Z 0 [Note] ./mysqld (mysqld 5.7.11) starting as process 3470 ...
2016-03-24T18:43:50.593833Z 0 [Warning] Can't create test file /usr/local/mysql/data/Hemens-MacBook-Pro-2.lower-test
2016-03-24T18:43:50.593852Z 0 [Warning] Can't create test file /usr/local/mysql/data/Hemens-MacBook-Pro-2.lower-test
2016-03-24T18:43:50.595428Z 0 [ERROR] Plugin keyring_file reported: 'keyring_file initialization failure. Please check if the keyring_file_data points to readable keyring file or keyring file can be created in the specified location. The keyring_file will stay unusable until correct path to the keyring file gets provided'
2016-03-24T18:43:50.595860Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-24T18:43:50.595866Z 0 [Note] InnoDB: Uses event mutexes
2016-03-24T18:43:50.595881Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-03-24T18:43:50.595884Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-03-24T18:43:50.596157Z 0 [Note] InnoDB: Number of pools: 1
2016-03-24T18:43:50.596319Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-03-24T18:43:50.605257Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-03-24T18:43:50.615154Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-03-24T18:43:50.631296Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-24T18:43:50.638315Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-03-24T18:43:50.638358Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2016-03-24T18:43:50.638364Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2016-03-24T18:43:50.638369Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2016-03-24T18:43:50.638373Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2016-03-24T18:43:50.638377Z 0 [ERROR] InnoDB: Cannot open datafile './ibtmp1'
2016-03-24T18:43:50.638381Z 0 [ERROR] InnoDB: Unable to create the shared innodb_temporary
2016-03-24T18:43:50.638385Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Cannot open a file
2016-03-24T18:43:50.954042Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-03-24T18:43:50.954098Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-03-24T18:43:50.954119Z 0 [ERROR] Failed to initialize plugins.
2016-03-24T18:43:50.954126Z 0 [ERROR] Aborting
2016-03-24T18:43:50.954141Z 0 [Note] Binlog end
2016-03-24T18:43:50.954223Z 0 [Note] Shutting down plugin 'CSV'
2016-03-24T18:43:50.954232Z 0 [Note] Shutting down plugin 'keyring_file'
2016-03-24T18:43:50.954507Z 0 [Note] ./mysqld: Shutdown complete
The path name of the data file used for secure data storage by the
keyring_file plugin. The file location should be in a directory
considered for use only by the keyring_file plugin. For example, do
not locate the file under the data directory.
Do not use the same keyring_file data file for multiple MySQL
instances. Each instance should have its own unique data file.
The default file name is keyring, located in a directory that is
platform specific and depends on the value of the INSTALL_LAYOUT CMake
option, as shown in the following table. To specify the default
directory for the file explicitly if you are building from source, use
the INSTALL_MYSQLKEYRINGDIR CMake option.
您还将看到各种Linux发行版处理它的默认值.
在/ var / lib中/ MySQL的,钥匙圈/钥匙圈
所以答案应该是可以安全地忽略.但是你希望innodb文件加密my.cnf应该是这样的:
[mysqld]
keyring_file_data = /var/lib/mysql-keyring/keyring
但是,这可能无法解决您的问题.
>这是一个不属于stackoverflow但可能是serverfault的问题.
>这是一个权限问题.你是否将mysql数据目录列入mysqld运行的用户?
mysql v7.11_编译后MySQL v5.7.11安装出错相关推荐
- qt发布后 mysql数据库_qt发布后 mysql数据库
{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],&q ...
- mysql装一次后再装_MySQL再安装
之前安装过一次MySQL,但是由于时间问题没安装完.今天再次安装了一下,遇到的一些问题及参考的博客如下. 问题一:忘记密码.emm很久没碰过了把之前设置的root密码忘记了. 问题二:以管理员身份打开 ...
- Mysql源码编译和调试debug
下载源码 直接从github 上下载了源码.git 地址:https://github.com/mysql/mysql-server 下载路径如:/work/mysql-server 编译 依赖 ma ...
- 高可用架构篇 MySQL源码编译安装(CentOS-6.6+MySQL-5.6)
部署环境 操作系统:CentOS-6.6-x86_64-bin-DVD1.iso MySQL版本:mysql-5.6.26.tar.gz 操作用户:root 系统IP:192.168.1.205 主机 ...
- mysql 数据库安装命令_教你MySQL数据库的编译安装以及命令详解(5.7版本)
一.安装MySQL所需的环境依赖包 [root@localhost opt]# yum -y install gcc gcc-c++ make ncurses ncurses-devel bison ...
- LNMP架构环境搭建之mysql源码编译安装
Mysql MySQL是一个开源的数据库,在互联网行业应用的很广泛,下面来记录一下从源码编译安装的步骤,当然,MySQL也有其他安装方式,比如,使用yum下载安装rpm包,或者二进制方式安装,如果机器 ...
- linux mysql编译安装mysql_【MySQL安装】Linux下安装MySQL(预编译)
预编译方式安装MySQL 一.环境说明 操作系统:Redhat Linux 7.2 MySQL版本:5.7 安装介质:mysql-5.7.25-linux-glibc2.12-x86_64.tar.g ...
- 编译 php mysql 依赖包_MySQL 5.5.15源码包编译安装
mysql果然是不愧是目前最火的数据库,自从mysql5.5.8之后,mysql的源码包编译安装都要用到cmake来进行编译了,编译的过程没有本质 mysql果然是不愧是目前最火的数据库,自从mysq ...
- MySQL源码编译与初始化
MySQL源码编译与初始化 链接:https://pan.baidu.com/s/1ANGg3Kd_28BzQrA5ya17fQ 提取码:ekpy 复制这段内容后打开百度网盘手机App,操作更方便哦 ...
最新文章
- Pandas简明教程:五、Pandas简单统计操作及通用方式
- 互联网日志的种类、存储和计算
- 搜索文献_如何有效地搜索及阅读文献
- QNetworkAccessManager的异步与线程
- linux 写地址 hex,你怎么理解Hex文件? (扩展地址记录)
- ROS的学习(六)理解ROS的节点(NODE)
- 我从不劝退,我就是退。
- 部署Screego浏览器实现多人共享屏幕
- ubuntu2004 安装protoc
- 小常识:软件常见的各种版本英文缩写
- 大秦:开局签到满级剑术天赋(一)
- VUE大屏可视化实战
- 【Python】窗口界面 按钮 文本框
- android图片上传后台后旋转的关键原因:ExifInterface
- sql20005 分页存储过程
- components vue 引用 assets图片
- 英首相:比起无协议脱欧 国会阻挠脱欧可能性更高
- 零点起飞学Visual Basic pdf
- Python的数据类型(二):字符串类型、布尔类型、列表、元组、字典、集合
- 1 3 倍频程谱 c语言,频谱、能谱、功率谱、倍频程谱、1/3 倍频程谱
热门文章
- Spark基础学习笔记14:Scala数据结构
- Spring Boot基础学习笔记17:Spring Boot默认缓存
- 使用Genymotion模拟器
- php 数组 js 数组_PHP数组转换为js数组
- 2017.5.9 积木大赛 思考记录
- Android WebView:这是一份全面 详细的WebView学习指南
- Django中使用Celery(附赠代码)
- java字节型的关键字_DAY06-07 Java的基础语法-注释、标识符、关键字、数据类型
- python chromedriver_Linux下搭建Python3.7+Selenium+Chrome+Chromedriver
- python 3.7.732位安装步骤_Python3.7.0安装教程