No problem! I am more than grateful that you spend your time on that. is the compatbility thing all related to sticking not to the stable debian packages?
Update from 1.2.9 to 1.2.11 removes mysql 5.7.10 version and installes 5.5.46 but why?
- TheRiddler1982
- Closed
- Thread is marked as Resolved.
-
-
Ok, It is impossible that you worked witih i-MSCP and MySQL-5.7 because some changes in MySQL 5.7.x are not compatible. For instance, the i-MSCP installer get users with emtpy passwords by executing the following query:
The problem is that right now, I get an error:
which is confirmed byCode- root@menkisyscloudsrv29:~/imscp-1.2.11# mysql -u debian-sys-maint -p<password>
- mysql: [Warning] Using a password on the command line interface can be insecure.
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 74
- Server version: 5.7.10 MySQL Community Server (GPL)
- Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql> SELECT User, Host FROM mysql.user WHERE Password = '';
- ERROR 1054 (42S22): Unknown column 'Password' in 'where clause'
- mysql>
So hereyou liewhen you say that MySQL 5.7 worked with 1.2.9 because that is not possible. Ok, I'll now try to fix the incompatibilities on your server but seriously, I'm not happy which such way to process... -
-
First incompatibility fixed by commenting related code part. Will be fixed properly in 1.2.12.
Another incompatibility
Code- main::setupRebuildCustomerFiles: │
- │ Error while rebuilding customers files: [ERROR] main::_process: Expression │
- │ #3 of SELECT list is not in GROUP BY clause and contains nonaggregated │
- │ column 'imscp.domain_dns.domain_dns_status' which is not functionally │
- │ dependent on columns in GROUP BY clause; this is incompatible with │
- │ sql_mode=only_full_group_by
I'll now fix that one... -
Fixed. I'll provide a small summary of what I've done in your server in few minutes.
-
-
Hi,
I've gone trough my records and I have installed in the beginning of August 1.2.9 I-MSCP version. In September, I have upgraded my MySQL version from 5.5 to 5.7 (hopping over 5.6). Since then, I have not run any I-MSCP installer. I had to repair and upgrade all database tables, but after that everything worked fine :-). So this would explain why I was able to get the guys together :-).
I have no problems with the hackings you do currently. As you have written, you'll take care of that in your next version. So, when I run the next update of your software, everything should be ok :-). I have more of a bad feeling that you spend so much time in fixing that.
Thanks,
Sven -
Summary of what I've done on your server to fix the problems:
- I've removed all orphaned and broken packages
- I've moved your /etc/apt/preferences.d/* files into /root/nxw_backup
- I've added MySQL repository for MySQL 5.7 (/etc/apt/sources.list.d/mysql.list)
- I've installed mysql-server-5.7 and mysql-client-5.7 packages manually (those packages are virtual and result to installation of mysql-community-* packages in place).
- I've fixed the missing password column in mysql.user table: This column is no longer provided in MySQL 5.7. Right now, I've just commented the related query in the installer.
- I've fixed the incompatible SQL mode error by adding the /etc/mysql/conf.d/nxw_imscp_compat.cnf file. This file will no be longer needed with i-MSCP 1.2.12
- I've added the following configuration snippet in the docs/Debian/packages-jessie.xml file:
Note that here, I've not added any pinning/repository information. This is not needed here because MySQL 5.7 is greater than any other MySQL version available in Jessie . I'll add those information in next version (1.2.12).
Then, I've run the installer as follow
and choosen mysql 5.7 -
-
thoses packages are virtual
Hi again!
Thanks for all your effort. postfix/rainloop is now working again! I'll make a a fine donation for all your efforts and support!
Could you explain what you mean with virtual packages and the community edition because you had to install it manually, too? When MySQL 5.7.11 would be released, will it get automatically installed with apt-get update/upgrade? Or do I have to install it manually in future, too?
Thanks,
Sven -
Hi,
just sent you a paypal donation. I know that it is not much for the time you spend as I am working in development (but not with web technologies) and know the hourly rates.
So, now, I will try to do what I have originally planned: install the php switcher plugin and give my website PHP 7 support
-
-
Both mysql-server-5.7 and mysql-client-5.7 are virtual packages. In case of packages provided by MySQL team, they are replaced by mysql-community-server and mysql-community-client packages.
Code- root@menkisyscloudsrv29:~/imscp-1.2.11# LANG=C aptitude show mysql-server-5.7 mysql-client-5.7No current or candidate version found for mysql-server-5.7Package: mysql-server-5.7State: not a real packageProvided by: mysql-community-serverNo current or candidate version found for mysql-client-5.7Package: mysql-client-5.7State: not a real packageProvided by: mysql-community-client
Therefore, when installing those packages, the mysql-community-server and mysql-community-client packages are automatically selected and installed in place. This is the expected behavior.Code- root@menkisyscloudsrv29:~/imscp-1.2.11# LANG=C aptitude show mysql-community-server mysql-community-client
- Package: mysql-community-server
- New: yes
- State: installed
- Automatically installed: no
- Version: 5.7.10-1debian8
- Priority: optional
- Section: database
- Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
- Architecture: amd64
- Uncompressed Size: 127 M
- Depends: mysql-common (= 5.7.10-1debian8), mysql-client (= 5.7.10-1debian8), psmisc, libaio1 (>= 0.3.93), libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libmecab2 (>= 0.996-1.1), libnuma1, libstdc++6 (>= 4.9), zlib1g
- (>= 1:1.2.0), debconf (>= 0.5) | debconf-2.0, init-system-helpers (>= 1.18~)
- PreDepends: debconf (>= 0.2.17), adduser
- Conflicts: mysql, mysql-commercial-server, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, mysql-server-5.6, mysql-server-5.7, mysql-server-core-5.0, mysql-server-core-5.1, mysql-server-core-5.5,
- mysql-server-core-5.6, mysql-server-core-5.7
- Replaces: mysql, mysql-commercial-server, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, mysql-server-5.6, mysql-server-5.7, mysql-server-core-5.0, mysql-server-core-5.1, mysql-server-core-5.5,
- mysql-server-core-5.6, mysql-server-core-5.7
- Provides: mysql-server-5.7, mysql-server-core-5.7, virtual-mysql-server, virtual-mysql-server-core
- Description: MySQL Server and server tools
- The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems
- as well as for embedding into mass-deployed software. MySQL is a trademark of Oracle. This package includes the MySQL server binary as well as related utilities to run and administer a MySQL server.
- Homepage: http://www.mysql.com/
- Package: mysql-community-client
- New: yes
- State: installed
- Automatically installed: no
- Version: 5.7.10-1debian8
- Priority: optional
- Section: database
- Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
- Architecture: amd64
- Uncompressed Size: 68.6 M
- Depends: mysql-common (= 5.7.10-1debian8), libaio1 (>= 0.3.93), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libncurses5 (>= 5.5-5~), libnuma1, libstdc++6 (>= 4.9), libtinfo5, zlib1g (>= 1:1.2.0)
- Conflicts: mysql, mysql-client-5.0, mysql-client-5.1, mysql-client-5.5, mysql-client-5.6, mysql-client-5.7, mysql-client-core-5.0, mysql-client-core-5.1, mysql-client-core-5.5, mysql-client-core-5.6,
- mysql-client-core-5.7, mysql-commercial-client
- Replaces: mysql, mysql-client-5.0, mysql-client-5.1, mysql-client-5.5, mysql-client-5.6, mysql-client-5.7, mysql-client-core-5.0, mysql-client-core-5.1, mysql-client-core-5.5, mysql-client-core-5.6,
- mysql-client-core-5.7, mysql-commercial-client
- Provides: mysql-client-5.7, mysql-client-core-5.7, virtual-mysql-client, virtual-mysql-client-core
- Description: MySQL Client and client tools
- The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems
- as well as for embedding into mass-deployed software. MySQL is a trademark of Oracle. This package contains the standard MySQL clients and administration tools.
- Homepage: http://www.mysql.com/
See the Replaces and Provides fieldsAs stated in my previous post, I've added the needed configuration snippet for your MySQL 5.7 version in your i-MSCP Debian Jessie package file. So you have nothing to do. You can run the installer again from the imscp-1.2.11 folder and that will work.
I'll update package files for MySQL 5.7 in next i-MSCP version 1.2.12. What you'll have to do is just running the installer as usually.
Yes, when the MySQL team will release a new tiny version such as 5.7.11, update will be done automatically when you'll run aptitude upgrade or aptitude dist-upgrade because I've added the repository (/etc/apt/sources.list.d/mysql.list).
-
Thank you for the donation. You get the donator status
Please, mark this thread as solved.
-