mysql自動停止 Plugin FEDERATED is disabled 的完美解決方法
這兩天新買的服務器mysql總是自動停止,查了日志
9:13:57 [Note] MySQL: Normal shutdown
9:13:57 [Note] Event Scheduler: Purging the queue. 0 events
9:13:57 InnoDB: Starting shutdown...
9:13:58 InnoDB: Shutdown completed; log sequence number 0 44273
9:13:58 [Note] MySQL: Shutdown complete
重啟發(fā)現(xiàn)
9:13:59 [Note] Plugin 'FEDERATED' is disabled.
9:13:59 InnoDB: Initializing buffer pool, size = 8.0M
9:13:59 InnoDB: Completed initialization of buffer pool
9:13:59 InnoDB: Started; log sequence number 0 44273
9:13:59 [Note] Event Scheduler: Loaded 0 events
9:13:59 [Note] MySQL: ready for connections.
Version: '5.1.61-community' socket: '' port: 3306 MySQL Community Server (GPL)
9:14:24 [Note] MySQL: Normal shutdown
網(wǎng)上找到的方法
在MY.INI文件中的 [mysqld] 中增加一行tmpdir="D:/MySQL/data/tmp"
刪除MySQL目錄下的ib_logfile0和ib_logfile1
測試后沒有用
后來在服務中設置了mysql自動重啟
最后
[mysqld]
federated
解決
啟動正常
10:28:01 InnoDB: Initializing buffer pool, size = 8.0M
10:28:01 InnoDB: Completed initialization of buffer pool
10:28:01 InnoDB: Started; log sequence number 0 44556
10:28:01 [Note] Event Scheduler: Loaded 0 events
10:28:01 [Note] MySQL: ready for connections.
Version: '5.1.61-community' socket: '' port: 3306 MySQL Community Server (GPL)
順手添加
skip-external-locking
skip-name-resolve
解決
相關(guān)文章
淺談mysql中concat函數(shù),mysql在字段前/后增加字符串
下面小編就為大家?guī)硪黄獪\談mysql中concat函數(shù),mysql在字段前/后增加字符串。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02MySQL order by與group by查詢優(yōu)化實現(xiàn)詳解
order by 子句盡量使用index方式排序(即using index),避免使用filesort方式排序(即using filesort)。Index方式效率高,它指MySQL掃描索引本身完成排序,filesort則效率低2022-11-11InnoDB 類型MySql恢復表結(jié)構(gòu)與數(shù)據(jù)
MySQL中.frm文件:保存了每個表的元數(shù)據(jù),包括表結(jié)構(gòu)的定義等,該文件與數(shù)據(jù)庫引擎無關(guān)。MySQL中.ibd文件:InnoDB引擎開啟了獨立表空間(my.ini中配置innodb_file_per_table = 1)產(chǎn)生的存放該表的數(shù)據(jù)和索引的文件。2018-01-01SQL使用復合索引實現(xiàn)數(shù)據(jù)庫查詢的優(yōu)化
這篇文章主要介紹了SQL使用復合索引實現(xiàn)數(shù)據(jù)庫查詢的優(yōu)化,文章圍繞主題展開詳細的內(nèi)容介紹,具有一定的參考價值,需要的小伙伴可以參考一下2022-05-05