Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install specific MySQL version [duplicate]

Tags:

mysql

ubuntu

I have two machines, one local (mine) and one server... both of them have MySQL installed, but for some reason they use different MySQL versions, although the installation process was exactly the same.

When I run mysql --version in my machine I see:

mysql  Ver 8.0.18-0ubuntu0.19.10.1 for Linux on x86_64 ((Ubuntu))

But in my server I see:

mysql  Ver 14.14 Distrib 5.7.28, for Linux (x86_64) using  EditLine wrapper

Because they are different, I can't restore the dump of one into the other. Would it be possible to specify a version when installing mysql?

Thank you.

like image 346
Amanda Ferrari Avatar asked May 02 '26 19:05

Amanda Ferrari


1 Answers

I believe what your looking is how to install an specific version of a package using apt, right?

Here an answer:

https://askubuntu.com/questions/428772/how-to-install-specific-version-of-some-package

Another way is installing downloading from mysql website:

https://dev.mysql.com/downloads/mysql/5.7.html
Version of your server

https://dev.mysql.com/downloads/mysql/
Latest version

like image 193
Diogo Bratti Avatar answered May 04 '26 11:05

Diogo Bratti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!