Bug #78936 | Installing MySQL on Linux Using Debian Packages missing dependency | ||
---|---|---|---|
Submitted: | 23 Oct 2015 9:33 | Modified: | 22 Dec 2015 22:56 |
Reporter: | SQL Stunts | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.7 | OS: | Ubuntu (14.04) |
Assigned to: | Daniel So | CPU Architecture: | Any |
[23 Oct 2015 9:33]
SQL Stunts
[23 Oct 2015 11:32]
Lars Tangvald
Thank you for bringing this to our attention. The instructions given are not in the correct order, and are also missing some updates for 5.7
[23 Oct 2015 12:24]
Lars Tangvald
Posted by developer: Docs team: In addition to the incorrect order of the install commands, the page is also missing the commands for a couple of packages. Additionally, the package libmysqlclient18 needs to be changed to libmysqlclient20. There are two ways to correctly install the debs: 1. Install them in whatever order (this will generate dependency errors), then run apt-get install -f at the end. This will work, but since it generates error messages we should avoid it. 2. Install them all in correct order using dpkg. I'm noting one order that will work below, using Ubuntu 14.04 and amd64 as an example: dpkg -i mysql-common_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-client_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-client_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-client_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-server_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-server_5.7.9-1ubuntu14.04_amd64.deb If the test suite is to be installed, we also need: dpkg -i libmysqlclient20_5.7.9-1ubuntu14.04_amd64.deb dpkg -i libmysqlclient-dev_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-test_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-testsuite_5.7.9-1ubuntu14.04_amd64.deb Also note that the references to the dpkg-preconfigure command and test database can be removed.
[23 Oct 2015 12:36]
Lars Tangvald
Posted by developer: The above list should have been (I put mysql-community-client twice): dpkg -i mysql-common_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-client_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-client_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-community-server_5.7.9-1ubuntu14.04_amd64.deb dpkg -i mysql-server_5.7.9-1ubuntu14.04_amd64.deb
[27 Oct 2015 19:33]
Todd Farmer
Here's where I found it suggested it was caused by the default database: http://stackoverflow.com/questions/27132697/mysql-error-empty-string-given-as-argument-for... https://teamtreehouse.com/community/error-executing-query Seems to be somewhat common.
[22 Dec 2015 22:56]
Daniel So
The installation instructions for the MySQL 5.7 .deb packages in the MySQL 5.7 Reference Manual have been updated. Changes will be visible in the next build of the manual.