当前位置:网站首页>Yukeng MySQL service installation error

Yukeng MySQL service installation error

2022-06-23 20:39:00 FutureTester

Install one locally today mysql service , Met two problems , It took a long time to solve the problem , It's mainly about mysql I don't know much about error reporting ,

Now take a note of , Prevent the same problems in the cloud in the future , I don't know how to solve .

An error is reported during initialization :mysqld --initialize-insecure --user=mysql

mysqld: Can't create directory 'D:\mysql\mysql-8.0.17-winx64\data\' (OS errno 2 - No such file or directory)
2021-12-14T06:49:45.127258Z 0 [System] [MY-013169] [Server] D:\mysql\mysql-8.0.27-winx64\bin\mysqld.exe (mysqld 8.0.27) initializing of server in progress as process 14276
2021-12-14T06:49:45.127335Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file 'D:\mysql\mysql-8.0.27-winx64 hare\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2021-12-14T06:49:45.127785Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2021-12-14T06:49:45.129040Z 0 [ERROR] [MY-010187] [Server] Could not open file 'D:\mysql\mysql-8.0.17-winx64\data\DESKTOP-F48M3QT.err' for error logging: Permission denied
2021-12-14T06:49:45.129458Z 0 [ERROR] [MY-013236] [Server] The designated data directory D:\mysql\mysql-8.0.17-winx64\data\ is unusable. You can remove all files that the server added to it.
2021-12-14T06:49:45.129562Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-12-14T06:49:45.129697Z 0 [System] [MY-010910] [Server] D:\mysql\mysql-8.0.27-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.27)  MySQL Community Server - GPL.

reason :

my.ini File path input error , It has been written. \\

resolvent :

basedir = D:\mysql\mysql-8.0.27-winx64

# Set up mysql Database data storage directory

datadir = D:\mysql\mysql-8.0.27-winx64\data

Installation error :mysqld --install

Install/Remove of the Service Denied!

reason :

cmd The window is not opened as an administrator

resolvent :

Open as administrator cmd window

原网站

版权声明
本文为[FutureTester]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112291954434633.html