First of all, this might be a duplicate question. I have searched here and tried so many of the solutions but nothing works.
have tried these
So here is my problem
I install the xampp and also install the windows-services for Apache2.4 and MySQL.
After restarting the system Apache2.4 runs but MySQL gives an error.
9:11:01 PM [mysql] Status change detected: running
9:11:06 PM [mysql] Status change detected: stopped
9:11:06 PM [mysql] Error: MySQL shutdown unexpectedly.
9:11:06 PM [mysql] This may be due to a blocked port, missing dependencies,
9:11:06 PM [mysql] improper privileges, a crash, or a shutdown by another method.
9:11:06 PM [mysql] Press the Logs button to view error logs and check
9:11:06 PM [mysql] the Windows Event Viewer for more clues
9:11:06 PM [mysql] If you need more help, copy and post this
9:11:06 PM [mysql] entire log window on the forums
as for the error logs, there is nothing as of today's date.
and if I uninstall MySQL from windows-services and run MySQL it is running perfectly.
Any help, Thanks in advance.
29/10/2021 - update
Today found this error in the windows event viewer.
- System
- Provider
[ Name] MySQL
- EventID 100
[ Qualifiers] 49152
Version 0
Level 2
Task 0
Opcode 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2021-10-29T11:46:46.8338104Z
EventRecordID 4754
Correlation
- Execution
[ ProcessID] 0
[ ThreadID] 0
Channel Application
Computer DESKTOP-1ICHLJ9
Security
- EventData
Can't find messagefile 'C:\xampp\mysql\share\errmsg.sys'
Event data = Can't find messagefile 'C:\xampp\mysql\share\errmsg.sys'
But the xampp is installed in E drive.
How do I change the path mentioned here?