docker mysql mysqld: Error on realpath() on ‘/var/lib/mysql-files‘ No such file or directory
docker 使用mysql8映象時載入指定的外部配置檔案和儲存目錄,報出
mysqld: Error on realpath() on '/var/lib/mysql-files' (Error 2 - No such file or directory
當指定了外部配置檔案與外部儲存路徑時,也需要指定 /var/lib/mysql-files的外部目錄,
所以在 主機新建/home/mysql/mysql-files目錄,
在啟動容器時 需要加上
-v /home/mysql/mysql-files:/
var
/lib/mysql-files/
1 |
|
相關文章
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- docker容器掛載 No such file or directoryDocker
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- [ERROR] mysqld: Can‘t open shared library ‘/usr/local/mysql/lib/plugin/validate_password.so‘ (errno:ErrorMySqlPlugin
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- OGG-15050 Error loading Java VM runtime library: (2 No such file or directory)ErrorJava
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- Docker啟動故障問題 no such file or directory解決方法Docker
- mysqld: Can‘t create directory ‘E:\Software\mysql-5.7.24-winx64\data\‘ (Errcode: 2 - NoMySql
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMakMySqlErrorServerAPPAI
- Mac使用Docker時,卷預設掛載路徑/var/lib/docker/volumes不存在問題MacDocker
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- gitbook no such file or directory 怎麼解決Git
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- ERROR 1290:The MySQL server is running with the --secure-file-priv optionErrorMySqlServer
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- 解決IDEA Error:Output directory is not specifiedIdeaError
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- php realpath()PHP
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- MySQL The server quit without updating PID file xx/var/DESKTOP-BHVUG0D.pidMySqlServerUI
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- docker fileDocker
- MySQL 報錯 ERROR 1290 (HY000): running with the --secure-file-privMySqlError
- ubuntu解決Could not get lock /var/lib/dpkg/lock-frontendUbuntu
- E: 無法獲得鎖 /var/lib/apt/lists/lock - openAPT
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- 在 Linux 中執行.sh 指令碼 No such file or directoryLinux指令碼
- 建立DOCKER fileDocker