# Howto use mysql-5.7 on Xenial

**URL:** <https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912>\
**Category:** Xenial\
**Created:** [November 15, 2018, 12:24pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912 "2018-11-15T12:24:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngiger](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ngiger/32/474_2.png) [@ngiger](https://travis-ci.community/u/ngiger)\
**Post date:** [November 15, 2018, 12:24pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912/1 "2018-11-15T12:24:11Z")

</div>

I switched to dist: xenial under [https://travis-ci.org/ngiger/elexis-3-core/branches](https://travis-ci.org/ngiger/elexis-3-core/branches)  
in th branch f11106 as I want to have

- postgres 9.5
- jdk8
- mysql 5.7

However /usr/bin/mysql --version reports  
mysql Ver 14.14 Distrib 5.7.24, for Linux (x86\_64) using EditLine wrapper

dpkg -l “_mysql_”| grep ii however lists the expected  
ii mysql-client-5.7 5.7.24-0ubuntu0.16.04.1 amd64 MySQL database client binaries

What is the problem here.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [November 15, 2018, 2:28pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912/2 "2018-11-15T14:28:19Z")

</div>

What is the question? `mysql --version` reports 5.7.24, right? Is it not what you want?

[https://travis-ci.org/BanzaiMan/travis\_production\_test/builds/455522403#L486-L495](https://travis-ci.org/BanzaiMan/travis_production_test/builds/455522403#L486-L495)

```auto
$ mysql -e 'SHOW VARIABLES LIKE "%version%";'
Variable_name	Value
innodb_version	5.7.24
protocol_version	10
slave_type_conversions	
tls_version	TLSv1,TLSv1.1
version	5.7.24-0ubuntu0.16.04.1
version_comment	(Ubuntu)
version_compile_machine	x86_64
version_compile_os	Linux

```

---

<div class="post-metadata">

**Author:** ![ngiger](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ngiger/32/474_2.png) [@ngiger](https://travis-ci.community/u/ngiger)\
**Post date:** [November 15, 2018, 2:50pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912/3 "2018-11-15T14:50:14Z")

</div>

See [https://travis-ci.org/ngiger/elexis-3-core/builds/455501549](https://travis-ci.org/ngiger/elexis-3-core/builds/455501549) I got  
$ /usr/bin/mysql --version  
/usr/bin/mysql Ver 14.14 Distrib 5.7.24, for Linux (x86\_64) using EditLine wrapper

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [November 15, 2018, 2:56pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912/4 "2018-11-15T14:56:43Z")

</div>

I think that’s the right output for the version 5.7.24 client. With 5.6, you’d get

```auto
$ mysql -V
mysql Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using EditLine wrapper

```

---

<div class="post-metadata">

**Author:** ![ngiger](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ngiger/32/474_2.png) [@ngiger](https://travis-ci.community/u/ngiger)\
**Post date:** [November 15, 2018, 3:00pm UTC](https://travis-ci.community/t/howto-use-mysql-5-7-on-xenial/912/5 "2018-11-15T15:00:24Z")

</div>

Sorry for the noise. I just didn’t examine the result close enough and got puzzled as psql reports the version a little bit different.

Thanks for your help
