Home Database Mysql Tutorial mysql服务1067错误多种解决方案_MySQL

mysql服务1067错误多种解决方案_MySQL

Jun 01, 2016 pm 01:49 PM
mysql solution

bitsCN.com

my.ini在MySQL的目录,于是在同事机器上拷贝了一个my.ini拿来修改,并单独放在一个地方作为备份。其内容如下:
 

 代码如下 复制代码
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
 
[mysqld]
basedir=d:/MySQL5.0/
#bind-address=127.0.0.1
datadir=d:/MySQL5.0/data
#language=D:/usr/local/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=d:/MySQL5.0/bin/mysqld-nt.exe
user=root
password=
然后在bin目录下
mysqld-nt -remove
mysqld-nt -install
net start mysql
ok!
 

看来最关键的问题,还在于这个my.ini

我看了那MySQL的服务,服务的my.ini启动路径早就设置好了,是在安装目录下的,根本不需要到windows目录下搞。无奈的是在搜索引擎搜索出来的结果,基本都是转载的(说的好听叫转载,不好听叫采集,更不好听叫抄袭)。经过多番周转,终于找到一个不同的了。以下为解决办法:

修改my.ini中

 代码如下 复制代码
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
将"INNODB“修改"MYISAM"为:
default-storage-engine=MYISAM
 

主要还是因为,使用的版本对INNODB未支持导致。


其它的参考方法


安装后MYSQL5后,发现启动出错,有时启动正常,但加接时马上出错。
出错代码:1067
解决办法如下:
1.删除%windows%/my.ini
2.删除其它地方的my.ini
3.在mysql安装目录下把my-small.ini复制为my.ini
4.在my.ini最后一行插入:
[mysqld]
#设置basedir指向mysql的安装路径

 代码如下 复制代码
basedir=C:/http://www.hzhuti.com/HTC/G12/mysql-5.1.11-beta-win32
datadir=C:/http://www.hzhuti.com/HTC/G18/mysql-5.1.11-beta-win32data
 

5.重新启动。。。

 代码如下 复制代码
C:mysql-5.1.11-beta-win32bin>net start mysql
 

MySQL 服务正在启动 .
MySQL 服务无法启动。
系统出错。
发生系统错误 1067。
进程意外终止。

 代码如下 复制代码
C:mysql-5.1.11-beta-win32bin>mysqld-nt --remove
Service successfully removed.
C:mysql-5.1.11-beta-win32bin>mysqld-nt --install
Service successfully installed.
C:mysql-5.1.11-beta-win32bin>net start mysql
 

MySQL 服务正在启动 .
MySQL 服务已经启动成功。

 代码如下 复制代码
C:mysql-5.1.11-beta-win32bin>net stop mysql
 

MySQL 服务正在停止..
MySQL 服务已成功停止。

解决办法一:复制mysql目录中的一份 my-***.inf 文件到系统的windows目录中。修改文件名为 my.inf.

然后在[mysqld]代码区添加类似的代码:

 代码如下 复制代码
# set basedir to installation path, e.g., c:/mysql
# 设置为MYSQL的安装目录
basedir=D:/Program Files/mysql-5.0.45-win32
# set datadir to location of data directory,
# e.g., c:/mysql/data or d:/mydata/data
# 设置为MYSQL的数据目录
datadir=D:/Program Files/mysql-5.0.45-win32/data
 

解决方法二 mysql 1067
错误如下:

1、执行winmysqladmin,生成my.ini文件
2、mysqld -install 启动mysql服务
3、net start mysql 启动mysql服务显示正常
当通过mysql -u root -p 连接时候报服务器没有启动的错误,察看server服务,确实mysql服务没有启动,手动启动产生1067错误,重新安装过几次mysql,错误依旧。察看各个配置都没有错误。

我的系统环境 win2003 mysql版本4.0.12。
解决办法,将winmysqladmin生成的my.ini拷贝到c:windows下再启动mysql就一切OK了。


查找Windows目录下的my.ini文件,如果没有 将mysql安装目录中my-medium.ini复制为c:windowsmy.ini 重起服务即可


一个重新安装的办法

在mysql的主目录下my.ini文件中添加
 

 代码如下 复制代码
[WinMySQLServer]
 
server=c:Program FilesMySQLMySQL Server 5.0binmysqld-nt.exe

CMD下运行:
 
c:Program FilesMySQLMySQL Server 5.0binmysqld-nt.exe remove   
 
c:Program FilesMySQLMySQL Server 5.0binmysqld-nt.exe install  
 
net mysql start
 

可参是编码引起的


调整服务器的字符集会导致1067错误

下列情况会出现1067错误:

1.设置好服务器的字符集后手支更改(my.ini)服务器的字符集

2.设置好服务器的字符集后,使用MySQLWorkbench.exe 在Server Administration 中更改服务器的字符集

 如何解决这个问题?

使用

 代码如下 复制代码
%MySQLInstallPath%bin/MySQLInstanceConfig.exe

来更改字符集,然后重新启动,在以后使用中,尽量使用上述程序完更改字符集

上面介绍的大量的关于mysql服务1067错误的解决方法,我想你的问题己经会得到很好的解决了

更多详细内容请查看:http://www.111cn.net/database/mysql/42201.htm

bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
Laravel Introduction Example Laravel Introduction Example Apr 18, 2025 pm 12:45 PM

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

MySQL and phpMyAdmin: Core Features and Functions MySQL and phpMyAdmin: Core Features and Functions Apr 22, 2025 am 12:12 AM

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

MySQL vs. Other Programming Languages: A Comparison MySQL vs. Other Programming Languages: A Comparison Apr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Solve database connection problem: a practical case of using minii/db library Solve database connection problem: a practical case of using minii/db library Apr 18, 2025 am 07:09 AM

I encountered a tricky problem when developing a small application: the need to quickly integrate a lightweight database operation library. After trying multiple libraries, I found that they either have too much functionality or are not very compatible. Eventually, I found minii/db, a simplified version based on Yii2 that solved my problem perfectly.

Laravel framework installation method Laravel framework installation method Apr 18, 2025 pm 12:54 PM

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

MySQL for Beginners: Getting Started with Database Management MySQL for Beginners: Getting Started with Database Management Apr 18, 2025 am 12:10 AM

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

Solve MySQL mode problem: The experience of using the TheliaMySQLModesChecker module Solve MySQL mode problem: The experience of using the TheliaMySQLModesChecker module Apr 18, 2025 am 08:42 AM

When developing an e-commerce website using Thelia, I encountered a tricky problem: MySQL mode is not set properly, causing some features to not function properly. After some exploration, I found a module called TheliaMySQLModesChecker, which is able to automatically fix the MySQL pattern required by Thelia, completely solving my troubles.

MySQL: Structured Data and Relational Databases MySQL: Structured Data and Relational Databases Apr 18, 2025 am 12:22 AM

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

See all articles