Support MySQL5.7 in backward compatible mode (#630)

This commit is contained in:
FrancescoUK
2016-11-20 21:20:52 +00:00
parent 1440e6bce9
commit 7ef68fbc76
7 changed files with 15 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ PHP version 5.5 or newer is recommended but PHP 7.x is not fully supported yet.
PHP needs to have `php-gd`, `php-bcmath`, `php-intl`, `php-sockets` and `php-mcrypt` installed and enabled.
MySQL 5.5 or 5.6 are fine but MySQL 5.7 is not supported yet.
MySQL 5.5 or 5.6 are fine, MySQL 5.7 is supported in backward compatible mode.
Apache 2.2 and 2.4 are working both fine.
@@ -137,8 +137,8 @@ Bug reports must follow this schema:
1. Ospos **version string with git commit hash** (see ospos footer)
2. OS name and version running your Web Server (e.g. Linux Ubuntu 15.0)
3. Web Server name and version (e.g. Apache 2.4)
4. Database name and version (e.g. =< MySQL 5.6)
5. PHP version (e.g. PHP 5.5)
4. Database name and version (e.g. MySQL 5.6)
5. PHP version (e.g. PHP 5.6)
6. Language selected in OSPOS (e.g. English, Spanish)
7. Any configuration of OSPOS that you changed
8. Exact steps to reproduce the issue (test case)
@@ -159,8 +159,6 @@ FAQ
* If you read errors containing messages with Socket word in it, please make sure you have installed PHP Sockets support (e.g. go to PHP.ini and make sure all the needed modules are not commented out. This means `php5-gd`, `php-intl` and `php-sockets`. Restart the web server)
* If you get various errors at item creation, opening views or reports, or having issues at login please make sure you are not using MySQL 5.7 as it's not supported yet
* If you installed your OSPOS under a web server subdir, please edit public/.htaccess and go to the lines with comment `if in web root` and `if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path` and follow the instruction on the second comment line. If you face more issues please read [issue #920](https://github.com/jekkos/opensourcepos/issues/920) for more help
* If the avatar pictures are not shown in Items or at Item save time you get an error, please make sure your public and subdirs are assigned to the correct owner and the access permission is set to 755

View File

@@ -5,6 +5,7 @@ Version 3.0.1
+ *Improved security: email and sms passwords encryption, removed phpinfo.php*
+ *Set code to be production and not development in index.php*
+ *Reports improvements, fixed tax calculation and made profit to be net profit*
+ *MySQL5.7 supported in backward compatible mode (please run the database upgrade script)*
+ Better Apache 2.4 support in .htaccess
+ Updates to language translations
+ Fixed excel template download links

View File

@@ -0,0 +1,2 @@
-- Disable ONLY_FULL_GROUP_BY required by MySQL 5.7
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

View File

@@ -1,4 +1,7 @@
-- >> This file is autogenerated from tables.sql and constraints.sql. Do not modify directly << --
-- Disable ONLY_FULL_GROUP_BY required by MySQL 5.7
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
--
-- Table structure for table `ospos_app_config`
--

View File

@@ -1,4 +1,7 @@
-- >> This file is autogenerated from tables.sql and constraints.sql. Do not modify directly << --
-- Disable ONLY_FULL_GROUP_BY required by MySQL 5.7
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
--
-- Table structure for table `ospos_app_config`
--

View File

@@ -1,4 +1,7 @@
-- Disable ONLY_FULL_GROUP_BY required by MySQL 5.7
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
--
-- Table structure for table `ospos_app_config`
--