unknown variable 'defaults-file=/home/mysql/my3310.cnf'--percona server 5.7
初始化 percona server 5.7 的時候
一定要把預設的 /etc/my.cnf mv 掉 否則一直優先按照預設配置進行引數讀取
報錯如下:
[root@fund-mgmt-db-mog-2 ~]# /home/mysql/mysql/bin/mysqld --initialize --user=mysql --defaults-file=/home/mysql/my3310.cnf --basedir=/home/mysql/mysql --datadir=/home/mysql/my3310/data
2016-11-21T02:44:43.017602Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-11-21T02:44:43.179291Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-11-21T02:44:43.214156Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-11-21T02:44:43.267368Z 0 [ERROR] unknown variable 'defaults-file=/home/mysql/my3310.cnf'
2016-11-21T02:44:43.267390Z 0 [ERROR] Aborting
解決辦法: 調整一下引數順序就好了
[root@fund-mgmt-db-mog-2 ~]# /home/mysql/mysql/bin/mysqld --defaults-file=/home/mysql/my3310.cnf --initialize --user=mysql --basedir=/home/mysql/mysql --datadir=/home/mysql/my3310/data
一定要把預設的 /etc/my.cnf mv 掉 否則一直優先按照預設配置進行引數讀取
報錯如下:
[root@fund-mgmt-db-mog-2 ~]# /home/mysql/mysql/bin/mysqld --initialize --user=mysql --defaults-file=/home/mysql/my3310.cnf --basedir=/home/mysql/mysql --datadir=/home/mysql/my3310/data
2016-11-21T02:44:43.017602Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-11-21T02:44:43.179291Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-11-21T02:44:43.214156Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-11-21T02:44:43.267368Z 0 [ERROR] unknown variable 'defaults-file=/home/mysql/my3310.cnf'
2016-11-21T02:44:43.267390Z 0 [ERROR] Aborting
解決辦法: 調整一下引數順序就好了
[root@fund-mgmt-db-mog-2 ~]# /home/mysql/mysql/bin/mysqld --defaults-file=/home/mysql/my3310.cnf --initialize --user=mysql --basedir=/home/mysql/mysql --datadir=/home/mysql/my3310/data
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29291882/viewspace-2128790/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql登陸報錯mysql: unknown variable 'basedir=MySql
- 單機多例項執行 percona server 5.7Server
- JDBC/MYSQL問題 : Unknown system variable 'query_cache_size'JDBCMySql
- MySQL Galera叢集搭建流程(Percona XtraDB Cluster 5.7)MySql
- MySQL server5.7版出現server failedMySqlServerAI
- 因login-path導致MySQL 啟動[ERROR]unknown variable 'password=*****'MySqlError
- mysql,mariaDB,Percona Server,MongoDB,Redis,RocksDBMySqlServerMongoDBRedis
- MySQL5.7 Unable to find a match: MySQL-community-serverMySqlUnityServer
- percona5.7 原始碼安裝原始碼
- Innodbreadonly事務、MySQL5.7和Percona的事務改進MySql
- Percona MySQL 5.7 Linux通用二進位制包安裝(CentOS 6.5)MySqlLinuxCentOS
- MYSQL5.5修改字符集報錯:unknown variable 'default-character-set=utf8'MySql
- mysqlbinlog: unknown variable 'default-character-set=utf8'MySql
- ERROR 1193: Unknown system variable 'log_slow_queries'Error
- mysql 5.7新增server_audit 安全審計功能MySqlServer
- linux下Percona-Server(mysql衍生版)的安裝LinuxServerMySql
- Percona Server TokuDB安裝Server
- mysql error 2005 - Unknown MySQL server host 'localhost'(11001)MySqlErrorServerlocalhost
- MySQL Percona XtraBackupMySql
- MySQL衍生版 Percona Server 5.5.14-20.5 穩定版MySqlServer
- MySQL 報錯'Variable 'XXX' is a read only variable'MySql
- 【MySQL】MySQL 5.7 初探MySql
- sql mysql variable autocommit (5)MySqlMIT
- SELECT INTO FROM mysql Undeclared variableMySql
- percona-server-rocksdb-8.0.32 安裝Server
- 安裝MySQL5.7報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.MySqlServerAI
- mysql Unknown error 1054MySqlError
- mysql關於variable的總結MySql
- percona server 日誌時間不正確Server
- rpm包方式安裝Percona serverServer
- 原始碼包方式安裝Percona server原始碼Server
- percona server5.6新功能記錄Server
- nginx 啟動報錯 unknown directive "server"NginxServer
- MySQL 5.7新特性MySql
- 使用Docker Mysql 5.7DockerMySql
- Docker 部署 MySQL 5.7DockerMySql
- MySQL 5.7 SYS SCHEMAMySql
- MobaSSH SSH server for Windows - Download Home EditionServerWindows