9

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.

Amanda Ferrari
  • 1,168
  • 5
  • 17
  • 30

1 Answers1

4

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

Diogo Bratti
  • 115
  • 1
  • 8