Solution to the 1067 error when installing mysql: 1. Close all mysql server processes by entering the "sc delete mysql" command; 2. Check whether the mysql installation file directory contains Chinese characters, and delete it if it contains Chinese characters. Then reinstall MySQL.
The operating environment of this tutorial: Windows 10 system, mysql5.6 version, Dell G3 computer.
How to solve the 1067 error when installing mysql?
Mysql detailed installation tutorial and 1067 error code solution
First step: Log in to the mysql official websitehttps://dev.mysql .com/
Step 2: Find the appropriate version to download
Click MySQL Community on the left side of the screen Downloads
Then click MySQL Community Server
After entering, you will find that the version is 8Version, click Looking for previous GA versions? in the upper right corner of the screen, wait a little time
When you find that you can select a version, convert the version to5.6 version, move the mouse to the bottom, select the appropriate operating system to download (win32/win64), and click download. At this time, a LOGIN and Sign Up will pop up. Don't click on it. Click on the bottom left.
No thanks, just start my download.
should be in English as much as possible to avoid use Chinese. Otherwise, it may cause an error in the final operation (execution error: 1067)
Utf-8 encoding Open it in a software, such as (pycharm/notepad, etc.), do not open it directly in windows (because the default encoding of windows is jbk encoding)
[mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] #设置3306端口 port = 3306 # 设置mysql的安装目录 basedir=C:\Program Files\mysql-5.6.39-winx64 # 设置mysql数据库的数据的存放目录 datadir=C:\Program Files\mysql-5.6.39-winx64\data # 允许最大连接数 max_connections=200 # 服务端使用的字符集默认为8比特编码的latin1字符集 character-set-server=utf8 # 创建新表时将使用的默认存储引擎 default-storage-engine=INNODB
basedir=The current path where mysql is stored, datadir=The current path where the data folder in mysql is stored, save after modification
Do not delete my-default.ini
net start mysql to start the service.
Report 1067 fault error solutionRecommended study: "MySQL Video Tutorial"
The above is the detailed content of How to solve the 1067 error when installing mysql. For more information, please follow other related articles on the PHP Chinese website!