In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to solve the mysql mount / var/lib/mysql error in the win10 docker-toolbox environment". In the daily operation, I believe that many people have doubts about how to solve the mysql mount / var/lib/mysql error in the win10 docker-toolbox environment. The editor consulted all kinds of materials and sorted out a simple and useful operation method. I hope it will be helpful to answer the question of "how to solve the mysql mount / var/lib/mysql error in win10 docker-toolbox environment"! Next, please follow the editor to study!
Environment:
Win10, virtualbox, docker-toolbox, mysql:8.0
Description:
Because I am used to virtualbox, I installed the above environment in win10. Mounting files in this environment may have permission problems, which may be the bug of docker-toolbox in win10 (guess)
It took a whole day to solve the problem. Finally gave up, replaced by hyper-v + docker for windows, everything is normal at present. Linux is also normal.
Docker-compose.ymlversion: "3.4" services: db: image: mysql volumes:-/ app/mysql/data:/var/lib/mysql ports:-13306 docker-compose.ymlversion: MYSQL_ROOT_PASSWORD: 123123 restart: always command:-- default-authentication-plugin: mysql_native_password question:
Mount / var/lib/mysql cannot start the mysql server and the client cannot connect to the mysql
Error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/ var/run/mysqld/mysqld.sock' (2)
It works normally after unmounting / var/lib/mysql.
Web search can't find a solution to the problem.
Analysis:
After mounting, the permissions of / var/lib/mysql
Before / var/lib/mysql is mounted locally
Results:
Docker-toolbox is uninstalled
At this point, the study on "how to solve mysql mount / var/lib/mysql errors in win10 docker-toolbox environment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.