Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I upgrade MySQL in Xampp?

Tags:

mysql

xampp

I followed this guide https://superuser.com/a/860604

However, when I run mysql it fall and get me error:

2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'min_value' at position 3 to have type varbinary(255), found type varchar(255).

2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'max_value' at position 4 to have type varbinary(255), found type varchar(255).

What's going wrong?

like image 831
Tsyklop Avatar asked Dec 15 '17 11:12

Tsyklop


People also ask

What version of MySQL does XAMPP use?

What MySQL version is in XAMPP? New in both releases of XAMPP are MySQL (5.0. 37), PHP (4.4. 6), phpMyAdmin (2.10.


2 Answers

This might be old, but this should help most people troubling right now. I'm also moving from MariaDB 10.1.x (provided default by XAMPP), and upgrading to MariaDB 10.2.18(their latest version of 10.2.x).

Assuming you done correctly, until line 9 from your source.

Then simply comment this in mysql/bin/my.ini

#innodb_additional_mem_pool_size = 2M

Hope this helps

like image 195
Irfandy Jip Avatar answered Nov 15 '22 07:11

Irfandy Jip


The database "mysql" schema may have changed after the upgrade. mysql expects two colums to be of different type.

Dump mysql database as backup and change those columns:

alter table `column_stats` drop column `min_value`;
alter table `column_stats` drop column `max_value`;
alter table `column_stats` add column `min_value` varbinary(255) DEFAULT NULL AFTER `column_name`;
alter table `column_stats` add column `max_value` varbinary(255) DEFAULT NULL AFTER `min_value`;
like image 38
user2310284 Avatar answered Nov 15 '22 08:11

user2310284