MySql error solution bitsCN. com1.mysql service cannot be started operating system:
Win xp: mysql service cannot be started
Exception Message: mysql service cannot be started on the local computer. error 1067: process aborted unexpectedly
Cause: The my. ini file does not exist in the C:/WINDOWS directory. (If yes, the two environment variables basedir and datadir may have an error ).
Solution: Use the search method to search for the my. ini file in the entire system. If yes, copy the file to the C:/WINDOWS directory. If not, manually create the my. ini file in the C:/WINDOWS directory. the new file contains at least two basic configurations: basedir and datadir.
My. ini configuration example:
[Mysqld]
# Set basedir to installation path, e.g., c:/mysql
# Set it to the MYSQL installation directory
Basedir = D:/www/WebServer/MySQL
# Set datadir to location of data directory,
# E.g., c:/mysql/data or d:/mydata/data
# Set it to the MYSQL data directory
Datadir = D:/www/WebServer/MySQL/databitsCN.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service