今天我的mysql服务器突然出来了1067错误提示,无法正常启动了,我今天从网上找寻了大量的解决mysql服务1067错误的办法,有需要的朋友可以看看。
my.ini在MySQL的目录,于是在同事机器上拷贝了一个my.ini拿来修改,并单独放在一个地方作为备份。其内容如下:
代码如下 | 复制代码 |
#Uncomment or Add only the keys that you know how works. #Read the MySQL Manual for instructions [d] 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:mysql-5.1.11-beta-win32 datadir=C: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 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] CMD下运行: |
可参是编码引起的
调整服务器的字符集会导致1067错误
下列情况会出现1067错误:
1.设置好服务器的字符集后手支更改(my.ini)服务器的字符集
2.设置好服务器的字符集后,使用MySQLWorkbench.exe 在Server Administration 中更改服务器的字符集
如何解决这个问题?
使用
代码如下 | 复制代码 |
%MySQLInstallPath%bin/MySQLInstanceConfig.exe |
来更改字符集,然后重新启动,在以后使用中,尽量使用上述程序完更改字符集
上面介绍的大量的关于mysql服务1067错误的解决方法,我想你的问题己经会得到很好的解决了。

MySQL uses a GPL license. 1) The GPL license allows the free use, modification and distribution of MySQL, but the modified distribution must comply with GPL. 2) Commercial licenses can avoid public modifications and are suitable for commercial applications that require confidentiality.

The situations when choosing InnoDB instead of MyISAM include: 1) transaction support, 2) high concurrency environment, 3) high data consistency; conversely, the situation when choosing MyISAM includes: 1) mainly read operations, 2) no transaction support is required. InnoDB is suitable for applications that require high data consistency and transaction processing, such as e-commerce platforms, while MyISAM is suitable for read-intensive and transaction-free applications such as blog systems.

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

There are four main index types in MySQL: B-Tree index, hash index, full-text index and spatial index. 1.B-Tree index is suitable for range query, sorting and grouping, and is suitable for creation on the name column of the employees table. 2. Hash index is suitable for equivalent queries and is suitable for creation on the id column of the hash_table table of the MEMORY storage engine. 3. Full text index is used for text search, suitable for creation on the content column of the articles table. 4. Spatial index is used for geospatial query, suitable for creation on geom columns of locations table.

TocreateanindexinMySQL,usetheCREATEINDEXstatement.1)Forasinglecolumn,use"CREATEINDEXidx_lastnameONemployees(lastname);"2)Foracompositeindex,use"CREATEINDEXidx_nameONemployees(lastname,firstname);"3)Forauniqueindex,use"CREATEU

The main difference between MySQL and SQLite is the design concept and usage scenarios: 1. MySQL is suitable for large applications and enterprise-level solutions, supporting high performance and high concurrency; 2. SQLite is suitable for mobile applications and desktop software, lightweight and easy to embed.

Indexes in MySQL are an ordered structure of one or more columns in a database table, used to speed up data retrieval. 1) Indexes improve query speed by reducing the amount of scanned data. 2) B-Tree index uses a balanced tree structure, which is suitable for range query and sorting. 3) Use CREATEINDEX statements to create indexes, such as CREATEINDEXidx_customer_idONorders(customer_id). 4) Composite indexes can optimize multi-column queries, such as CREATEINDEXidx_customer_orderONorders(customer_id,order_date). 5) Use EXPLAIN to analyze query plans and avoid

Using transactions in MySQL ensures data consistency. 1) Start the transaction through STARTTRANSACTION, and then execute SQL operations and submit it with COMMIT or ROLLBACK. 2) Use SAVEPOINT to set a save point to allow partial rollback. 3) Performance optimization suggestions include shortening transaction time, avoiding large-scale queries and using isolation levels reasonably.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download
The most popular open source editor

WebStorm Mac version
Useful JavaScript development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
