MySQL startup error 1067 and invalid recovery after changing character set and restarting

MySQL startup error 1067 and invalid recovery after changing character set and restarting

Downloaded the unzipped version of mysql-5.6.37-winx64.zip from the official website, modified the configuration file, installed the service, and used it directly;

Chinese garbled characters appear, the solution is:

In the mysql-5.6.37-winx64 directory, create and configure a new my.ini file (the content can be found online, or refer to my-default.ini manual configuration)

Notice:

[client] Be sure not to put the node in the wrong location, for example:

Wrong way:

[mysqld]
character-set-server=utf8
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
[client]
default-character-set=utf8
# Remove leading # to turn on a very important data integrity option: logging

ps: The following properties are under the [mysqld] node. If you place the [client] node like this, they will become [client] properties.

The following error is reported: mysql: unknown variable 'basedir=D:\mysql-5.6.37-winx64'

 basedir = D:\\mysql-5.6.37-winx64
 datadir = D:\\mysql_data

The correct way should be to put the [client] node at the end or the front, not in the [mysqld] node. As for net start mysql, error 1067 appears when starting the mysql service. Check the log and find

MySQL: Table 'mysql.plugin' doesn't exist
2017-10-17 11:40:50 2928 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2017-10-17 11:40:50 2928 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist,
Finally, change datadir = D:\\mysql_data to datadir = D:\\mysql-5.6.37-winx64\\data

The service is started (because my.ini was not created before, the default configuration has been used, so the data location path does not correspond, just change it)

Summarize

The above is what I introduced to you about the MySQL startup 1067 error and the invalid recovery problem after modifying the character set and restarting. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Sharing of MySQL character set and database engine modification methods
  • Practical tutorial on modifying MySQL character set
  • MySQL character set viewing and modification tutorial
  • How to change the character set encoding to UTF8 in MySQL 5.5/5.6 under Linux
  • Comparison of storage engines supported by MySQL database
  • Implement a simple search engine based on MySQL
  • Differences and comparisons of storage engines in MySQL
  • MySQL learning summary: a preliminary understanding of the architectural design of the InnoDB storage engine
  • MySQL changes the default engine and character set details

<<:  js+Html to realize table editable operation

>>:  How to configure VMware virtual machine NAT mode

Recommend

Tutorial on upgrading, installing and configuring supervisor on centos6.5

Supervisor Introduction Supervisor is a client/se...

Web skills: Multiple IE versions coexistence solution IETester

My recommendation Solution for coexistence of mul...

Detailed tutorial on installing MySQL offline on CentOS7

1. Delete the original mariadb, otherwise mysql c...

A brief discussion on event-driven development in JS and Nodejs

Table of contents Event-driven and publish-subscr...

How to store false or true in MySQL

MySQL Boolean value, stores false or true In shor...

MySQL data table partitioning strategy and advantages and disadvantages analysis

Table of contents Why do we need partitions? Part...

JavaScript's unreliable undefined

undefined In JavaScript, if we want to determine ...

Detailed explanation of Vue router routing guard

Table of contents 1. Global beforeEach 1. Global ...

Implementation method of Mysql tree recursive query

Preface For tree-structured data in the database,...

mysql command line script execution example

This article uses an example to illustrate the ex...

Process parsing of reserved word instructions in Dockerfile

Table of contents 1. What is Dockerfile? 2. Analy...

Manually install mysql5.7.10 on Ubuntu

This tutorial shares the process of manually inst...

jQuery implements all selection and reverse selection operation case

This article shares the specific code of jQuery t...

How to use Linux locate command

01. Command Overview The locate command is actual...