mysql 初始化資料庫報錯

2021-08-21 08:22:09 字數 857 閱讀 2227

mysql 初始化資料庫報錯

bin/mysqld \

> --initialize-insecure \    

2018-07-09t09:01:33.092169z 0 [warning] timestamp with implicit default value is deprecated. please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2018-07-09t09:01:33.093305z 0 [error] --initialize specified but the data directory has files in it. aborting.

2018-07-09t09:01:33.099451z 0 [error] too many arguments (first extra is ' ').

2018-07-09t09:01:33.093325z 0 [error] aborting

報錯 [error] --initialize specified but the data directory has files in it. aborting.

解決方法  刪除data 原因 ,可能是重複安裝 mysql 導致 data資料夾下有檔案

rm -rf /usr/local/mysql/data/*

報錯[error] too many arguments (first extra is ' ').初始化命令有空格或者

' '裡面的命令未能識別

報錯[error] aborting

異常終止 ,把其他報錯解決 ,就可以了。

mysql初始化很慢 mysql初始化報錯

var log mysql.log 日誌報錯如上圖所示 解決方法 selinux惹的禍 通俗的講就是linux伺服器的安全策略 解決 臨時關閉 setenforce 0 永久關閉需要修改配置檔案,重啟機器 修改 etc selinux config 檔案 將selinux enforcing改為se...

php初始化資料庫,初始化資料庫

進入安裝流程 從weiphp5.0開始,入口檔案index不在根目錄下,而是沿用tp5風格,放在public目錄 因此你的 目錄建議最好配置到public目錄下,比如在apache環境下,配置httpd.conf檔案如下 在nginx環境下,配置 conf檔案中的root引數到public目錄下 然...

mysql資料庫初始化指令碼

要想在mysql資料庫中,譬如定義cms的database,在cms下建 t admin t article t channel 這些table 那麼在myeclipse開發環境下可以先寫 source admin.sql即在mysql中執行sql指令碼的命令 init.bat前面rem表示的都是注...