+mysql-wsrep-5.6 (5.6.39-0~u14.04+mos0) mos; urgency=medium
+
+ * Import mysql-wsrep-5.6.39 from codership
+ https://github.com/codership/mysql-wsrep/tree/wsrep_5.6.39-25.22
+
+ -- Dmitry Teselkin <mos-linux@mirantis.com> Wed, 07 Feb 2018 18:23:29 +0300
+
mysql-wsrep-5.6 (5.6.38-0~u14.04+mos0) mos; urgency=medium
* Update mysql-wsrep to 5.6.38-25.21
--- /dev/null
+.gitattributes export-ignore
+.gitignore export-ignore
is released under the version 2 of the GNU General Public License.
MySQL is brought to you by Oracle.
-Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
License information can be found in the COPYING file.
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=6
-MYSQL_VERSION_PATCH=38
+MYSQL_VERSION_PATCH=39
MYSQL_VERSION_EXTRA=
-# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc COMPONENT Test)
SET_SOURCE_FILES_PROPERTIES(mysqltest.cc PROPERTIES COMPILE_FLAGS "-DTHREADS")
TARGET_LINK_LIBRARIES(mysqltest mysqlclient regex)
-
+ADD_DEPENDENCIES(mysqltest GenError)
MYSQL_ADD_EXECUTABLE(mysqlcheck mysqlcheck.c)
TARGET_LINK_LIBRARIES(mysqlcheck mysqlclient)
-# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
SET(COMPILATION_COMMENT "MySQL Community Server (GPL)")
ENDIF()
-IF(WIN32)
- IF(NOT CMAKE_USING_VC_FREE_TOOLS)
- # Sign executables with authenticode certificate
- SET(SIGNCODE 1 CACHE BOOL "")
- ENDIF()
-ENDIF()
-
IF(UNIX)
SET(WITH_EXTRA_CHARSETS all CACHE STRING "")
-# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
ENDIF()
ENDMACRO()
-IF(WIN32)
- OPTION(SIGNCODE "Sign executables and dlls with digital certificate" OFF)
- MARK_AS_ADVANCED(SIGNCODE)
- IF(SIGNCODE)
- SET(SIGNTOOL_PARAMETERS
- /a /t http://timestamp.verisign.com/scripts/timstamp.dll
- CACHE STRING "parameters for signtool (list)")
- FIND_PROGRAM(SIGNTOOL_EXECUTABLE signtool)
- IF(NOT SIGNTOOL_EXECUTABLE)
- MESSAGE(FATAL_ERROR
- "signtool is not found. Signing executables not possible")
- ENDIF()
- IF(NOT DEFINED SIGNCODE_ENABLED)
- FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/testsign.c "int main(){return 0;}")
- MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/testsign)
- TRY_COMPILE(RESULT ${CMAKE_CURRENT_BINARY_DIR}/testsign ${CMAKE_CURRENT_BINARY_DIR}/testsign.c
- COPY_FILE ${CMAKE_CURRENT_BINARY_DIR}/testsign.exe
- )
-
- EXECUTE_PROCESS(COMMAND
- ${SIGNTOOL_EXECUTABLE} sign ${SIGNTOOL_PARAMETERS} ${CMAKE_CURRENT_BINARY_DIR}/testsign.exe
- RESULT_VARIABLE ERR ERROR_QUIET OUTPUT_QUIET
- )
- IF(ERR EQUAL 0)
- SET(SIGNCODE_ENABLED 1 CACHE INTERNAL "Can sign executables")
- ELSE()
- MESSAGE(STATUS "Disable authenticode signing for executables")
- SET(SIGNCODE_ENABLED 0 CACHE INTERNAL "Invalid or missing certificate")
- ENDIF()
- ENDIF()
- MARK_AS_ADVANCED(SIGNTOOL_EXECUTABLE SIGNTOOL_PARAMETERS)
- ENDIF()
-ENDIF()
-
-MACRO(SIGN_TARGET target)
- GET_TARGET_PROPERTY(target_type ${target} TYPE)
- IF(target_type AND NOT target_type MATCHES "STATIC")
- GET_TARGET_PROPERTY(target_location ${target} LOCATION)
- IF(CMAKE_GENERATOR MATCHES "Visual Studio")
- STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}"
- target_location ${target_location})
- ENDIF()
- INSTALL(CODE
- "EXECUTE_PROCESS(COMMAND
- ${SIGNTOOL_EXECUTABLE} sign ${SIGNTOOL_PARAMETERS} ${target_location}
- RESULT_VARIABLE ERR)
- IF(NOT \${ERR} EQUAL 0)
- MESSAGE(FATAL_ERROR \"Error signing ${target_location}\")
- ENDIF()
- ")
- ENDIF()
-ENDMACRO()
-
-
# Installs targets, also installs pdbs on Windows.
#
#
FOREACH(target ${TARGETS})
- # If signing is required, sign executables before installing
- IF(SIGNCODE AND SIGNCODE_ENABLED)
- SIGN_TARGET(${target})
- ENDIF()
# Install man pages on Unix
IF(UNIX)
GET_TARGET_PROPERTY(target_location ${target} LOCATION)
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.\r
-# \r
-# This program is free software; you can redistribute it and/or modify\r
-# it under the terms of the GNU General Public License as published by\r
-# the Free Software Foundation; version 2 of the License.\r
-#\r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-# GNU General Public License for more details.\r
-#\r
-# You should have received a copy of the GNU General Public License\r
-# along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\r
-\r
-# Add executable plus some additional MySQL specific stuff\r
-# Usage (same as for standard CMake's ADD_EXECUTABLE)\r
-#\r
-# MYSQL_ADD_EXECUTABLE(target source1...sourceN)\r
-#\r
-# MySQL specifics:\r
-# - instruct CPack to install executable under ${CMAKE_INSTALL_PREFIX}/bin directory\r
-# On Windows :\r
-# - add version resource\r
-# - instruct CPack to do autenticode signing if SIGNCODE is set\r
-\r
-INCLUDE(cmake_parse_arguments)\r
-\r
-FUNCTION (MYSQL_ADD_EXECUTABLE)\r
- # Pass-through arguments for ADD_EXECUTABLE\r
- MYSQL_PARSE_ARGUMENTS(ARG\r
- "WIN32;MACOSX_BUNDLE;EXCLUDE_FROM_ALL;DESTINATION;COMPONENT"\r
- ""\r
- ${ARGN}\r
- )\r
- LIST(GET ARG_DEFAULT_ARGS 0 target)\r
- LIST(REMOVE_AT ARG_DEFAULT_ARGS 0)\r
- \r
- SET(sources ${ARG_DEFAULT_ARGS})\r
- ADD_VERSION_INFO(${target} EXECUTABLE sources)\r
- ADD_EXECUTABLE(${target} ${ARG_WIN32} ${ARG_MACOSX_BUNDLE} ${ARG_EXCLUDE_FROM_ALL} ${sources})\r
- # tell CPack where to install\r
- IF(NOT ARG_EXCLUDE_FROM_ALL)\r
- IF(NOT ARG_DESTINATION)\r
- SET(ARG_DESTINATION ${INSTALL_BINDIR})\r
+# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# Add executable plus some additional MySQL specific stuff
+# Usage (same as for standard CMake's ADD_EXECUTABLE)
+#
+# MYSQL_ADD_EXECUTABLE(target source1...sourceN)
+#
+# MySQL specifics:
+# - instruct CPack to install executable under ${CMAKE_INSTALL_PREFIX}/bin directory
+# On Windows :
+# - add version resource
+# - instruct CPack to do autenticode signing if SIGNCODE is set
+
+INCLUDE(cmake_parse_arguments)
+
+FUNCTION (MYSQL_ADD_EXECUTABLE)
+ # Pass-through arguments for ADD_EXECUTABLE
+ MYSQL_PARSE_ARGUMENTS(ARG
+ "WIN32;MACOSX_BUNDLE;EXCLUDE_FROM_ALL;DESTINATION;COMPONENT"
+ ""
+ ${ARGN}
+ )
+ LIST(GET ARG_DEFAULT_ARGS 0 target)
+ LIST(REMOVE_AT ARG_DEFAULT_ARGS 0)
+
+ SET(sources ${ARG_DEFAULT_ARGS})
+ ADD_VERSION_INFO(${target} EXECUTABLE sources)
+ ADD_EXECUTABLE(${target} ${ARG_WIN32} ${ARG_MACOSX_BUNDLE} ${ARG_EXCLUDE_FROM_ALL} ${sources})
+ # tell CPack where to install
+ IF(NOT ARG_EXCLUDE_FROM_ALL)
+ IF(NOT ARG_DESTINATION)
+ SET(ARG_DESTINATION ${INSTALL_BINDIR})
ENDIF()
IF(ARG_COMPONENT)
SET(COMP COMPONENT ${ARG_COMPONENT})
SET(COMP COMPONENT ${MYSQL_INSTALL_COMPONENT})
ELSE()
SET(COMP COMPONENT Client)
- ENDIF()\r
- MYSQL_INSTALL_TARGETS(${target} DESTINATION ${ARG_DESTINATION} ${COMP})\r
- ENDIF()\r
+ ENDIF()
+ MYSQL_INSTALL_TARGETS(${target} DESTINATION ${ARG_DESTINATION} ${COMP})
+ ENDIF()
ENDFUNCTION()
-# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
GET_FILENAME_COMPONENT(OPENSSL_NAME "${OPENSSL_LIBRARY}" NAME_WE)
FILE(GLOB HAVE_CRYPTO_DLL "${WITH_SSL_PATH}/bin/${CRYPTO_NAME}.dll")
FILE(GLOB HAVE_OPENSSL_DLL "${WITH_SSL_PATH}/bin/${OPENSSL_NAME}.dll")
- IF (HAVE_CRYPTO_DLL AND HAVE_OPENSSL_DLL)
+ MESSAGE(STATUS "HAVE_CRYPTO_DLL ${HAVE_CRYPTO_DLL}")
+ MESSAGE(STATUS "HAVE_OPENSSL_DLL ${HAVE_OPENSSL_DLL}")
+ IF(HAVE_CRYPTO_DLL AND HAVE_OPENSSL_DLL)
ADD_CUSTOM_COMMAND(OUTPUT ${target_name}
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${WITH_SSL_PATH}/bin/${CRYPTO_NAME}.dll"
# so WSREP_VERSION is produced regardless
# Set the patch version
-SET(WSREP_PATCH_VERSION "21")
+SET(WSREP_PATCH_VERSION "22")
# Obtain patch revision number
SET(WSREP_REVISION $ENV{WSREP_REV})
-# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
)
MYSQL_ADD_EXECUTABLE(innochecksum innochecksum.cc ${INNOBASE_SOURCES})
TARGET_LINK_LIBRARIES(innochecksum mysys mysys_ssl)
+ ADD_DEPENDENCIES(innochecksum GenError)
ENDIF()
IF(UNIX)
+/* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+
#ifndef CRYPT_HASHGEN_IMPL_H
#define CRYPT_HASHGEN_IMPL_H
#define ROUNDS_DEFAULT 5000
#define ROUNDS_MIN 1000
-#define ROUNDS_MAX 999999999
+#define ROUNDS_MAX ROUNDS_DEFAULT
#define MIXCHARS 32
#define CRYPT_SALT_LENGTH 20
#define CRYPT_MAGIC_LENGTH 3
CRYPT_MAGIC_LENGTH + \
CRYPT_PARAM_LENGTH)
+#define MAX_PLAINTEXT_LENGTH 256
+
#include <stddef.h>
#include <my_global.h>
#ifndef _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
-#define COPYRIGHT_NOTICE_CURRENT_YEAR "2017"
+#define COPYRIGHT_NOTICE_CURRENT_YEAR "2018"
/*
This define specifies copyright notice which is displayed by every MySQL
-# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
SET(libmysql_link_flags
"${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")
SET(libmysql_link_flags
- "${libmysql_link_flags} -Wl,--version-script=libmysql.ver")
+ "${libmysql_link_flags} -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/libmysql.ver")
SET_TARGET_PROPERTIES(libmysql
PROPERTIES LINK_FLAGS "${libmysql_link_flags}")
ENDIF()
explain format=json SELECT 1 FROM q WHERE (SELECT MATCH(b) AGAINST ('*') FROM z);
ERROR HY000: Incorrect arguments to MATCH
DROP TABLE z, q;
+#
+# BUG#21625016: INNODB FULL TEXT CASE SENSITIVE NOT WORKING
+#
+CREATE TABLE t1(fld1 VARCHAR(10) COLLATE 'latin1_bin', FULLTEXT INDEX (fld1))
+ENGINE=InnoDB;
+INSERT INTO t1 VALUES ('abCD'),('ABCD');
+# With the patch, case sensitive comparison is performed since
+# binary collation is used.
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+fld1
+abCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+fld1
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+fld1
+ABCD
+# Since binary collation is not used, case insensitive comparison is
+# performed.
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'latin1_general_cs';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+ABCD
+# With the patch, case sensitive comparison is performed.
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'utf8mb4_bin';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+fld1
+abCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+fld1
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+fld1
+ABCD
+# Test(using case insensitive collation) added for coverage
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'utf8mb4_general_ci';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+ABCD
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+fld1
+abCD
+ABCD
+DROP TABLE t1;
2
10
DROP TABLE t1;
+#
+# Bug #25989915: LOOSE INDEX SCANS RETURNING WRONG RESULT
+#
+CREATE TABLE t1 (
+pk INT NOT NULL AUTO_INCREMENT,
+c1 varchar(100) DEFAULT NULL,
+c2 INT NOT NULL,
+PRIMARY KEY (pk),
+UNIQUE KEY ukey (c2,c1)
+)ENGINE=INNODB;
+INSERT INTO t1(pk, c2) VALUES (100, 0), (101, 0), (102, 0), (103, 0);
+ANALYZE TABLE t1;
+Table Op Msg_type Msg_text
+test.t1 analyze status OK
+EXPLAIN SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 101);
+id select_type table type possible_keys key key_len ref rows Extra
+1 SIMPLE t1 index PRIMARY,ukey ukey 107 NULL 4 Using where; Using index
+EXPLAIN SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 100);
+id select_type table type possible_keys key key_len ref rows Extra
+1 SIMPLE t1 index PRIMARY,ukey ukey 107 NULL 4 Using where; Using index
+SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 101);
+COUNT(DISTINCT(c2))
+1
+SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 100);
+COUNT(DISTINCT(c2))
+1
+DROP TABLE t1;
CREATE PROCEDURE information_schema.is() BEGIN END;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
#
+# Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
+#
+SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
+WHERE
+SUPPORT IN (
+SELECT DISTINCT SUPPORT
+FROM INFORMATION_SCHEMA.ENGINES
+WHERE
+ENGINE IN (
+SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
+WHERE ENGINE IN ('MEMORY')))
+ORDER BY ENGINE
+LIMIT 1;
+ENGINE SUPPORT TRANSACTIONS
+ARCHIVE YES NO
+#
# End of 5.6 tests
#
##############################################
# Tests for mysql_config_editor's help command
##############################################
-Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
+Copyright (c) 2012, 2018, 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
PARTITION p1 VALUES IN (1) DATA DIRECTORY = 'MYSQL_TMP_DIR/temp_dir' ENGINE = InnoDB) */
t1#p#p1.ibd
DROP TABLE t1;
+
+Bug #26034430 ASSERTION `PART_REC_BUF_PTR' FAILED.
+
+
+CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, c INT NOT NULL, PRIMARY KEY(a,b)) PARTITION BY RANGE (a)(PARTITION x1 VALUES LESS THAN (1));
+SELECT * FROM t1 WHERE (a = 1 and b = 1 and c = 'b') OR (a > 2) ORDER BY a DESC;
+a b c
+CREATE TABLE t(id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, dttm DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, msg TEXT,PRIMARY KEY (id,dttm))ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC PARTITION BY RANGE COLUMNS(dttm) (PARTITION pf_201612 VALUES LESS THAN ('20170101') ENGINE = INNODB);
+Warnings:
+Warning 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
+Warning 1478 InnoDB: assuming ROW_FORMAT=COMPACT.
+SELECT * FROM t WHERE dttm > '2017-01-19' ORDER BY id DESC;
+id dttm msg
+DROP TABLE t,t1;
END|
CALL proc_update();;
SET SESSION wsrep_retry_autocommit = 0;
-have_successes
-1
-have_deadlocks
-1
Got one of the listed errors
DROP PROCEDURE proc_update;
DROP TABLE t1, t2;
CALL mtr.add_suppression("conflict state 3 after post commit");
+CREATE TABLE t1 (i int primary key, j int) engine=innodb;
+INSERT INTO t1 values (1,0);
+BEGIN;
+UPDATE t1 SET j=1 WHERE i=1;
+UPDATE t1 SET j=2 WHERE i=1;
+COMMIT;
+ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
+SELECT * FROM t1;
+i j
+1 2
+SELECT * FROM t1;
+i j
+1 2
+DROP TABLE t1;
WSREP_SST_DONOR_REJECTS_QUERIES OFF
WSREP_SST_METHOD rsync
WSREP_SYNC_WAIT 15
-<BASE_DIR>; <BASE_HOST>; <BASE_PORT>; cert.log_conflicts = no; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT30S; evs.info_log_mask = 0; evs.install_timeout = PT15S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT10S; evs.use_aggregate = true; evs.user_send_window = 2; evs.version = 0; evs.view_forget_timeout = P1D; <GCACHE_DIR>; gcache.keep_pages_size = 0; gcache.mem_size = 0; <GCACHE_NAME>; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; <RECV_Q_HARD_LIMIT>;gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; <GMCAST_LISTEN_ADDR>; gmcast.mcast_addr = ; gmcast.mcast_ttl = 1; gmcast.peer_timeout = PT3S; gmcast.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; <IST_RECV_ADDR>; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT90S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; repl.proto_max = 7; socket.checksum = 2; socket.recv_buf_size = 212992;
+<BASE_DIR>; <BASE_HOST>; <BASE_PORT>; cert.log_conflicts = no; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT30S; evs.info_log_mask = 0; evs.install_timeout = PT15S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT10S; evs.use_aggregate = true; evs.user_send_window = 2; evs.version = 0; evs.view_forget_timeout = P1D; <GCACHE_DIR>; gcache.keep_pages_size = 0; gcache.mem_size = 0; <GCACHE_NAME>; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; <RECV_Q_HARD_LIMIT>;gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; <GMCAST_LISTEN_ADDR>; gmcast.mcast_addr = ; gmcast.mcast_ttl = 1; gmcast.peer_timeout = PT3S; gmcast.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; <IST_RECV_ADDR>; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT90S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; <REPL_PROTO_MAX>;socket.checksum = 2; socket.recv_buf_size = 212992;
SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_STATUS
WHERE VARIABLE_NAME LIKE 'wsrep_%'
AND VARIABLE_NAME != 'wsrep_debug_sync_waiters';
SELECT COUNT(*) = 64 FROM t2;
COUNT(*) = 64
1
+SET wsrep_sync_wait=0;
SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user';
COUNT(*) = @@wsrep_slave_threads + 1
1
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
COUNT(*) = 1
1
+SET GLOBAL wsrep_slave_threads = 5;
SET GLOBAL wsrep_slave_threads = 1;
+Shutting down server ...
+SET wsrep_sync_wait=0;
+show status like 'wsrep_cluster_size';
+Variable_name Value
+wsrep_cluster_size 1
+SET GLOBAL wsrep_slave_threads = 6;
+SET GLOBAL wsrep_slave_threads = 1;
+SET GLOBAL wsrep_cluster_address='';
+SET GLOBAL wsrep_cluster_address='gcomm://';
+SET GLOBAL wsrep_slave_threads = 10;
+SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user';
+COUNT(*) = @@wsrep_slave_threads + 1
+1
+SET GLOBAL wsrep_slave_threads = 1;
+SET GLOBAL wsrep_slave_threads = 1;
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
+INSERT INTO t2 VALUES (DEFAULT);
DROP TABLE t1;
DROP TABLE t2;
#
#
-# Attempt to insert into t2 and check if insert actually inserted rows if
-# a success was reported.
+# test phase 1 is not deterministic
+#
+# Here we attempt to insert into t2 and check if insert actually
+# inserted rows if a success was reported.
+#
+# However, deadlocks may or may not happen in this test execution
+# it all depends on timing.
#
--source include/galera_cluster.inc
{
TRUNCATE TABLE t2;
- --error 0,1213
+ --error 0,ER_LOCK_DEADLOCK
INSERT IGNORE INTO t2 SELECT f2 FROM t1;
if ($mysql_errno != 1213) {
--inc $successes
--enable_query_log
+
+--source suite/galera/t/MW-328-footer.inc
+
#
-# Check that the test produced both deadlocks and successes
+# Test phase 2 is deterministic
+# Here we generate a sure conflict in node 1 and verify that
+# insert failed in both nodes
#
+--connection node_1
+CREATE TABLE t1 (i int primary key, j int) engine=innodb;
+INSERT INTO t1 values (1,0);
---disable_query_log
---eval SELECT $successes > 0 AS have_successes
---eval SELECT $deadlocks > 0 AS have_deadlocks
---enable_query_log
+BEGIN;
+UPDATE t1 SET j=1 WHERE i=1;
+--connection node_2
+UPDATE t1 SET j=2 WHERE i=1;
---source suite/galera/t/MW-328-footer.inc
+--connection node_1
+--error ER_LOCK_DEADLOCK
+COMMIT;
+
+SELECT * FROM t1;
+--connection node_2
+SELECT * FROM t1;
+--connection node_1
+
+DROP TABLE t1;
$wsrep_provider_options =~ s/signal = .*?;\s*//sgio;
$wsrep_provider_options =~ s/dbug = .*?;\s*//sgio;
$wsrep_provider_options =~ s/gcs.recv_q_hard_limit = .*?;\s*/<RECV_Q_HARD_LIMIT>;/sgio;
+ $wsrep_provider_options =~ s/repl.proto_max = .*?;\s*/<REPL_PROTO_MAX>;/sgio;
print $wsrep_provider_options."\n";
EOF
--connection node_2
SELECT COUNT(*) = 64 FROM t2;
+SET wsrep_sync_wait=0;
SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user';
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
+--let $wsrep_cluster_address_node2 = `SELECT @@wsrep_cluster_address`
+--let $wsrep_provider_node2 = `SELECT @@wsrep_provider`
+
+SET GLOBAL wsrep_slave_threads = 5;
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
+SET GLOBAL wsrep_slave_threads = 1;
+
+#
+# test phase for bug https://github.com/codership/mysql-wsrep/issues/319
+#
+
+# shutdown node 2
+--connection node_2
+--echo Shutting down server ...
+--source include/shutdown_mysqld.inc
+
+# wait until node_1 is ready as one node cluster
+--connection node_1
+SET wsrep_sync_wait=0;
+--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
+--source include/wait_condition.inc
+show status like 'wsrep_cluster_size';
+
+# step up slave threads to 6, and make sure all appliers and rollbacker thread are running
+SET GLOBAL wsrep_slave_threads = 6;
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
+# change to invalid cluster address
+SET GLOBAL wsrep_slave_threads = 1;
+SET GLOBAL wsrep_cluster_address='';
+
+# join back to single node cluster
+SET GLOBAL wsrep_cluster_address='gcomm://';
+--source include/wait_until_connected_again.inc
+
+# we should have 1 applier thread now
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
+# test if we can increase applier count now (fails in bug #319)
+SET GLOBAL wsrep_slave_threads = 10;
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
+# restart node 2
+--connection node_2
+--source include/start_mysqld.inc
+--source include/wait_until_connected_again.inc
+
+SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user';
+
+#
+#
+# cleanup to original state
+#
+--connection node_1
--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig
+--connection node_2
+--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig
+
+# Generate 64 replication events, to help node 1 to purge excessive applier threads
+--let $count = 64
+while ($count)
+{
+ INSERT INTO t2 VALUES (DEFAULT);
+ --dec $count
+}
+
+--connection node_1
+# Generate 64 replication events, to help node 2 to purge excessive applier threads
+--let $count = 64
+while ($count)
+{
+ INSERT INTO t2 VALUES (DEFAULT);
+ --dec $count
+}
+
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
+
+--connection node_2
+
+--let $wait_condition = SELECT COUNT(*) = @@wsrep_slave_threads + 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'
+--source include/wait_condition.inc
+
DROP TABLE t1;
DROP TABLE t2;
--- /dev/null
+#
+# Bug #47453: InnoDB incorrectly changes TIMESTAMP columns when
+# JOINed during an UPDATE
+#
+CREATE TABLE t1 (d INT) ENGINE=InnoDB;
+CREATE TABLE t2 (a INT, b INT,
+c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
+ON UPDATE CURRENT_TIMESTAMP(6)) ENGINE=InnoDB;
+# set up our data elements
+INSERT INTO t1 (d) VALUES (1);
+INSERT INTO t2 (a,b) VALUES (1,1);
+SELECT c INTO @bug47453 FROM t2;
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+c!=@bug47453
+0
+UPDATE t1 JOIN t2 ON d=a SET b=1 WHERE a=1;
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+c!=@bug47453
+0
+UPDATE t1 JOIN t2 ON d=a SET b=1;
+# should be 0
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+c!=@bug47453
+0
+UPDATE t1 JOIN t2 ON d=a SET b=2;
+# should not be 0
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+c!=@bug47453
+1
+DROP TABLE t1, t2;
--- /dev/null
+--echo #
+--echo # Bug #47453: InnoDB incorrectly changes TIMESTAMP columns when
+--echo # JOINed during an UPDATE
+--echo #
+
+CREATE TABLE t1 (d INT) ENGINE=InnoDB;
+CREATE TABLE t2 (a INT, b INT,
+ c TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
+ ON UPDATE CURRENT_TIMESTAMP(6)) ENGINE=InnoDB;
+
+--echo # set up our data elements
+INSERT INTO t1 (d) VALUES (1);
+INSERT INTO t2 (a,b) VALUES (1,1);
+SELECT c INTO @bug47453 FROM t2;
+
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+UPDATE t1 JOIN t2 ON d=a SET b=1 WHERE a=1;
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+UPDATE t1 JOIN t2 ON d=a SET b=1;
+--echo # should be 0
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+UPDATE t1 JOIN t2 ON d=a SET b=2;
+--echo # should not be 0
+SELECT c!=@bug47453 FROM t1 JOIN t2 ON d=a;
+
+DROP TABLE t1, t2;
--- /dev/null
+#1) Create a master-slave topology with master's binlog_format=row.
+include/master-slave.inc
+Warnings:
+Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
+Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
+[connection master]
+#2) On slave, set slave_rows_search_algorithms= 'HASH_SCAN' and set a
+# simulation point to fake a my_alloc_failure i.e, 'fake_malloc_failure'.
+[connection slave]
+call mtr.add_suppression("Slave SQL.*Could not execute Update_rows event on table test.t1");
+call mtr.add_suppression("Slave: Got error 1*");
+call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
+SET @saved_slave_rows_search_algorithms= @@global.slave_rows_search_algorithms;
+SET GLOBAL slave_rows_search_algorithms= 'HASH_SCAN';
+SET @old_debug= @@global.debug;
+SET GLOBAL debug= '+d,fake_myalloc_failure';
+#3) On master, create a table, insert a row and do an update.
+[connection master]
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (1);
+UPDATE t1 SET a=2 WHERE a=1;
+#4) The update on master causes the slave sql thread to stop with Error 1030.
+[connection slave]
+include/wait_for_slave_sql_error.inc [errno=1030]
+#5) Cleanup
+SET GLOBAL debug= @old_debug;
+SET GLOBAL slave_rows_search_algorithms= @saved_slave_rows_search_algorithms;
+DROP TABLE t1;
+[connection master]
+DROP TABLE t1;
+[connection slave]
+include/wait_for_slave_sql_error.inc [errno=1030]
+include/stop_slave_io.inc
+RESET SLAVE;
+include/rpl_end.inc
--- /dev/null
+################################################################################
+# Bug#26952994 A DOUBLE-FREE ISSUE
+#
+# Problem: Slave crashes due to double free when there is an error in
+# allocating memory in Hash_slave_rows::make_entry() function.
+#
+# Steps to reproduce:
+#
+# 1) Create a master-slave topology with master's binlog_format=row.
+# 2) On slave, set slave_rows_search_algorithms= 'HASH_SCAN' and set a
+# simulation point to fake a my_alloc_failure i.e, 'fake_myalloc_failure'.
+# 3) On master, create a table, insert a row and do an update.
+# 4) The update on master causes the slave sql thread to stop with Error 1030.
+# 5) Cleanup.
+#
+################################################################################
+--echo #1) Create a master-slave topology with master's binlog_format=row.
+--source include/have_debug.inc
+--source include/have_binlog_format_row.inc
+--source include/master-slave.inc
+
+--echo #2) On slave, set slave_rows_search_algorithms= 'HASH_SCAN' and set a
+--echo # simulation point to fake a my_alloc_failure i.e, 'fake_malloc_failure'.
+--source include/rpl_connection_slave.inc
+call mtr.add_suppression("Slave SQL.*Could not execute Update_rows event on table test.t1");
+call mtr.add_suppression("Slave: Got error 1*");
+call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
+SET @saved_slave_rows_search_algorithms= @@global.slave_rows_search_algorithms;
+SET GLOBAL slave_rows_search_algorithms= 'HASH_SCAN';
+SET @old_debug= @@global.debug;
+SET GLOBAL debug= '+d,fake_myalloc_failure';
+
+--echo #3) On master, create a table, insert a row and do an update.
+--source include/rpl_connection_master.inc
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (1);
+UPDATE t1 SET a=2 WHERE a=1;
+
+--echo #4) The update on master causes the slave sql thread to stop with Error 1030.
+--source include/rpl_connection_slave.inc
+--let $slave_sql_errno= convert_error(ER_GET_ERRNO)
+--source include/wait_for_slave_sql_error.inc
+
+--echo #5) Cleanup
+SET GLOBAL debug= @old_debug;
+SET GLOBAL slave_rows_search_algorithms= @saved_slave_rows_search_algorithms;
+DROP TABLE t1;
+--source include/rpl_connection_master.inc
+DROP TABLE t1;
+
+# Slave SQL thread has already stopped, stopping the IO trhead.
+--source include/rpl_connection_slave.inc
+--source include/wait_for_slave_sql_error.inc
+--source include/stop_slave_io.inc
+RESET SLAVE;
+--let $rpl_only_running_threads= 1
+--source include/rpl_end.inc
SET GLOBAL log_output = 'file,table';
SET GLOBAL slow_query_log = on;
SET SESSION long_query_time = 0;
-SET GLOBAL log_slow_admin_statements = on;
+SET GLOBAL log_slow_admin_statements = off;
ALTER TABLE log_slow_admin_statements ADD COLUMN k INT DEFAULT 17;
CREATE PROCEDURE add_rows()
BEGIN
END
$
CALL add_rows();
+ANALYZE TABLE log_slow_admin_statements;
+Table Op Msg_type Msg_text
+test.log_slow_admin_statements analyze status OK
OPTIMIZE TABLE log_slow_admin_statements;
Table Op Msg_type Msg_text
test.log_slow_admin_statements optimize note Table does not support optimize, doing recreate + analyze instead
CHECK TABLE log_slow_admin_statements EXTENDED;
Table Op Msg_type Msg_text
test.log_slow_admin_statements check status OK
+# Administrative sql statements must not be logged
+SELECT count(sql_text)= 0 FROM mysql.slow_log
+WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
+count(sql_text)= 0
+1
+SET GLOBAL log_slow_admin_statements = on;
DROP TABLE log_slow_admin_statements;
-SELECT sql_text FROM mysql.slow_log WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
-sql_text
-ALTER TABLE log_slow_admin_statements ADD COLUMN k INT DEFAULT 17
-OPTIMIZE TABLE log_slow_admin_statements
-CHECK TABLE log_slow_admin_statements EXTENDED
-DROP TABLE log_slow_admin_statements
+CREATE TABLE log_slow_admin_statements (
+i INT PRIMARY KEY AUTO_INCREMENT,
+j VARCHAR(255)
+) ENGINE=InnoDB;
+CALL add_rows();
+ANALYZE TABLE log_slow_admin_statements;
+Table Op Msg_type Msg_text
+test.log_slow_admin_statements analyze status OK
+OPTIMIZE TABLE log_slow_admin_statements;
+Table Op Msg_type Msg_text
+test.log_slow_admin_statements optimize note Table does not support optimize, doing recreate + analyze instead
+test.log_slow_admin_statements optimize status OK
+CHECK TABLE log_slow_admin_statements EXTENDED;
+Table Op Msg_type Msg_text
+test.log_slow_admin_statements check status OK
+# At least one administrative sql statement must be logged in slow query log
+SELECT count(sql_text)> 0 FROM mysql.slow_log
+WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
+count(sql_text)> 0
+1
SET @@global.log_output= @old_log_output;
SET @@global.slow_query_log= @old_slow_query_log;
SET @@session.long_query_time= @old_long_query_time;
SET @@global.log_slow_admin_statements= @old_log_slow_admin_statements;
DROP PROCEDURE add_rows;
+DROP TABLE log_slow_admin_statements;
TRUNCATE TABLE mysql.slow_log;
# check that CSV engine was compiled in
--source include/have_csv.inc
+--source include/no_valgrind_without_big.inc
SET @old_log_output= @@global.log_output;
SET @old_slow_query_log= @@global.slow_query_log;
USE test;
CREATE TABLE log_slow_admin_statements (
- i INT PRIMARY KEY AUTO_INCREMENT,
- j VARCHAR(255)
+ i INT PRIMARY KEY AUTO_INCREMENT,
+ j VARCHAR(255)
) ENGINE=InnoDB;
# enable slow logging to table
SET GLOBAL log_output = 'file,table';
SET GLOBAL slow_query_log = on;
SET SESSION long_query_time = 0;
-SET GLOBAL log_slow_admin_statements = on;
+SET GLOBAL log_slow_admin_statements = off;
# test ALTER, OPTIMIZE and CHECK against the table shown up
ALTER TABLE log_slow_admin_statements ADD COLUMN k INT DEFAULT 17;
CALL add_rows();
-# OPTIMIZE TABLE
+ANALYZE TABLE log_slow_admin_statements;
OPTIMIZE TABLE log_slow_admin_statements;
-
-# CHECK TABLE
CHECK TABLE log_slow_admin_statements EXTENDED;
-# DROP TABLE
+--echo # Administrative sql statements must not be logged
+SELECT count(sql_text)= 0 FROM mysql.slow_log
+ WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
+# SELECT sql_text FROM mysql.slow_log WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
+
+SET GLOBAL log_slow_admin_statements = on;
+
DROP TABLE log_slow_admin_statements;
+CREATE TABLE log_slow_admin_statements (
+ i INT PRIMARY KEY AUTO_INCREMENT,
+ j VARCHAR(255)
+) ENGINE=InnoDB;
-# ALTER, OPTIMIZE, CHECK and DROP operations should be logged in slow query log.
-SELECT sql_text FROM mysql.slow_log WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
+CALL add_rows();
+
+ANALYZE TABLE log_slow_admin_statements;
+OPTIMIZE TABLE log_slow_admin_statements;
+CHECK TABLE log_slow_admin_statements EXTENDED;
+
+--echo # At least one administrative sql statement must be logged in slow query log
+SELECT count(sql_text)> 0 FROM mysql.slow_log
+ WHERE sql_text LIKE '%TABLE log_slow_admin_statements%';
SET @@global.log_output= @old_log_output;
SET @@global.slow_query_log= @old_slow_query_log;
SET @@global.log_slow_admin_statements= @old_log_slow_admin_statements;
DROP PROCEDURE add_rows;
+DROP TABLE log_slow_admin_statements;
TRUNCATE TABLE mysql.slow_log;
eval explain format=json $query;
DROP TABLE z, q;
+
+
+--echo #
+--echo # BUG#21625016: INNODB FULL TEXT CASE SENSITIVE NOT WORKING
+--echo #
+
+CREATE TABLE t1(fld1 VARCHAR(10) COLLATE 'latin1_bin', FULLTEXT INDEX (fld1))
+ENGINE=InnoDB;
+
+INSERT INTO t1 VALUES ('abCD'),('ABCD');
+
+--echo # With the patch, case sensitive comparison is performed since
+--echo # binary collation is used.
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+
+--echo # Since binary collation is not used, case insensitive comparison is
+--echo # performed.
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'latin1_general_cs';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+
+--echo # With the patch, case sensitive comparison is performed.
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'utf8mb4_bin';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+
+--echo # Test(using case insensitive collation) added for coverage
+ALTER TABLE t1 MODIFY fld1 VARCHAR(10) COLLATE 'utf8mb4_general_ci';
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN BOOLEAN MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('abCD' IN NATURAL LANGUAGE MODE);
+SELECT * FROM t1 WHERE MATCH(fld1) AGAINST ('ABCD' IN NATURAL LANGUAGE MODE);
+
+DROP TABLE t1;
eval $query5;
DROP TABLE t1;
+
+--echo #
+--echo # Bug #25989915: LOOSE INDEX SCANS RETURNING WRONG RESULT
+--echo #
+
+CREATE TABLE t1 (
+ pk INT NOT NULL AUTO_INCREMENT,
+ c1 varchar(100) DEFAULT NULL,
+ c2 INT NOT NULL,
+ PRIMARY KEY (pk),
+ UNIQUE KEY ukey (c2,c1)
+)ENGINE=INNODB;
+
+INSERT INTO t1(pk, c2) VALUES (100, 0), (101, 0), (102, 0), (103, 0);
+ANALYZE TABLE t1;
+
+let query1= SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 101);
+let query2= SELECT COUNT(DISTINCT(c2)) FROM t1 WHERE pk IN (102, 100);
+
+eval EXPLAIN $query1;
+eval EXPLAIN $query2;
+
+eval $query1;
+eval $query2;
+
+DROP TABLE t1;
--error ER_DBACCESS_DENIED_ERROR
CREATE PROCEDURE information_schema.is() BEGIN END;
+
+--echo #
+--echo # Bug#26877788 SELECT FROM INFORMATION_SCHEMA.FILES RETURNS NO RECORDS WHEN ORDER BY IS USED
+--echo #
+
+SELECT ENGINE, SUPPORT, TRANSACTIONS FROM INFORMATION_SCHEMA.ENGINES
+WHERE
+SUPPORT IN (
+SELECT DISTINCT SUPPORT
+FROM INFORMATION_SCHEMA.ENGINES
+WHERE
+ENGINE IN (
+SELECT DISTINCT ENGINE FROM INFORMATION_SCHEMA.ENGINES
+WHERE ENGINE IN ('MEMORY')))
+ORDER BY ENGINE
+LIMIT 1;
+
+
--echo #
--echo # End of 5.6 tests
--echo #
--rmdir $MYSQL_TMP_DIR/temp_dir/test
--rmdir $MYSQL_TMP_DIR/temp_dir
+
+
+--echo
+--echo Bug #26034430 ASSERTION `PART_REC_BUF_PTR' FAILED.
+--echo
+--echo
+
+CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, c INT NOT NULL, PRIMARY KEY(a,b)) PARTITION BY RANGE (a)(PARTITION x1 VALUES LESS THAN (1));
+
+SELECT * FROM t1 WHERE (a = 1 and b = 1 and c = 'b') OR (a > 2) ORDER BY a DESC;
+
+CREATE TABLE t(id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, dttm DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, msg TEXT,PRIMARY KEY (id,dttm))ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC PARTITION BY RANGE COLUMNS(dttm) (PARTITION pf_201612 VALUES LESS THAN ('20170101') ENGINE = INNODB);
+
+SELECT * FROM t WHERE dttm > '2017-01-19' ORDER BY id DESC;
+
+DROP TABLE t,t1;
-/* Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "mysys_priv.h"
#include "my_static.h"
+#if defined(_WIN32)
+#include "my_sys.h" /* for my_printf_error */
+typedef VOID(WINAPI *time_fn)(LPFILETIME);
+static time_fn my_get_system_time_as_file_time= GetSystemTimeAsFileTime;
+
+/**
+Initialise highest available time resolution API on Windows
+@return Initialization result
+@retval FALSE Success
+@retval TRUE Error. Couldn't initialize environment
+*/
+my_bool win_init_get_system_time_as_file_time()
+{
+ DWORD error;
+ HMODULE h;
+ h= LoadLibrary("kernel32.dll");
+ if (h != NULL)
+ {
+ time_fn pfn= (time_fn) GetProcAddress(h, "GetSystemTimePreciseAsFileTime");
+ if (pfn)
+ my_get_system_time_as_file_time= pfn;
+
+ return FALSE;
+ }
+
+ error= GetLastError();
+ my_printf_error(0,
+ "LoadLibrary(\"kernel32.dll\") failed: GetLastError returns %lu",
+ MYF(0),
+ error);
+
+ return TRUE;
+}
+#endif
+
+
/**
Get high-resolution time.
Return time in microseconds.
@remark This function is to be used to measure performance in
- micro seconds. As it's not defined whats the start time
- for the clock, this function us only useful to measure
- time between two moments.
+ micro seconds.
- @retval Value in microseconds from some undefined point in time.
+ @retval Number of microseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)
*/
ulonglong my_micro_time()
{
#ifdef _WIN32
ulonglong newtime;
- GetSystemTimeAsFileTime((FILETIME*)&newtime);
+ my_get_system_time_as_file_time((FILETIME*)&newtime);
newtime-= OFFSET_TO_EPOCH;
return (newtime/10);
#else
-/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
my_bool have_tcpip=0;
static void my_win_init(void);
static my_bool win32_init_tcp_ip();
+my_bool win_init_get_system_time_as_file_time();
#else
#define my_win_init()
#endif
DBUG_PRINT("exit", ("home: '%s'", home_dir));
#ifdef __WIN__
win32_init_tcp_ip();
+ if (win_init_get_system_time_as_file_time())
+ DBUG_RETURN(1);
#endif
DBUG_RETURN(0);
}
-/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
(char **) &my_login_path, found_no_defaults);
if (! my_defaults_group_suffix)
- my_defaults_group_suffix= getenv(STRINGIFY_ARG(DEFAULT_GROUP_SUFFIX_ENV));
+ my_defaults_group_suffix= getenv("MYSQL_GROUP_SUFFIX");
if (forced_extra_defaults && !defaults_already_read)
{
<Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" Disabled="yes" />\r
<Control Id="Description" Type="Text" X="135" Y="80" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeDlgDescription)" />\r
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeDlgTitle)" />\r
- <Control Id="CopyrightText" Type="Text" X="135" Y="200" Width="220" Height="40" Transparent="yes" Text="Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved." />\r
+ <Control Id="CopyrightText" Type="Text" X="135" Y="200" Width="220" Height="40" Transparent="yes" Text="Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved." />\r
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" />\r
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />\r
</Dialog>\r
SET (DEB_SERVICE_SERVER_EXECPOST "")
SET (DEB_INIT_APPARMOR "/lib/init/apparmor-profile-load usr.sbin.mysqld")
SET (DEB_STARTUP "SYSV")
-ELSEIF(DEB_CODENAME STREQUAL "wily")
- SET (DEB_PLATFORMRELEASE "ubuntu15.10")
- SET (DEB_CONTROL_BDEPS "dh-apparmor, dh-systemd (>=1.5)")
- SET (DEB_INSTALL_SOURCE_XZ "../*.tar.xz usr/src/mysql/")
- SET (DEB_RULES_INSTALL_SYSTEMD
- "install -m 0755 debian/extra/mysql-systemd-start debian/tmp/usr/share/mysql/")
- SET (DEB_RULES_INSTALL_APPARMOR
- "install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld")
- SET (DEB_RULES_APPARMOR_LOAD
- "dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld")
- SET (DEB_SYSTEMD_SERVICE_NAME "mysql")
- SET (DEB_RULES_SYSTEMD_ENABLE "dh_systemd_enable --no-enable --name=mysql")
- SET (DEB_RULES_SYSTEMD_START "dh_systemd_start --restart-after-upgrade")
- SET (DEB_INSTALL_SERVER_SYSTEMD "usr/share/mysql/mysql-systemd-start")
- SET (DEB_INSTALL_SERVER_APPARMOR "etc/apparmor.d/usr.sbin.mysqld")
- SET (DEB_SERVICE_SERVER_EXECPRE
- "ExecStartPre=/usr/share/mysql/mysql-systemd-start pre")
- SET (DEB_SERVICE_SERVER_EXECPOST
- "ExecStartPost=/usr/share/mysql/mysql-systemd-start post")
- SET (DEB_INIT_APPARMOR "/lib/init/apparmor-profile-load usr.sbin.mysqld")
- SET (DEB_STARTUP "SYSTEMD")
ELSEIF(DEB_CODENAME STREQUAL "xenial")
SET (DEB_PLATFORMRELEASE "ubuntu16.04")
SET (DEB_CONTROL_BDEPS "dh-apparmor")
SET (DEB_SERVICE_SERVER_EXECPOST "")
SET (DEB_INIT_APPARMOR "/lib/apparmor/profile-load usr.sbin.mysqld")
SET (DEB_STARTUP "SYSV")
-ELSEIF(DEB_CODENAME STREQUAL "yakkety")
- SET (DEB_PLATFORMRELEASE "ubuntu16.10")
+ELSEIF(DEB_CODENAME STREQUAL "zesty")
+ SET (DEB_PLATFORMRELEASE "ubuntu17.04")
SET (DEB_CONTROL_BDEPS "dh-apparmor, dh-systemd (>=1.5)")
SET (DEB_INSTALL_SOURCE_XZ "../*.tar.xz usr/src/mysql/")
SET (DEB_RULES_INSTALL_SYSTEMD
SET (DEB_SERVICE_SERVER_EXECPOST
"ExecStartPost=/usr/share/mysql/mysql-systemd-start post")
SET (DEB_INIT_APPARMOR "/lib/apparmor/profile-load usr.sbin.mysqld")
- SET (DEB_STARTUP "SYSTEMD")
-ELSEIF(DEB_CODENAME STREQUAL "zesty")
- SET (DEB_PLATFORMRELEASE "ubuntu17.04")
+ELSEIF(DEB_CODENAME STREQUAL "artful")
+ SET (DEB_PLATFORMRELEASE "ubuntu17.10")
SET (DEB_CONTROL_BDEPS "dh-apparmor, dh-systemd (>=1.5)")
SET (DEB_INSTALL_SOURCE_XZ "../*.tar.xz usr/src/mysql/")
SET (DEB_RULES_INSTALL_SYSTEMD
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
usr/share/aclocal/mysql.m4
usr/share/man/man1/mysql_config.1
# legal
-usr/share/doc/libmysqlclient-dev/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/libmysqlclient-dev/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/libmysqlclient-dev/
+usr/share/mysql/README usr/share/doc/libmysqlclient-dev/
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
usr/lib/*/libmysqlclient.so.18*
usr/lib/*/libmysqlclient_r.so.18*
# legal
-usr/share/doc/libmysqlclient18/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/libmysqlclient18/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/libmysqlclient18/
+usr/share/mysql/README usr/share/doc/libmysqlclient18/
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
usr/lib/*/libmysqld.a
usr/lib/*/libmysqld-debug.a
# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/libmysqld-dev/
+usr/share/mysql/README usr/share/doc/libmysqld-dev/
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
usr/lib/mysql/sql-bench/*
# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-bench/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-bench/
usr/bin/mysqlimport
usr/bin/mysqlshow
usr/bin/mysqlslap
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/
usr/share/man/man1/mysqlshow.1
usr/share/man/man1/mysqlslap.1
# legal
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
usr/share/mysql/charsets/*.xml
usr/share/mysql/charsets/README
# legal
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-common@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-common@DEB_PRODUCTSERIES@/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-common/
+usr/share/mysql/README usr/share/doc/mysql-common/
usr/share/man/man1/myisamlog.1
usr/share/man/man1/myisampack.1
usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysql-stress-test.pl.1
+usr/share/man/man1/mysql_convert_table_format.1
usr/share/man/man1/mysql_install_db.1
usr/share/man/man1/mysql_plugin.1
usr/share/man/man1/mysql_secure_installation.1
usr/share/mysql/errmsg-utf8.txt
@DEB_INSTALL_SERVER_SYSTEMD@
# legal
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/README
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/@DEB_WSREP_README@
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-server/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-server/
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
../*.tar.gz usr/src/mysql/
@DEB_INSTALL_SOURCE_XZ@
# legal
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-source@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-source@DEB_PRODUCTSERIES@/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-source/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-source/
# test suite
usr/lib/mysql-test/*
# legal
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/README
--- /dev/null
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# binaries
+usr/bin/mysql_client_test
+usr/bin/mysql_client_test_embedded
+usr/bin/mysqltest
+usr/bin/mysqltest_embedded
+# plugins
+usr/lib/mysql/plugin/auth.so
+usr/lib/mysql/plugin/auth_test_plugin.so
+usr/lib/mysql/plugin/daemon_example.ini
+usr/lib/mysql/plugin/libdaemon_example.so
+usr/lib/mysql/plugin/qa_auth_client.so
+usr/lib/mysql/plugin/qa_auth_interface.so
+usr/lib/mysql/plugin/qa_auth_server.so
+usr/lib/mysql/plugin/test_udf_services.so
+@DEB_INSTALL_DEBUG_TEST_PLUGINS@
+# test suite
+usr/lib/mysql-test/*
+# legal
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-@DEB_PRODUCTNAME@-test/
+usr/share/mysql/README usr/share/doc/mysql-@DEB_PRODUCTNAME@-test/
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# legal
-usr/share/doc/mysql-server/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-server/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-server/
+usr/share/mysql/README usr/share/doc/mysql-server/
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# legal
-usr/share/doc/mysql-testsuite/@DEB_INSTALL_LICENSEFILE@
-usr/share/doc/mysql-testsuite/README
+usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ usr/share/doc/mysql-testsuite/
+usr/share/mysql/README usr/share/doc/mysql-testsuite/
# add apparmor profile
@DEB_RULES_INSTALL_APPARMOR@
# add systemd script
- #@DEB_RULES_INSTALL_SYSTEMD@
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-common@DEB_PRODUCTSERIES@
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- # install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-source@DEB_PRODUCTSERIES@
- @DEB_NDB_RULES_DOCDIRS@
- # add @DEB_INSTALL_LICENSEFILE@ file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-server/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-client/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-common@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/libmysqlclient18/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/libmysqlclient-dev/@DEB_INSTALL_LICENSEFILE@
- # install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/libmysqld-dev/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-testsuite/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/@DEB_INSTALL_LICENSEFILE@ debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-source@DEB_PRODUCTSERIES@/@DEB_INSTALL_LICENSEFILE@
- @DEB_NDB_RULES_LICENSE@
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README-wsrep debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-server@DEB_PRODUCTSERIES@
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-client@DEB_PRODUCTSERIES@/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-common@DEB_PRODUCTSERIES@/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- # install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-test@DEB_PRODUCTSERIES@/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-@DEB_PRODUCTNAME@-source@DEB_PRODUCTSERIES@/README
- @DEB_NDB_RULES_README@
+ @DEB_RULES_INSTALL_SYSTEMD@
touch $@
dh_install --list-missing \
-Xusr/bin/i_mysql_client_test \
-Xusr/share/mysql/mysql.server \
- -Xusr/share/mysql/@DEB_INSTALL_LICENSEFILE@ \
- -Xusr/share/mysql/README \
+ -Xusr/share/man/man1/mysql.server.1 \
+ -Xusr/share/mysql/binary-configure \
-Xusr/share/mysql/docs/mysql.info \
- -Xusr/share/mysql/docs/INSTALL-BINARY \
- -Xusr/share/man/man1/mysqlman.1
-ifneq (,@DEB_RULES_APPARMOR_LOAD@)
- # non-empty command = apparmor is handled
- dh_apparmor -pmysql-server@DEB_PRODUCTSERIES@ --profile-name=usr.sbin.mysqld
-endif
+ -Xusr/share/man/man1/mysqlman.1 \
+ -Xusr/share/man/man1/mysqltest \
+ -Xusr/share/man/man1/mysql_client_test \
+ -Xusr/share/man/man1/mysql-stress-test.pl.1 \
+ -Xusr/share/man/man1/mysql-test-run.pl.1 \
+ -X.h.pp
+++ /dev/null
-mysql-community (5.6.26-1debian8) jessie; urgency=low
-
- * new upstream release
- * mysql-commercial-server now depends on perl, psmisc
- mysql-commercial-test now depends on python, libmysqlclient-dev
- (Closes: #20893836)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Thu, 18 Jun 2015 16:34:10 +0530
-
-mysql-community (5.6.25-2debian8) jessie; urgency=low
-
- * new upstream release
- * added systemd support
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 29 May 2015 17:07:34 +0530
-
-mysql-community (5.6.24-2debian8) jessie; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 14 Apr 2015 16:40:14 +0530
-
-mysql-community (5.6.24-1debian7) wheezy; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2015 15:45:09 +0530
-
-mysql-community (5.6.23-1debian7) wheezy; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-1debian7) wheezy; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 24 Sep 2014 14:48:07 +0530
-
-mysql-community (5.6.21-1debian7) wheezy; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1debian7) wheezy; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1debian7) wheezy; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1debian7) stable; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.5
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-systemd (>= 1.5), lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Provides: virtual-mysql-server, virtual-mysql-server-core,
- mysql-server-5.6, mysql-server-core-5.6
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core,
- mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev
-Provides: mysql-common
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[client]
-port = 3306
-socket = /var/run/mysqld/mysqld.sock
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Scripts to run by MySQL systemd service
-#
-# Needed argument: pre | post
-#
-# pre mode : try to perform sanity check for configuration, log, data
-# post mode : ping server until answer is received
-
-pinger () {
- while /bin/true ; do
- sleep 1
- mysqladmin ping >/dev/null 2>&1 && break
- done
-}
-
-sanity () {
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- if [ ! -r /etc/mysql/my.cnf ]; then
- echo "MySQL configuration not found at /etc/mysql/my.cnf. Please install one using update-alternatives."
- exit 1
- fi
-}
-
-case $1 in
- "pre") sanity ;;
- "post") pinger ;;
-esac
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql
-usr/include/mysql/mysql
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/my.cnf
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql
-usr/lib/mysql/sql-bench
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysql_plugin
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/mysql-systemd-start
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# MySQL systemd service file
-
-[Unit]
-Description=MySQL Community Server
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-User=mysql
-Group=mysql
-PermissionsStartOnly=true
-ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
-ExecStart=/usr/bin/mysqld_safe
-ExecStartPost=/usr/share/mysql/mysql-systemd-start post
-TimeoutSec=600
-Restart=on-failure
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
-# MySQL 5.6.34 needs this
- MYSQLFILES=/var/lib/mysql-files
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ -z "$2" ];
- then
- set -e
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
- MYSQLFILES=/var/lib/mysql-files
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLFILES=/var/lib/mysql-files
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- Additionally, any import or export files stored at '/var/lib/mysql-files' will be removed along with directory.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.xz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server configuration file my.cnf to mysql-common package
- install -g root -o root -m 0644 -D debian/extra/my.cnf debian/tmp/etc/mysql/my.cnf
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add systemd script
- install -m 0755 debian/extra/mysql-systemd-start debian/tmp/usr/share/mysql/
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_systemd_enable --name=mysql
- dh_installinit --name=mysql -- defaults 19 21
- dh_systemd_start --restart-after-upgrade
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
-debian/extra/connection_control-plugin
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# We provide our own versioning scheme so this warning is overridden
-mysql-community source: changelog-should-mention-nmu
-mysql-community source: source-nmu-has-incorrect-version-number
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.25-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * mysql-community-server now depends on perl, psmisc
- mysql-community-test now depends on python, libmysqlclient-dev
- (Closes: #20561621)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 25 Feb 2014 22:52:19 +0530
-
-mysql-community (5.6.24-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * dh_apparmor to now run before dh_installinit in d/rules
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * added more system resources to app armor profile
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 24 Sep 2014 14:48:07 +0530
-
-mysql-community (5.6.21-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu12.04) precise; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.3
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Provides: virtual-mysql-server, virtual-mysql-server-core,
- mysql-server-5.6, mysql-server-core-5.6
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core,
- mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev
-Provides: mysql-common
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/conf.d/ r,
- /etc/mysql/conf.d/*.cnf r,
- /etc/mysql/*.cnf r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow data files dir access
- /var/lib/mysql-files/ r,
- /var/lib/mysql-files/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[client]
-port = 3306
-socket = /var/run/mysqld/mysqld.sock
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql
-usr/include/mysql/mysql
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/my.cnf
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql
-usr/lib/mysql/sql-bench
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysql_plugin
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
-# MySQL 5.6.34 needs this
- MYSQLFILES=/var/lib/mysql-files
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ -z "$2" ];
- then
- set -e
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
- MYSQLFILES=/var/lib/mysql-files
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLFILES=/var/lib/mysql-files
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- Additionally, any import or export files stored at '/var/lib/mysql-files' will be removed along with directory.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server configuration file my.cnf to mysql-common package
- install -g root -o root -m 0644 -D debian/extra/my.cnf debian/tmp/etc/mysql/my.cnf
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_installinit --name=mysql -- defaults 19 21
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
-debian/extra/connection_control-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.25-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * mysql-community-server now depends on perl, psmisc
- mysql-community-test now depends on python, libmysqlclient-dev
- (Closes: #20561621)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 25 Feb 2014 22:52:19 +0530
-
-mysql-community (5.6.24-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * dh_apparmor to now run before dh_installinit in d/rules
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-2ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * mysql-common now replaces mysql-server-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 28 Nov 2014 15:18:07 +0530
-
-mysql-community (5.6.22-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * added more system resources to app armor profile
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 24 Sep 2014 14:48:07 +0530
-
-mysql-community (5.6.21-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.5
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Provides: virtual-mysql-server, virtual-mysql-server-core,
- mysql-server-5.6, mysql-server-core-5.6
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core,
- mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev,
- mysql-server-5.6, mysql-server-core-5.6
-Provides: mysql-common
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/conf.d/ r,
- /etc/mysql/conf.d/*.cnf r,
- /etc/mysql/*.cnf r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow data files dir access
- /var/lib/mysql-files/ r,
- /var/lib/mysql-files/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[client]
-port = 3306
-socket = /var/run/mysqld/mysqld.sock
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/my.cnf
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysql_plugin
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
-# MySQL 5.6.34 needs this
- MYSQLFILES=/var/lib/mysql-files
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ -z "$2" ];
- then
- set -e
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
- MYSQLFILES=/var/lib/mysql-files
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLFILES=/var/lib/mysql-files
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- Additionally, any import or export files stored at '/var/lib/mysql-files' will be removed along with directory.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server configuration file my.cnf to mysql-common package
- install -g root -o root -m 0644 -D debian/extra/my.cnf debian/tmp/etc/mysql/my.cnf
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_installinit --name=mysql -- defaults 19 21
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
-debian/extra/connection_control-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.25-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-community-server now depends on perl, psmisc
- mysql-community-test now depends on python, libmysqlclient-dev
- (Closes: #20561621)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 25 Feb 2014 22:52:19 +0530
-
-mysql-community (5.6.24-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-2ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-common now replaces mysql-server-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 28 Nov 2014 15:18:07 +0530
-
-mysql-community (5.6.22-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * forked packaging source from trusty and rebranded for utopic
- * updated d/m-c-source.install to pack *.xz packaging source archive
- * added more system resources to app armor profile
- * dh_apparmor to now run before dh_installinit in d/rules
- * libmysqlclient-dev now replaces mysql-client-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 05 Nov 2014 17:04:07 +0530
-
-mysql-community (5.6.21-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.5
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Provides: virtual-mysql-server, virtual-mysql-server-core,
- mysql-server-5.6, mysql-server-core-5.6
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core,
- mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev,
- mysql-server-5.6, mysql-server-core-5.6
-Provides: mysql-common
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Replaces: mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/conf.d/ r,
- /etc/mysql/conf.d/*.cnf r,
- /etc/mysql/*.cnf r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[client]
-port = 3306
-socket = /var/run/mysqld/mysqld.sock
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/my.cnf
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysql_plugin
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
- if [ -z "$2" ];
- then
- set -e
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-../*.tar.xz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server configuration file my.cnf to mysql-common package
- install -g root -o root -m 0644 -D debian/extra/my.cnf debian/tmp/etc/mysql/my.cnf
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_installinit --name=mysql -- defaults 19 21
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.26-1ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-commercial-server now depends on perl, psmisc
- mysql-commercial-test now depends on python, libmysqlclient-dev
- (Closes: #20893836)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Thu, 18 Jun 2015 16:34:10 +0530
-
-mysql-community (5.6.25-3ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-common now conflicts with
- mysql-server-5.6, mysql-server-core-5.6
- mysql-client-5.6, mysql-client-core-5.6
- * mysql-*-server no more provides
- mysql-server-5.6, mysql-server-core-5.6
- * mysql-*-client no more provides
- mysql-client-5.6, mysql-client-core-5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 15 Jun 2015 16:48:05 +0530
-
-mysql-community (5.6.24-3ubuntu15.04) vivid; urgency=low
-
- * updated Standards-Version to 3.9.6 in d/control
- * apparmor profile updated to allow read on all files under /etc/mysql
- * added new conf files under d/extra/*.conf
- * mysql_plugin moved from client to server pkg
- * innochecksum moved from client to server pkg
- * server pkg now replaces client pkg
- * added systemd service profile and script
- * new /etc/mysql/my.cnf management scheme added for Ubuntu 15.04
- as discussed in Dec 2014 for native packaging source
- * added dh "--with systemd" for enabling systemd
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 27 May 2015 11:35:35 +0530
-
-mysql-community (5.6.24-2ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * forked packaging source from utopic to vivid
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 15 Apr 2015 18:52:22 +0530
-
-mysql-community (5.6.24-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-2ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-common now replaces mysql-server-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 28 Nov 2014 15:18:07 +0530
-
-mysql-community (5.6.22-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * forked packaging source from trusty and rebranded for utopic
- * updated d/m-c-source.install to pack *.xz packaging source archive
- * added more system resources to app armor profile
- * dh_apparmor to now run before dh_installinit in d/rules
- * libmysqlclient-dev now replaces mysql-client-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 05 Nov 2014 17:04:07 +0530
-
-mysql-community (5.6.21-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.6
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, dh-systemd (>= 1.5), lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server,
- mysql-community-client
-Provides: virtual-mysql-server, virtual-mysql-server-core
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-server-5.6, mysql-server-core-5.6,
- mysql-client-5.6, mysql-client-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev,
- mysql-server-5.6, mysql-server-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Provides: mysql-common, mysql-common-5.6
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Replaces: mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/** r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Scripts to run by MySQL systemd service
-#
-# Needed argument: pre | post
-#
-# pre mode : try to perform sanity check for configuration, log, data
-# post mode : ping server until answer is received
-
-pinger () {
- while /bin/true ; do
- sleep 1
- mysqladmin ping >/dev/null 2>&1 && break
- done
-}
-
-sanity () {
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- if [ ! -r /etc/mysql/my.cnf ]; then
- echo "MySQL configuration not found at /etc/mysql/my.cnf. Please install one using update-alternatives."
- exit 1
- fi
-}
-
-case $1 in
- "pre") sanity ;;
- "post") pinger ;;
-esac
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
-!includedir /etc/mysql/mysql.conf.d/
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Client configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysql]
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# configuration file and script
-debian/extra/my.cnf.fallback etc/mysql/
-debian/extra/mysql.conf.cnf etc/mysql/conf.d/mysql.cnf
-
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-#!/bin/sh
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "configure" ]; then
- # Low priority fallback for client use when no server is installed.
- update-alternatives --install /etc/mysql/my.cnf my.cnf /etc/mysql/my.cnf.fallback 100
-fi
-
-#DEBHELPER#
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "purge" ]; then
- rmdir /etc/mysql 2>/dev/null || true
- update-alternatives --remove-all my.cnf
-fi
-
-#DEBHELPER#
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/mysql.conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_plugin
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# confguration files
-debian/extra/mysql.cnf etc/mysql/
-debian/extra/mysqld.cnf etc/mysql/mysql.conf.d/
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/mysql-systemd-start
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# MySQL systemd service file
-
-[Unit]
-Description=MySQL Community Server
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-User=mysql
-Group=mysql
-PermissionsStartOnly=true
-ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
-ExecStart=/usr/bin/mysqld_safe
-ExecStartPost=/usr/share/mysql/mysql-systemd-start post
-TimeoutSec=600
-Restart=on-failure
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
- if [ -z "$2" ];
- then
- set -e
-
- update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mysql.cnf" 200
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
- update-alternatives --remove my.cnf "/etc/mysql/mysql.cnf"
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-../*.tar.xz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add systemd script
- install -m 0755 debian/extra/mysql-systemd-start debian/tmp/usr/share/mysql/
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_systemd_enable --name=mysql
- dh_installinit --name=mysql -- defaults 19 21
- dh_systemd_start --restart-after-upgrade
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.25-1debian7) wheezy; urgency=low
-
- * new upstream release
- * mysql-community-server now depends on perl, psmisc
- mysql-community-test now depends on python, libmysqlclient-dev
- (Closes: #20561621)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 25 Feb 2014 22:52:19 +0530
-
-mysql-community (5.6.24-1debian7) wheezy; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1debian7) wheezy; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-1debian7) wheezy; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 24 Sep 2014 14:48:07 +0530
-
-mysql-community (5.6.21-1debian7) wheezy; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1debian7) wheezy; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1debian7) wheezy; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1debian7) stable; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.3
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Provides: virtual-mysql-server, virtual-mysql-server-core,
- mysql-server-5.6, mysql-server-core-5.6
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core,
- mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev
-Provides: mysql-common
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[client]
-port = 3306
-socket = /var/run/mysqld/mysqld.sock
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql
-usr/include/mysql/mysql
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/my.cnf
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql
-usr/lib/mysql/sql-bench
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysql_plugin
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
-# MySQL 5.6.34 needs this
- MYSQLFILES=/var/lib/mysql-files
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ -z "$2" ];
- then
- set -e
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
- MYSQLFILES=/var/lib/mysql-files
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if [ -d ${MYSQLFILES} ] || [ -L ${MYSQLFILES} ];
- then
- rm -rf ${MYSQLFILES}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLFILES=/var/lib/mysql-files
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLFILES} -a ! -L ${MYSQLFILES} ];
- then
- mkdir ${MYSQLFILES}
- chown mysql:mysql ${MYSQLFILES}
- chmod 770 ${MYSQLFILES}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- Additionally, any import or export files stored at '/var/lib/mysql-files' will be removed along with directory.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server configuration file my.cnf to mysql-common package
- install -g root -o root -m 0644 -D debian/extra/my.cnf debian/tmp/etc/mysql/my.cnf
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_installinit --name=mysql -- defaults 19 21
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
-debian/extra/connection_control-plugin
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# We provide our own versioning scheme so this warning is overridden
-mysql-community source: changelog-should-mention-nmu
-mysql-community source: source-nmu-has-incorrect-version-number
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.28-1ubuntu15.10) wily; urgency=low
-
- * New upstream release
-
- -- Lars Tangvald <lars.tangvald@oracle.com> Thu, 12 Nov 2015 10:34:23 +0100
-
-mysql-community (5.6.26-1ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-commercial-server now depends on perl, psmisc
- mysql-commercial-test now depends on python, libmysqlclient-dev
- (Closes: #20893836)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Thu, 18 Jun 2015 16:34:10 +0530
-
-mysql-community (5.6.25-3ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-common now conflicts with
- mysql-server-5.6, mysql-server-core-5.6
- mysql-client-5.6, mysql-client-core-5.6
- * mysql-*-server no more provides
- mysql-server-5.6, mysql-server-core-5.6
- * mysql-*-client no more provides
- mysql-client-5.6, mysql-client-core-5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 15 Jun 2015 16:48:05 +0530
-
-mysql-community (5.6.24-3ubuntu15.04) vivid; urgency=low
-
- * updated Standards-Version to 3.9.6 in d/control
- * apparmor profile updated to allow read on all files under /etc/mysql
- * added new conf files under d/extra/*.conf
- * mysql_plugin moved from client to server pkg
- * innochecksum moved from client to server pkg
- * server pkg now replaces client pkg
- * added systemd service profile and script
- * new /etc/mysql/my.cnf management scheme added for Ubuntu 15.04
- as discussed in Dec 2014 for native packaging source
- * added dh "--with systemd" for enabling systemd
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 27 May 2015 11:35:35 +0530
-
-mysql-community (5.6.24-2ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * forked packaging source from utopic to vivid
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 15 Apr 2015 18:52:22 +0530
-
-mysql-community (5.6.24-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-2ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-common now replaces mysql-server-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 28 Nov 2014 15:18:07 +0530
-
-mysql-community (5.6.22-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * forked packaging source from trusty and rebranded for utopic
- * updated d/m-c-source.install to pack *.xz packaging source archive
- * added more system resources to app armor profile
- * dh_apparmor to now run before dh_installinit in d/rules
- * libmysqlclient-dev now replaces mysql-client-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 05 Nov 2014 17:04:07 +0530
-
-mysql-community (5.6.21-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.6
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, dh-systemd (>= 1.5), lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server,
- mysql-community-client
-Provides: virtual-mysql-server, virtual-mysql-server-core
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-server-5.6, mysql-server-core-5.6,
- mysql-client-5.6, mysql-client-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev,
- mysql-server-5.6, mysql-server-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Provides: mysql-common, mysql-common-5.6
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Replaces: mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2014, 2015, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/** r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Scripts to run by MySQL systemd service
-#
-# Needed argument: pre | post
-#
-# pre mode : try to perform sanity check for configuration, log, data
-# post mode : ping server until answer is received
-
-pinger () {
- while /bin/true ; do
- sleep 1
- mysqladmin ping >/dev/null 2>&1 && break
- done
-}
-
-sanity () {
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- if [ ! -r /etc/mysql/my.cnf ]; then
- echo "MySQL configuration not found at /etc/mysql/my.cnf. Please install one using update-alternatives."
- exit 1
- fi
-}
-
-case $1 in
- "pre") sanity ;;
- "post") pinger ;;
-esac
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
-!includedir /etc/mysql/mysql.conf.d/
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Client configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysql]
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# configuration file and script
-debian/extra/my.cnf.fallback etc/mysql/
-debian/extra/mysql.conf.cnf etc/mysql/conf.d/mysql.cnf
-
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-#!/bin/sh
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "configure" ]; then
- # Low priority fallback for client use when no server is installed.
- update-alternatives --install /etc/mysql/my.cnf my.cnf /etc/mysql/my.cnf.fallback 100
-fi
-
-#DEBHELPER#
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "purge" ]; then
- rmdir /etc/mysql 2>/dev/null || true
- update-alternatives --remove-all my.cnf
-fi
-
-#DEBHELPER#
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/mysql.conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_plugin
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# confguration files
-debian/extra/mysql.cnf etc/mysql/
-debian/extra/mysqld.cnf etc/mysql/mysql.conf.d/
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/mysql-systemd-start
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# MySQL systemd service file
-
-[Unit]
-Description=MySQL Community Server
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-User=mysql
-Group=mysql
-PermissionsStartOnly=true
-ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
-ExecStart=/usr/bin/mysqld_safe
-ExecStartPost=/usr/share/mysql/mysql-systemd-start post
-TimeoutSec=600
-Restart=on-failure
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
- if [ -z "$2" ];
- then
- set -e
-
- update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mysql.cnf" 200
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
- update-alternatives --remove my.cnf "/etc/mysql/mysql.cnf"
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-../*.tar.xz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add systemd script
- install -m 0755 debian/extra/mysql-systemd-start debian/tmp/usr/share/mysql/
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_systemd_enable --name=mysql
- dh_installinit --name=mysql -- defaults 19 21
- dh_systemd_start --restart-after-upgrade
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
+++ /dev/null
-mysql-community (5.6.31-1ubuntu16.04) xenial; urgency=medium
-
- * New upstream release
-
- -- Lars Tangvald <ltangval@atum23> Tue, 03 May 2016 09:30:33 +0200
-
-mysql-community (5.6.28-1ubuntu15.10) wily; urgency=low
-
- * New upstream release
-
- -- Lars Tangvald <lars.tangvald@oracle.com> Thu, 12 Nov 2015 10:34:23 +0100
-
-mysql-community (5.6.26-1ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-commercial-server now depends on perl, psmisc
- mysql-commercial-test now depends on python, libmysqlclient-dev
- (Closes: #20893836)
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Thu, 18 Jun 2015 16:34:10 +0530
-
-mysql-community (5.6.25-3ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * mysql-common now conflicts with
- mysql-server-5.6, mysql-server-core-5.6
- mysql-client-5.6, mysql-client-core-5.6
- * mysql-*-server no more provides
- mysql-server-5.6, mysql-server-core-5.6
- * mysql-*-client no more provides
- mysql-client-5.6, mysql-client-core-5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 15 Jun 2015 16:48:05 +0530
-
-mysql-community (5.6.24-3ubuntu15.04) vivid; urgency=low
-
- * updated Standards-Version to 3.9.6 in d/control
- * apparmor profile updated to allow read on all files under /etc/mysql
- * added new conf files under d/extra/*.conf
- * mysql_plugin moved from client to server pkg
- * innochecksum moved from client to server pkg
- * server pkg now replaces client pkg
- * added systemd service profile and script
- * new /etc/mysql/my.cnf management scheme added for Ubuntu 15.04
- as discussed in Dec 2014 for native packaging source
- * added dh "--with systemd" for enabling systemd
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 27 May 2015 11:35:35 +0530
-
-mysql-community (5.6.24-2ubuntu15.04) vivid; urgency=low
-
- * new upstream release
- * forked packaging source from utopic to vivid
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 15 Apr 2015 18:52:22 +0530
-
-mysql-community (5.6.24-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 16 Feb 2014 15:45:09 +0530
-
-mysql-community (5.6.23-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-community-server now recommends mysql-client
- * mysql-community-server now depends on apparmor
- * removed template install-test-db; not installed by default
- * d/compat incremented to 9 from 8
- * d/control updated to build depend on debhelper 9
- * added d/*.lintian-overrides and d/source/lintian-overrides
- * d/rules updated to reflect correct file permissions
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 31 Dec 2014 10:51:07 +0530
-
-mysql-community (5.6.22-2ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * mysql-common now replaces mysql-server-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 28 Nov 2014 15:18:07 +0530
-
-mysql-community (5.6.22-1ubuntu14.10) utopic; urgency=low
-
- * new upstream release
- * fixed d/*server.postinst to allow dropping test db without
- setting root password
- * init script will now run my_i_db if data dir is not present or empty
- * updated init script to read app armor profile on startup
- * forked packaging source from trusty and rebranded for utopic
- * updated d/m-c-source.install to pack *.xz packaging source archive
- * added more system resources to app armor profile
- * dh_apparmor to now run before dh_installinit in d/rules
- * libmysqlclient-dev now replaces mysql-client-{,core-}5.6
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 05 Nov 2014 17:04:07 +0530
-
-mysql-community (5.6.21-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * updated d/rules to increment -j8 as make option
- * updated d/source/include-binaries to add mysql_no_login plugin
- * updated CMake option WITH_EXTRA_CHARSETS from complex to all
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 20 Aug 2014 19:12:30 +0530
-
-mysql-community (5.6.20-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * added fakeroot as build-dep in d/control
- * added d/*.dirs for bench, dev and test pkg
- * updated d/rules to make compilation verbose
- * removed default CFLAGS, CXXFLAGS in d/rules
- * added patch for testsuite search paths under d/patches
- * modified cmake option for testsuite in d/rules
- * updated patch d/fix-mysql_install_db.patch
- * enabled two patches in d/patches/series
- * removed extra permissions check in d/rules when fixed in source
- * modified d/mysql-*-server.postinst to stop removing /usr/my.cnf
- * modified d/*-test.* for updated location of testsuite
- * updated d/{mysql-*-server.install,rules} to include debug plugins
- * updated d/rules to remove storage engine cmake options
- * modified data dir permission in d/*server.{pre,post}inst
- * updated d/source/include-binaries to add debug plugins
- * updated d/rules to rename debug plugins
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Wed, 02 Jul 2014 17:45:30 +0530
-
-mysql-community (5.6.19-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
- * d/rules updated to rid of files removed from source
- * modified path for source tar in source pkg
- * obscured actual filenames in d/source/include-binaries
- * modified d/rules to handle obscured filenames
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Mon, 05 May 2014 15:45:10 +0530
-
-mysql-community (5.6.17-1ubuntu14.04) trusty; urgency=low
-
- * new upstream release
-
- -- Akhil Mohan <akhil.mohan@oracle.com> Fri, 28 Feb 2014 18:06:30 +0530
+++ /dev/null
-Source: mysql-community
-Maintainer: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Section: database
-Priority: optional
-Standards-Version: 3.9.6
-Homepage: http://www.mysql.com/
-Build-Depends: debhelper (>= 9.0.0), libaio-dev[linux-any], libncurses5-dev (>= 5.0-6), perl, zlib1g-dev (>= 1:1.1.3-5), po-debconf, psmisc, bison, dh-apparmor, dh-systemd (>= 1.5), lsb-release, cmake, fakeroot, libnuma-dev
-
-Package: mysql-server
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Server meta package depending on latest version
- 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 is a meta package that depends on the latest mysql server
- package available in the repository.
-
-Package: mysql-community-server
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), adduser
-Depends: mysql-common (= ${binary:Version}), apparmor, perl, psmisc,
- ${shlibs:Depends}, ${misc:Depends}
-Recommends: mysql-client (= ${binary:Version})
-Conflicts: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server
-Replaces: mysql,
- mysql-server-5.0, mysql-server-core-5.0,
- mysql-server-5.1, mysql-server-core-5.1,
- mysql-server-5.5, mysql-server-core-5.5,
- mysql-server-5.6, mysql-server-core-5.6,
- mysql-commercial-server,
- mysql-community-client
-Provides: virtual-mysql-server, virtual-mysql-server-core
-Description: MySQL Server
- 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.
-
-Package: mysql-client
-Architecture: any
-Depends: mysql-community-client (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Client meta package depending on latest version
- 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 is a meta package that depends on the latest mysql client
- package available in the repository.
-
-Package: mysql-community-client
-Architecture: any
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Replaces: mysql,
- mysql-client-5.0, mysql-client-core-5.0,
- mysql-client-5.1, mysql-client-core-5.1,
- mysql-client-5.5, mysql-client-core-5.5,
- mysql-client-5.6, mysql-client-core-5.6,
- mysql-commercial-client
-Provides: virtual-mysql-client, virtual-mysql-client-core
-Description: MySQL Client
- 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.
-
-Package: libmysqlclient18
-Architecture: any
-Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Multi-Arch: same
-Depends: mysql-common (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL shared client libraries
- 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 shared libraries for MySQL client
- applications.
-
-Package: mysql-common
-Architecture: any
-Pre-depends: debconf (>= 0.2.17), ${misc:Pre-Depends}
-Multi-Arch: foreign
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-server-5.6, mysql-server-core-5.6,
- mysql-client-5.6, mysql-client-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Replaces: mysql, mysql-server-5.5, mysql-server-core-5.5, libmysqlclient-dev,
- mysql-server-5.6, mysql-server-core-5.6,
- mariadb-server-5.5, percona-xtradb-cluster-common-5.5
-Provides: mysql-common, mysql-common-5.6
-Description: MySQL Common
- 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 common files needed by MySQL client
- library, MySQL database server, and MySQL embedded server.
-
-Package: libmysqlclient-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient18 (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Replaces: mysql-client-5.6, mysql-client-core-5.6
-Description: MySQL development headers
- 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 development header files necessary
- to develop MySQL client applications.
-
-Package: libmysqld-dev
-Architecture: any
-Section: libdevel
-Depends: libmysqlclient-dev (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Description: MySQL embedded server library
- 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 MySQL server as an embedded library.
-
-Package: mysql-testsuite
-Architecture: any
-Depends: mysql-community-test (= ${binary:Version}), ${misc:Depends}
-Description: MySQL Testsuite meta package depending on latest version
- 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 is a meta package that depends on the latest mysql test
- package available in the repository.
-
-Package: mysql-community-test
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- mysql-community-client (= ${binary:Version}), python,
- libmysqlclient-dev, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql,
- mysql-testsuite-5.0, mysql-testsuite-5.1, mysql-testsuite-5.5,
- mysql-testsuite-5.6, mysql-commercial-test
-Description: MySQL Test Run MTR - The MySQL testsuite
- 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 MySQL regression test suite for MySQL
- database server.
-
-Package: mysql-community-bench
-Architecture: any
-Depends: mysql-community-server (= ${binary:Version}),
- ${shlibs:Depends}, ${misc:Depends}
-Conflicts: mysql, mysql-commercial-bench
-Description: MySQL Bench
- 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.
-
-Package: mysql-community-source
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: MySQL source
- 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.
+++ /dev/null
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: MySQL Server 5.6
-Upstream-Contact: MySQL Release Engineering <mysql-build@oss.oracle.com>
-Source: http://dev.mysql.com/
-
-Copyright: 2000, 2016, Oracle and/or its affiliates. All rights reserved.
-License:
- This is a release of MySQL, a dual-license SQL database server.
- For the avoidance of doubt, this particular copy of the software
- is released under the version 2 of the GNU General Public License.
- MySQL is brought to you by Oracle.
- .
- MySQL FOSS License Exception
- We want free and open source software applications under certain
- licenses to be able to use specified GPL-licensed MySQL client
- libraries despite the fact that not all such FOSS licenses are
- compatible with version 2 of the GNU General Public License.
- Therefore there are special exceptions to the terms and conditions
- of the GPLv2 as applied to these client libraries, which are
- identified and described in more detail in the FOSS License
- Exception at
- <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
- .
- This distribution may include materials developed by third
- parties. For license and attribution notices for these
- materials, please refer to the documentation that accompanies
- this distribution (see the "Licenses for Third-Party Components"
- appendix) or view the online documentation at
- <http://dev.mysql.com/doc/>.
- .
- GPLv2 Disclaimer
- For the avoidance of doubt, except that if any license choice
- other than GPL or LGPL is available it will apply instead,
- Oracle elects to use only the General Public License version 2
- (GPLv2) at this time for any software where a choice of GPL
- license versions is made available with the language indicating
- that GPLv2 or any later version may be used, or where a choice
- .
- The full text of the GNU General Public License version 2 can
- be found in the file
- `/usr/share/mysql/doc/COPYING'.
+++ /dev/null
-# vim:syntax=apparmor
-# Last Modified: Fri Feb 28 18:06:30 2014
-#include <tunables/global>
-
-/usr/sbin/mysqld {
- #include <abstractions/base>
- #include <abstractions/nameservice>
- #include <abstractions/user-tmp>
-
-# Allow system resource access
- /sys/devices/system/cpu/ r,
- capability sys_resource,
- capability dac_override,
- capability setuid,
- capability setgid,
-
-# Allow config access
- /etc/mysql/** r,
-
-# Allow pid and socket file access
- /run/mysqld/mysqld.pid rw,
- /run/mysqld/mysqld.sock rw,
-
-# Allow read/ write to /tmp
- /tmp/ r,
- /tmp/* rw,
-
-# Allow execution of server binary
- /usr/sbin/mysqld mr,
- /usr/sbin/mysqld-debug mr,
-
-# Allow plugin access
- /usr/lib/mysql/plugin/ r,
- /usr/lib/mysql/plugin/*.so* mr,
-
-# Allow error msg and charset access
- /usr/share/mysql/ r,
- /usr/share/mysql/** r,
-
-# Allow data dir access
- /var/lib/mysql/ r,
- /var/lib/mysql/** rwk,
-
-# Allow log file access
- /var/log/mysql/ r,
- /var/log/mysql/** rw,
-}
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Scripts to run by MySQL systemd service
-#
-# Needed argument: pre | post
-#
-# pre mode : try to perform sanity check for configuration, log, data
-# post mode : ping server until answer is received
-
-pinger () {
- while /bin/true ; do
- sleep 1
- mysqladmin ping >/dev/null 2>&1 && break
- done
-}
-
-sanity () {
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- if [ ! -r /etc/mysql/my.cnf ]; then
- echo "MySQL configuration not found at /etc/mysql/my.cnf. Please install one using update-alternatives."
- exit 1
- fi
-}
-
-case $1 in
- "pre") sanity ;;
- "post") pinger ;;
-esac
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Community Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-# * IMPORTANT: Additional settings that can override those from this file!
-# The files must end with '.cnf', otherwise they'll be ignored.
-#
-!includedir /etc/mysql/conf.d/
-!includedir /etc/mysql/mysql.conf.d/
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Client configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysql]
+++ /dev/null
-.so man1/mysql.1
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#
-# The MySQL Commercial Server configuration file.
-#
-# For explanations see
-# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
-
-[mysqld_safe]
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-nice = 0
-
-[mysqld]
-user = mysql
-pid-file = /var/run/mysqld/mysqld.pid
-socket = /var/run/mysqld/mysqld.sock
-port = 3306
-basedir = /usr
-datadir = /var/lib/mysql
-tmpdir = /tmp
-lc-messages-dir = /usr/share/mysql
-explicit_defaults_for_timestamp
-
-# Instead of skip-networking the default is now to listen only on
-# localhost which is more compatible and is not less secure.
-bind-address = 127.0.0.1
-
-log-error = /var/log/mysql/error.log
-
-# Recommended in standard MySQL setup
-sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
-
-# Disabling symbolic-links is recommended to prevent assorted security risks
-symbolic-links=0
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/include/mysql/*.h
-usr/include/mysql/mysql/*.h
-usr/include/mysql/mysql/*.h.pp
-usr/include/mysql/mysql/psi/*.h
-usr/lib/*/libmysqlclient.a
-usr/lib/*/libmysqlclient.so
-usr/lib/*/libmysqlservices.a
-usr/bin/mysql_config
-usr/bin/mysql_config_editor
-usr/share/man/man1/mysql_config.1
-usr/share/man/man1/mysql_config_editor.1
-# legal
-usr/share/doc/libmysqlclient-dev/COPYING
-usr/share/doc/libmysqlclient-dev/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql
-libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/COPYING.gz
-libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient-dev: embedded-library
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqlclient.so.*
-# legal
-usr/share/doc/libmysqlclient18/COPYING
-usr/share/doc/libmysqlclient18/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/LICENSE.mysql
-libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/COPYING.gz
-libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-libmysqlclient18: embedded-library
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/*/libmysqld.a
-usr/lib/*/libmysqld-debug.a
-# legal
-usr/share/doc/libmysqld-dev/COPYING
-usr/share/doc/libmysqld-dev/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql
-libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/COPYING.gz
-libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-client/COPYING
-usr/share/doc/mysql-client/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql
-mysql-client: extra-license-file usr/share/doc/mysql-client/COPYING.gz
-mysql-client: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/conf.d
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# configuration file and script
-debian/extra/my.cnf.fallback etc/mysql/
-debian/extra/mysql.conf.cnf etc/mysql/conf.d/mysql.cnf
-
-usr/share/aclocal/mysql.m4
-usr/share/mysql/docs/INFO_SRC
-usr/share/mysql/docs/INFO_BIN
-usr/share/mysql/docs/ChangeLog
-# localized error msgs
-usr/share/mysql/*/errmsg.sys
-usr/share/mysql/errmsg-utf8.txt
-# charsets
-usr/share/mysql/charsets/*.xml
-usr/share/mysql/charsets/README
-# legal
-usr/share/doc/mysql-common/COPYING
-usr/share/doc/mysql-common/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql
-mysql-common: extra-license-file usr/share/doc/mysql-common/COPYING.gz
-mysql-common: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-#!/bin/sh
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "configure" ]; then
- # Low priority fallback for client use when no server is installed.
- update-alternatives --install /etc/mysql/my.cnf my.cnf /etc/mysql/my.cnf.fallback 100
-fi
-
-#DEBHELPER#
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-if [ "$1" = "purge" ]; then
- rmdir /etc/mysql 2>/dev/null || true
- update-alternatives --remove-all my.cnf
-fi
-
-#DEBHELPER#
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql/sql-bench/*
-# legal
-usr/share/doc/mysql-community-bench/COPYING
-usr/share/doc/mysql-community-bench/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/LICENSE.mysql
-mysql-community-bench: extra-license-file usr/share/doc/mysql-community-bench/COPYING.gz
-mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysql_embedded
-usr/bin/mysqlaccess
-usr/bin/mysqlaccess.conf
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysqlshow
-usr/bin/mysqlslap
-usr/bin/mysql_waitpid
-# man pages
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysql_embedded.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlman.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysqlslap.1
-usr/share/man/man1/mysql_waitpid.1
-# legal
-usr/share/doc/mysql-community-client/COPYING
-usr/share/doc/mysql-community-client/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-client/LICENSE.mysql
-mysql-community-client: extra-license-file usr/share/doc/mysql-community-clienti/COPYING.gz
-mysql-community-client: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-client: embedded-library
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-if [ "$1" = "configure" ] && [ -z "$2" ];
-then
-
- set -e
-
- PKG_LIST=mysql-server-5.5:mysql-server-5.6:mysql-community-server:mysql-commercial-server
- INSTALLED_PKG=none
- MYSQLDATA=/var/lib/mysql
-
- IFS_BACKUP=${IFS}
- IFS=":"
- for PKG in ${PKG_LIST};
- do
- STATUS=$(dpkg -s ${PKG} 2> /dev/null | grep Status: | cut -d' ' -f4)
- if [ "${STATUS}" = "installed" ];
- then
- INSTALLED_PKG=${PKG}
- break
- fi
- done
- IFS=${IFS_BACKUP}
-
- if [ "${INSTALLED_PKG}" = "none" ];
- then
- if [ -d ${MYSQLDATA} -o -L ${MYSQLDATA} ];
- then
- db_input high mysql-community-server/data-dir || true
- else
- db_fset mysql-community-server/data-dir seen true
- fi
-
- while :; do
- PASSWD=""
- db_input high mysql-community-server/root-pass || true
- db_go
-
- db_get mysql-community-server/root-pass
- if [ -z "${RET}" ];
- then
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- break
- fi
- PASSWD="${RET}"
-
- db_input high mysql-community-server/re-root-pass || true
- db_go
-
- db_get mysql-community-server/re-root-pass
- if [ "${RET}" == "${PASSWD}" ];
- then
- PASSWD=""
- break
- fi
-
- db_fset mysql-community-server/root-pass-mismatch seen false
- db_input critical mysql-community-server/root-pass-mismatch
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- done
-
- else
- db_fset mysql-community-server/data-dir seen true
- db_fset mysql-community-server/root-pass seen true
- db_fset mysql-community-server/re-root-pass seen true
- fi
-
- set +e
-fi
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-etc/mysql/mysql.conf.d
-etc/init.d
-usr/lib/mysql
-usr/lib/mysql/plugin
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# binaries
-usr/bin/innochecksum
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_plugin
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysqltest_embedded
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_zap
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-# debug binary
-usr/sbin/mysqld-debug
-# man pages
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_plugin.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql.server.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysql-stress-test.pl.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man8/mysqld.8
-# confguration files
-debian/extra/mysql.cnf etc/mysql/
-debian/extra/mysqld.cnf etc/mysql/mysql.conf.d/
-# app armor profile
-etc/apparmor.d/usr.sbin.mysqld
-# SQL files
-usr/share/mysql/*.sql
-# plugins
-usr/lib/mysql/plugin/*.so
-usr/lib/mysql/plugin/debug/*.so
-usr/lib/mysql/plugin/daemon_example.ini
-usr/lib/mysql/plugin/debug/daemon_example.ini
-# support files
-usr/share/mysql/mysqld_multi.server
-usr/share/mysql/magic
-usr/share/mysql/mysql-log-rotate
-usr/share/mysql/mysql-systemd-start
-usr/share/mysql/my-default.cnf
-usr/share/mysql/dictionary.txt
-# legal
-usr/share/doc/mysql-community-server/COPYING
-usr/share/doc/mysql-community-server/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/LICENSE.mysql
-mysql-community-server: extra-license-file usr/share/doc/mysql-community-server/COPYING.gz
-mysql-community-server: copyright-should-refer-to-common-license-file-for-lgpl
-# Due to static linking this cannot be avoided and hence being overridden
-mysql-community-server: embedded-library
-# Since we ship debug plugins so this error is overridden
-mysql-community-server: unstripped-binary-or-object usr/lib/mysql/plugin/debug/*
+++ /dev/null
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: mysql
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Should-Start: $network $time
-# Should-Stop: $network $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start/ Stop MySQL Community Server daemon
-# Description: This service script facilitates startup and shutdown of
-# mysqld daemon throught its wrapper script mysqld_safe
-### END INIT INFO
-#
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /lib/lsb/init-functions
-
-cd /
-umask 077
-
-MYSQLDATA=/var/lib/mysql
-VERSION=$(mysqld --version | grep mysqld | cut -d' ' -f4)
-
-get_mysql_option() {
- RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
- if [ -z "$RESULT" ];
- then
- RESULT="$3"
- fi
- echo $RESULT
-}
-
-get_running () {
- PIDFILE=$(get_mysql_option mysqld_safe pid-file "")
- if [ -z "$PIDFILE" ];
- then
- PIDFILE=$(get_mysql_option mysqld pid-file "$MYSQLDATA/$(hostname).pid")
- fi
- if [ -e "$PIDFILE" ] && [ -d "/proc/$(cat "$PIDFILE")" ];
- then
- echo 1
- else
- echo 0
- fi
-}
-
-server_stop () {
- RUNNING=$(get_running)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${RUNNING}" -eq 0 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- RUNNING=$(get_running)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- 'start')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "A MySQL Server is already started"
- else
- MYSQLRUN=/var/run/mysqld
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- fi
-
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d "${MYSQLRUN}" -a ! -L "${MYSQLRUN}" ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- /lib/init/apparmor-profile-load usr.sbin.mysqld
-
- su - mysql -s /bin/bash -c "mysqld_safe > /dev/null &"
- for i in 1 2 3 4 5 6;
- do
- sleep 1
- echo -n .
- done
- echo
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is started"
- else
- log_action_msg "MySQL Community Server ${VERSION} did not start. Please check logs for more details."
- fi
- fi
- ;;
-
- 'stop')
- RUNNING=$(get_running)
- if [ "${RUNNING}" -eq 1 ];
- then
- killall -15 mysqld
- server_stop
- if [ "$?" -eq 0 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is stopped"
- else
- log_action_msg "Attempt to shutdown MySQL Community Server ${VERSION} timed out"
- fi
- else
- log_action_msg "MySQL Community Server ${VERSION} is already stopped"
- fi
- ;;
-
- 'restart'|'reload'|'force-reload')
- log_action_msg "Stopping MySQL Community Server ${VERSION}"
- $0 stop
- log_action_msg "Re-starting MySQL Community Server ${VERSION}"
- $0 start
- ;;
-
- 'status')
- RUNNING=$(get_running)
- if [ ${RUNNING} -eq 1 ];
- then
- log_action_msg "MySQL Community Server ${VERSION} is running"
- else
- log_action_msg "MySQL Community Server ${VERSION} is not running"
- exit 3
- fi
- ;;
-
- *)
- echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# MySQL systemd service file
-
-[Unit]
-Description=MySQL Community Server
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-User=mysql
-Group=mysql
-PermissionsStartOnly=true
-ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
-ExecStart=/usr/bin/mysqld_safe
-ExecStartPost=/usr/share/mysql/mysql-systemd-start post
-TimeoutSec=600
-Restart=on-failure
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-. /usr/share/debconf/confmodule
-
-take_upstart_job_backup () {
- if [ -e "/etc/init/mysql.conf" ] && [ -d "/var/lib/mysql" ];
- then
- mv /etc/init/mysql.conf /var/lib/mysql/.mysql.conf.backup
- fi
-}
-
-case "$1" in
- configure)
-
- if [ -z "$2" ];
- then
- set -e
-
- update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mysql.cnf" 200
-
- MYSQLDATA=/var/lib/mysql
-
- if [ ! -d "${MYSQLDATA}/mysql" -a ! -L "${MYSQLDATA}/mysql" ];
- then
- mkdir ${MYSQLDATA}/mysql
- chown mysql:mysql ${MYSQLDATA}/mysql
- chmod 750 ${MYSQLDATA}/mysql
- if [ ! "$(ls -A ${MYSQLDATA}/mysql)" ];
- then
- mysql_install_db --user=mysql > /dev/null
- fi
- fi
-
- db_get mysql-community-server/root-pass && PASSWD=${RET}
- if [ ! -z "${PASSWD}" ];
- then
- db_set mysql-community-server/root-pass ""
- db_set mysql-community-server/re-root-pass ""
- PASSWD="UPDATE user SET password=PASSWORD('${PASSWD}') WHERE user='root';"
- else
- PASSWD=""
- fi
-
- SQL=`mktemp`
- if [ -f "${SQL}" ];
- then
- chmod 700 ${SQL}
- cat << EOF > ${SQL}
-USE mysql;
-${PASSWD}
-DELETE FROM user WHERE user='';
-FLUSH PRIVILEGES;
-EOF
- mysqld --basedir=/usr --bootstrap --user=mysql --skip-grant-tables < $SQL
- PASSWD=""
- rm -f ${SQL}
- fi
-
- set +e
-
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-configure)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-db_stop
-
-take_upstart_job_backup
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
-then
-. /usr/share/debconf/confmodule
-fi
-
-place_upstart_job_back () {
- if [ -e "/var/lib/mysql/.mysql.conf.backup" ];
- then
- mv /var/lib/mysql/.mysql.conf.backup /etc/init/mysql.conf
- fi
-}
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- remove)
-
- set -e
-
- place_upstart_job_back
- update-alternatives --remove my.cnf "/etc/mysql/mysql.cnf"
-
- set +e
-
- ;;
-
- purge)
-
- set -e
-
- place_upstart_job_back
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- server_stop
-
- db_input high mysql-community-server/remove-data-dir || true
- db_go
- db_get mysql-community-server/remove-data-dir && RMDATADIR=${RET}
- if [ "${RMDATADIR}" = "true" ];
- then
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- abort-install)
-
- set -e
-
- place_upstart_job_back
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql start || exit $?
- else
- if [ -d ${MYSQLRUN} ] || [ -L ${MYSQLRUN} ];
- then
- rm -rf ${MYSQLRUN}
- fi
-
- if [ -d ${MYSQLLOG} ] || [ -L ${MYSQLLOG} ];
- then
- rm -rf ${MYSQLLOG}
- fi
-
- if [ -d ${MYSQLDATA} ] || [ -L ${MYSQLDATA} ];
- then
- rm -rf ${MYSQLDATA}
- fi
-
- if getent passwd mysql >/dev/null;
- then
- userdel mysql
- fi
- fi
-
- set +e
- ;;
-
- upgrade|abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-get_pcount () {
- PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
- echo "${PSCOUNT}"
-}
-
-server_stop () {
- PSCOUNT=$(get_pcount)
- COUNT=0
- while :; do
- COUNT=$(( COUNT+1 ))
- echo -n .
- if [ "${PSCOUNT}" -eq 1 ];
- then
- echo
- break
- fi
- if [ "${COUNT}" -gt 15 ];
- then
- echo
- return 1
- fi
- PSCOUNT=$(get_pcount)
- sleep 1
- done
- return 0
-}
-
-case "$1" in
- install)
-
- if [ -z "$2" ];
- then
-
- set -e
-
- if [ -x "/etc/init.d/mysql" ];
- then
- invoke-rc.d mysql stop || exit $?
- server_stop
- fi
-
- MYSQLDATA=/var/lib/mysql
- MYSQLLOG=/var/log/mysql
- MYSQLRUN=/var/run/mysqld
-
- if ! getent group mysql >/dev/null;
- then
- addgroup --system mysql >/dev/null
- fi
-
- if ! getent passwd mysql >/dev/null;
- then
- adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
- fi
-
- if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
- then
- mkdir ${MYSQLDATA}
- chown mysql:mysql ${MYSQLDATA}
- chmod 750 ${MYSQLDATA}
- fi
-
- if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];
- then
- mkdir ${MYSQLLOG}
- chown mysql:adm ${MYSQLLOG}
- chmod 750 ${MYSQLLOG}
- touch ${MYSQLLOG}/error.log
- chmod 640 ${MYSQLLOG}/error.log
- chown mysql:adm ${MYSQLLOG}/error.log
- fi
-
- if [ ! -d ${MYSQLRUN} -a ! -L ${MYSQLRUN} ];
- then
- mkdir ${MYSQLRUN}
- chown mysql:mysql ${MYSQLRUN}
- chmod 755 ${MYSQLRUN}
- fi
-
- set +e
-
- fi
-
- ;;
-
- upgrade)
-
- set -e
-
- #DEBHELPER#
- server_stop
-
- set +e
-
- ;;
-
- abort-upgrade)
-
- ;;
-
- *)
- exit 1
- ;;
-esac
-
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -e
-
-#DEBHELPER#
-
-set +e
-
-exit 0
+++ /dev/null
-Template: mysql-community-server/root-pass
-Type: password
-Description: Enter root password:
- Please provide a strong password that will be set for the root account of your MySQL database.
- Leave it blank if you do not wish to set or change the root password at this time.
-
-Template: mysql-community-server/re-root-pass
-Type: password
-Description: Re-enter root password:
- Now that you have selected a password for the root account, please confirm by typing it again. Do not share the password with anyone.
-
-Template: mysql-community-server/root-pass-mismatch
-Type: error
-Description: The two passwords did not match
- Please try again. Make sure you type the exact same password twice.
-
-Template: mysql-community-server/remove-data-dir
-Type: boolean
-Default: false
-Description: Remove data directory at /var/lib/mysql ?
- This operation will remove the data directory that stores all the databases, tables and related meta-data.
- It is highly recommended to take data backup before removing the data directory.
-
-Template: mysql-community-server/data-dir
-Type: note
-Description: Data directory found when no MySQL server package is installed
- A data directory '/var/lib/mysql' is present on this system when no MySQL server
- package is currently installed on the system. The directory may be under control of
- server package received from third-party vendors. It may also be an unclaimed data
- directory from previous removal of mysql packages.
- .
- It is highly recommended to take data backup. If you have not done so, now would be
- the time to take backup in another shell. Once completed, press 'Ok' to continue.
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-../*.dsc usr/src/mysql/
-../*.tar.gz usr/src/mysql/
-../*.tar.xz usr/src/mysql/
-# legal
-usr/share/doc/mysql-community-source/COPYING
-usr/share/doc/mysql-community-source/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/LICENSE.mysql
-mysql-community-source: extra-license-file usr/share/doc/mysql-community-source/COPYING.gz
-mysql-community-source: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/*
-usr/share/man/man1/mysql-test-run.pl.1
-# legal
-usr/share/doc/mysql-community-test/COPYING
-usr/share/doc/mysql-community-test/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mysql-test-run
-usr/lib/mysql-test/mysql-test-run.pl usr/lib/mysql-test/mtr
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/LICENSE.mysql
-mysql-community-test: extra-license-file usr/share/doc/mysql-community-test/COPYING.gz
-mysql-community-test: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-server/COPYING
-usr/share/doc/mysql-server/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql
-mysql-server: extra-license-file usr/share/doc/mysql-server/COPYING.gz
-mysql-server: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# legal
-usr/share/doc/mysql-testsuite/COPYING
-usr/share/doc/mysql-testsuite/README
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Additional license file is needed so overriding this warning
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql
-mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/COPYING.gz
-mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Fix path in man page link.
-Bug: http://bugs.mysql.com/bug.php?id=70952
-
---- a/man/mysql_client_test_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysql_client_test_embedded.1 2013-11-14 19:29:56.768315219 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysql_client_test.1
-+.so man1/mysql_client_test.1
---- a/man/mysqltest_embedded.1 2013-11-08 19:00:22.000000000 +0530
-+++ b/man/mysqltest_embedded.1 2013-11-14 19:31:19.079280675 +0530
-@@ -1 +1 @@
--.so man-gpl-tmp2/mysqltest.1
-+.so man1/mysqltest.1
+++ /dev/null
-From: Akhil Mohan <akhil.mohan@oracle.com>
-Description: Adding extra search path for testsuite.
-
---- a/mysql-test/lib/mtr_cases.pm 2014-02-24 13:14:37 +0530
-+++ b/mysql-test/lib/mtr_cases.pm 2014-07-02 11:46:24 +0530
-@@ -288,6 +288,7 @@
- {
- $suitedir= my_find_dir($::basedir,
- ["share/mysql-test/suite",
-+ "lib/mysql-test/suite",
- "mysql-test/suite",
- "internal/mysql-test/suite",
- "mysql-test",
+++ /dev/null
-From: Terje Røsten <terje.rosten@oracle.com>
-Description: Maintains the pending --skip-my-cnf option in mainline
-Bug: <TODO>
-
-diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
-index 440a977..7d068fc 100644
---- a/scripts/mysql_install_db.pl.in
-+++ b/scripts/mysql_install_db.pl.in
-@@ -113,6 +113,7 @@ EOF2
- print <<EOF3;
- --rpm For internal use. This option is used by RPM files
- during the MySQL installation process.
-+ Implies --keep-my-cnf option.
- --skip-name-resolve Use IP addresses rather than hostnames when creating
- grant table entries. This option can be useful if
- your DNS does not work.
-@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
- {
- error($opt,"Specify either --basedir or --srcdir, not both");
- }
--if ( $opt->{'keep-my-cnf'} )
-+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
- {
- $keep_my_cnf = 1;
- }
-@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
- }
-
- # ----------------------------------------------------------------------
--# Create database directories mysql & test
-+# Create database directory mysql
- # ----------------------------------------------------------------------
-
- # FIXME The shell variant uses "mkdir -p":
-@@ -697,7 +698,7 @@ if ($opt_user)
- }
- }
-
--foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
-+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
- {
- mkdir($dir, 0700) unless -d $dir;
- if ($opt_user and -w "/")
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-#fix-man-page-links.patch
-fix-mysql_install_db.patch
-fix-mtr-search-paths.patch
+++ /dev/null
-#!/usr/bin/make -f
-
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-%:
- dh $@
-
-export DH_VERBOSE=1
-export CFLAGS=
-export CXXFLAGS=
-
-override_dh_auto_configure:
- @echo "RULES.$@"
- cmake . \
- -DBUILD_CONFIG=mysql_release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_DOCDIR=share/mysql/docs \
- -DINSTALL_DOCREADMEDIR=share/mysql \
- -DINSTALL_INCLUDEDIR=include/mysql \
- -DINSTALL_INFODIR=share/mysql/docs \
- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
- -DINSTALL_MANDIR=share/man \
- -DINSTALL_MYSQLSHAREDIR=share/mysql \
- -DINSTALL_MYSQLTESTDIR=lib/mysql-test \
- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
- -DINSTALL_SBINDIR=sbin \
- -DINSTALL_SCRIPTDIR=bin \
- -DINSTALL_SQLBENCHDIR=lib/mysql \
- -DINSTALL_SUPPORTFILESDIR=share/mysql \
- -DMYSQL_DATADIR=/var/lib/mysql \
- -DSYSCONFDIR=/etc/mysql \
- -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
- -DWITH_SSL=bundled \
- -DWITH_ZLIB=system \
- -DWITH_EXTRA_CHARSETS=all \
- -DWITH_INNODB_MEMCACHED=1 \
- -DCOMPILATION_COMMENT="MySQL Community Server (GPL)" \
- -DINSTALL_LAYOUT=DEB
-
- cat CMakeCache.txt
- touch $@
-
-override_dh_auto_build:
- @echo "RULES.$@"
- $(MAKE) -j8 VERBOSE=1
- touch $@
-
-override_dh_auto_test:
- @echo "RULES.$@"
- echo "No tests run because test 9: pfs_connect_attr is failing unreasonably"
- touch $@
-
-override_dh_auto_install:
-
- @echo "RULES.$@"
- # complete install first
- $(MAKE) install DESTDIR=debian/tmp
- # remove all redundant files and links
- rm debian/tmp/usr/lib/*/*_r*
- rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
- rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
- rm debian/tmp/usr/lib/mysql-test/Makefile
- # add missing man pages
- install -g root -o root -m 0644 debian/extra/mysql_embedded.1 debian/tmp/usr/share/man/man1
- # add MySQL Server debug binary and library to package
- install -g root -o root -m 0755 debian/extra/server-binary debian/tmp/usr/sbin/mysqld-debug
- install -g root -o root -m 0755 debian/extra/embedded-server debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqld-debug.a
- # add debug plugin libraries to package
- install -g root -o root -m 0755 -d debian/tmp/usr/lib/mysql/plugin/debug
- for file in debian/extra/*-plugin; do NEW=`echo $$file | cut -d- -f1`; mv $$file $$NEW.so; done
- install -g root -o root -m 0755 debian/extra/*.so debian/tmp/usr/lib/mysql/plugin/debug
- install -g root -o root -m 0755 debian/extra/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug
- # add apparmor profile
- install -g root -o root -m 0644 -D debian/extra/apparmor-profile debian/tmp/etc/apparmor.d/usr.sbin.mysqld
- # add systemd script
- install -m 0755 debian/extra/mysql-systemd-start debian/tmp/usr/share/mysql/
- # add directory for legal docs
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-server
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-client
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-common
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient18
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqlclient-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/libmysqld-dev
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-bench
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-testsuite
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-test
- install -g root -o root -m 0755 -d debian/tmp/usr/share/doc/mysql-community-source
- # add COPYING file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-server/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-client/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-common/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient18/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqlclient-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/libmysqld-dev/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-bench/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-testsuite/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-test/COPYING
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/COPYING debian/tmp/usr/share/doc/mysql-community-source/COPYING
- # add README file to each package
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-server/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-client/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-common/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient18/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqlclient-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/libmysqld-dev/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-bench/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-testsuite/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-test/README
- install -g root -o root -m 0644 debian/tmp/usr/share/mysql/README debian/tmp/usr/share/doc/mysql-community-source/README
- touch $@
-
-override_dh_installinit:
- @echo "RULES.$@"
- dh_apparmor -pmysql-community-server --profile-name=usr.sbin.mysqld
- dh_systemd_enable --name=mysql
- dh_installinit --name=mysql -- defaults 19 21
- dh_systemd_start --restart-after-upgrade
- touch $@
+++ /dev/null
-3.0 (quilt)
+++ /dev/null
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-# obscured filename for mysqld-debug, libmysqld-debug.a and debug plugins
-debian/extra/server-binary
-debian/extra/embedded-server
-debian/extra/adt_null-plugin
-debian/extra/auth-plugin
-debian/extra/auth_socket-plugin
-debian/extra/auth_test_plugin-plugin
-debian/extra/innodb_engine-plugin
-debian/extra/libdaemon_example-plugin
-debian/extra/libmemcached-plugin
-debian/extra/mypluglib-plugin
-debian/extra/mysql_no_login-plugin
-debian/extra/qa_auth_client-plugin
-debian/extra/qa_auth_interface-plugin
-debian/extra/qa_auth_server-plugin
-debian/extra/semisync_master-plugin
-debian/extra/semisync_slave-plugin
-debian/extra/test_udf_services-plugin
-debian/extra/validate_password-plugin
+++ /dev/null
-version=3
-http://mysql.mirrors.pair.com/Downloads/MySQL-5.6/mysql-([\d\.]+).tar.gz
# For advice on how to change settings please see
-# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
+# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
#
-DCMAKE_CXX_FLAGS="$optflags" \
-DWITH_INNODB_MEMCACHED=1 \
-DINSTALL_LIBDIR="%{_lib}/mysql" \
- -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
+ -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin/debug" \
-DINSTALL_SQLBENCHDIR=share \
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
-DFEATURE_SET="%{feature_set}" \
rm -rf %{buildroot}%{_bindir}/mysql_setpermission
rm -rf %{buildroot}%{_mandir}/man1/mysql_setpermission.1*
+# Remove obsoleted man pages
+rm -f %{buildroot}%{_mandir}/man1/mysql-stress-test.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql-test-run.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test_embedded.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest_embedded.1
+
%check
%if 0%{?runselftest}
pushd release
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-stress-test.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-test-run.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test_embedded.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest_embedded.1*
-
%files bench
%defattr(-, root, root, -)
%doc %{?license_files_server}
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so
%changelog
+* Tue Oct 31 2017 Bjorn Munch <bjorn.munch@oracle.com> - 5.6.39-1
+- Remove obsoleted mysqltest man pages
+
* Mon Oct 31 2016 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.35-1
- Add connection_control.so to server subpackage
-# Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-DCMAKE_CXX_FLAGS="$optflags" \
-DWITH_INNODB_MEMCACHED=1 \
-DINSTALL_LIBDIR="%{_lib}/mysql" \
- -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
+ -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin/debug" \
-DINSTALL_SQLBENCHDIR=share \
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
-DFEATURE_SET="%{feature_set}" \
rm -rf %{buildroot}%{_bindir}/mysql_setpermission
rm -rf %{buildroot}%{_mandir}/man1/mysql_setpermission.1*
+# Remove obsoleted man pages
+rm -f %{buildroot}%{_mandir}/man1/mysql-stress-test.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql-test-run.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test_embedded.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest_embedded.1
+
%check
%if 0%{?runselftest}
pushd release
%attr(644, root, root) %{_mandir}/man1/mysqlhotcopy.1*
%attr(644, root, root) %{_mandir}/man1/mysqlman.1*
%attr(644, root, root) %{_mandir}/man1/mysql.server.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest.1*
%attr(644, root, root) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
%attr(644, root, root) %{_mandir}/man1/mysql_zap.1*
%attr(644, root, root) %{_mandir}/man1/mysqlbug.1*
%doc %{?license_files_server}
%attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test
-%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
-%attr(755, root, root) %{_bindir}/mysqltest_embedded
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-stress-test.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-test-run.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test_embedded.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest_embedded.1*
%files bench
%defattr(-, root, root, -)
%endif
%changelog
+* Tue Oct 31 2017 Bjorn Munch <bjorn.munch@oracle.com> - 5.6.39-1
+- Remove obsoleted mysqltest man pages
+
* Mon Oct 31 2016 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.35-1
- Add connection_control.so to server subpackage
-# Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-DCMAKE_CXX_FLAGS="$optflags" \
-DWITH_INNODB_MEMCACHED=1 \
-DINSTALL_LIBDIR="%{_lib}/mysql" \
- -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
+ -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin/debug" \
-DINSTALL_SQLBENCHDIR=share \
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
-DFEATURE_SET="%{feature_set}" \
rm -rf %{buildroot}%{_mandir}/man1/mysql_setpermission.1*
rm -f %{buildroot}%{_datadir}/mysql/win_install_firewall.sql
+# Remove obsoleted man pages
+rm -f %{buildroot}%{_mandir}/man1/mysql-stress-test.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql-test-run.pl.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test.1
+rm -f %{buildroot}%{_mandir}/man1/mysql_client_test_embedded.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest.1
+rm -f %{buildroot}%{_mandir}/man1/mysqltest_embedded.1
+
# rcmysql symlink
install -d %{buildroot}%{_sbindir}
%if 0%{?systemd}
%attr(644, root, root) %{_mandir}/man1/mysqlhotcopy.1*
%attr(644, root, root) %{_mandir}/man1/mysqlman.1*
%attr(644, root, root) %{_mandir}/man1/mysql.server.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest.1*
%attr(644, root, root) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
%attr(644, root, root) %{_mandir}/man1/mysql_zap.1*
%attr(644, root, root) %{_mandir}/man1/mysqlbug.1*
%doc %{?license_files_server}
%attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test
-%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
%attr(755, root, root) %{_bindir}/mysqltest
-%attr(755, root, root) %{_bindir}/mysqltest_embedded
%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
%attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-stress-test.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql-test-run.pl.1*
-%attr(644, root, root) %{_mandir}/man1/mysql_client_test_embedded.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest.1*
-%attr(644, root, root) %{_mandir}/man1/mysqltest_embedded.1*
-
%files bench
%defattr(-, root, root, -)
%doc %{?license_files_server}
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so
%changelog
+* Tue Oct 31 2017 Bjorn Munch <bjorn.munch@oracle.com> - 5.6.39-1
+- Remove obsoleted mysqltest man pages
+
* Mon Oct 31 2016 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.35-1
- Add connection_control.so to server subpackage
/* Copyright (C) 2007 Google Inc.
- Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
entry->n_waiters++;
wait_result= mysql_cond_timedwait(&entry->cond, &LOCK_binlog_, &abstime);
entry->n_waiters--;
- rpl_semi_sync_master_wait_sessions--;
+ /*
+ After we release LOCK_binlog_ above while waiting for the condition,
+ it can happen that some other parallel client session executed
+ RESET MASTER. That can set rpl_semi_sync_master_wait_sessions to zero.
+ Hence check the value before decrementing it and decrement it only if it is
+ non-zero value.
+ */
+ if (rpl_semi_sync_master_wait_sessions > 0)
+ rpl_semi_sync_master_wait_sessions--;
if (wait_result != 0)
{
-# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
${WSREP_INCLUDES}
)
+SET(CONF_SOURCES
+ ${CMAKE_CURRENT_BINARY_DIR}/sql_builtin.cc
+)
SET(GEN_SOURCES
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.h
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc
- ${CMAKE_CURRENT_BINARY_DIR}/sql_builtin.cc
${CMAKE_CURRENT_BINARY_DIR}/lex_hash.h
)
SET(GEN_DIGEST_SOURCES
)
SET_SOURCE_FILES_PROPERTIES(${GEN_SOURCES}
+ ${CONF_SOURCES}
${GEN_DIGEST_SOURCES}
PROPERTIES GENERATED 1)
SET(SQL_SOURCE
${WSREP_SOURCES}
${GEN_SOURCES}
+ ${CONF_SOURCES}
${GEN_DIGEST_SOURCES}
${MYSYS_LIBWRAP_SOURCE}
${SQL_SHARED_SOURCES}
make_truncated_value_warning(thd, level, val, ts_type, field_name);
}
-bool Field::is_part_of_actual_key(THD *thd, uint cur_index)
+bool Field::is_part_of_actual_key(THD *thd, uint cur_index, KEY *cur_index_info)
{
- return thd->optimizer_switch_flag(OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS) ?
+ return
+ thd->optimizer_switch_flag(OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS) &&
+ !(cur_index_info->flags & HA_NOSAME) ?
part_of_key.is_set(cur_index) :
part_of_key_not_extended.is_set(cur_index);
}
#ifndef FIELD_INCLUDED
#define FIELD_INCLUDED
-/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/**
Check whether field is part of the index taking the index extensions flag
- into account.
+ into account. Index extensions are also not applicable to UNIQUE indexes
+ for loose index scans.
@param[in] thd THD object
@param[in] cur_index Index of the key
+ @param[in] cur_index_info key_info object
@retval true Field is part of the key
@retval false otherwise
*/
- bool is_part_of_actual_key(THD *thd, uint cur_index);
+ bool is_part_of_actual_key(THD *thd, uint cur_index, KEY *cur_index_info);
friend int cre_myisam(char * name, register TABLE *form, uint options,
ulonglong auto_increment_value);
-/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. reserved.
reserved.
This program is free software; you can redistribute it and/or modify
#ifndef DBUG_OFF
inline void dbug_print() const;
#endif
+ Info(): x(0), y(0) {}
};
Gcalc_heap(size_t blk_size=8192) :
-/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
else
{
+ if (cur_shape == Gcalc_function::shape_point)
+ {
+ DBUG_RETURN(1);
+ }
+
DBUG_ASSERT(cur_shape != Gcalc_function::shape_point);
if (cur_shape == Gcalc_function::shape_hole ||
cur_shape == Gcalc_function::shape_polygon)
{
DBUG_ENTER("Gcalc_operation_reducer::get_polygon_result");
res_point *glue= cur->glue;
- glue->up->down= NULL;
- free_result(glue);
+ if(glue)
+ {
+ if(glue->up)
+ glue->up->down= NULL;
+ free_result(glue);
+ cur->glue= NULL;
+ }
DBUG_RETURN(get_result_thread(cur, storage, 1) ||
storage->complete_shape());
}
DBUG_ENTER("Gcalc_operation_reducer::get_result");
Dynamic_array<Gcalc_result_receiver::chunk_info> chunks;
bool polygons_found= false;
+ int counter= 0;
*m_res_hook= NULL;
while (m_result)
{
+ /**
+ Handle cyclic graph scenario. This can occur due to invalid input
+ geometry. Ideally the comparison should be with length of the string.
+ We have choosen an arbitory number suitable for practical usecase's
+ due to the complexity involved in checking with the length.
+ */
+ counter++;
+ if (counter > 10000)
+ DBUG_RETURN(1);
+
Gcalc_function::shape_type shape;
Gcalc_result_receiver::chunk_info chunk;
-/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#endif
};
- Gcalc_result_receiver() : collection_result(FALSE), n_shapes(0), n_holes(0)
+ Gcalc_result_receiver() : n_points(0), collection_result(FALSE), n_shapes(0),
+ n_holes(0), prev_x(0), prev_y(0), shape_area(0)
{}
int start_shape(Gcalc_function::shape_type shape);
int add_point(double x, double y);
bool intersection_point)
{
res_point *result= (res_point *) new_item();
+ result->up= result->down= result->glue= NULL;
+ result->set_outer_poly(NULL);
+ result->pi= NULL;
+ result->first_poly_node= NULL;
*m_res_hook= result;
result->prev_hook= m_res_hook;
m_res_hook= &result->next;
result->pi= pi;
result->intersection_point= intersection_point;
+ result->x= 0;
+ result->y= 0;
return result;
}
int ha_partition::create(const char *name, TABLE *table_arg,
HA_CREATE_INFO *create_info)
{
- int error;
+ int error= 0;
char name_buff[FN_REFLEN + 1], name_lc_buff[FN_REFLEN + 1];
char *name_buffer_ptr;
const char *path;
}
m_start_key.length= 0;
m_rec0= table->record[0];
- m_rec_length= table_share->reclength;
+ legacy_db_type db_type = ha_legacy_type(m_part_info->default_engine_type);
+ if(db_type == DB_TYPE_HEAP)
+ {
+ m_rec_length= table_share->rec_buff_length;
+ }
+ else {
+ m_rec_length= table_share->rec_buff_length;
+ }
+ DBUG_ASSERT(db_type != DB_TYPE_UNKNOWN);
+
if (!m_part_ids_sorted_by_num_of_records)
{
if (!(m_part_ids_sorted_by_num_of_records=
int ha_partition::index_last(uchar * buf)
{
DBUG_ENTER("ha_partition::index_last");
-
+ int error = HA_ERR_END_OF_FILE;
+ uint part_id = bitmap_get_first_set(&(m_part_info->read_partitions));
+ if (part_id == MY_BIT_NONE)
+ {
+ /* No partition to scan. */
+ DBUG_RETURN(error);
+ }
m_index_scan_type= partition_index_last;
DBUG_RETURN(common_first_last(buf));
+
}
/*
}
}
-
-/**
- Find a Item reference in a item list
-
- @param[in] item The Item to search for.
- @param[in] list Item list.
-
- @retval true found
- @retval false otherwise
-*/
-
-static bool find_item_in_item_list (Item *item, List<Item> *list)
-{
- List_iterator<Item> li(*list);
- Item *it= NULL;
- while ((it= li++))
- {
- if (it->walk(&Item::find_item_processor, true,
- (uchar*)item))
- return true;
- }
- return false;
-}
-
-
/**
Search a GROUP BY clause for a field with a certain name.
bool Item_insert_value::eq(const Item *item, bool binary_cmp) const
{
return item->type() == INSERT_VALUE_ITEM &&
- ((Item_default_value *)item)->arg->eq(arg, binary_cmp);
+ ((Item_insert_value *)item)->arg->eq(arg, binary_cmp);
}
Item_field *field_arg= (Item_field *)arg;
if (field_arg->field->table->insert_values &&
- find_item_in_item_list(this, &thd->lex->value_list))
+ thd->lex->in_update_value_clause)
{
Field *def_field= field_arg->field->clone();
if (!def_field)
{
return Item_field::save_in_field(field_arg, no_conversions);
}
+
+ enum Type type() const { return INSERT_VALUE_ITEM; }
/*
We use RAND_TABLE_BIT to prevent Item_insert_value from
being treated as a constant and precalculated before execution
size_t input_len;
uint digest_length= 0;
+ input_string= args[0]->val_str(str);
str->set_charset(&my_charset_bin);
- input_string= args[0]->val_str(str);
if (input_string == NULL)
{
null_value= TRUE;
#if defined(HAVE_OPENSSL)
if (old_passwords == 2)
{
+ if (str->length() > MAX_PLAINTEXT_LENGTH)
+ {
+ my_error(ER_NOT_VALID_PASSWORD, MYF(0));
+ return 0;
+ }
my_make_scrambled_password(buffer, str->ptr(),
str->length());
buffer_len= (int) strlen(buffer) + 1;
#if defined(HAVE_OPENSSL)
else
{
- /* Allocate memory for the password scramble and one extra byte for \0 */
- buff= (char *) thd->alloc(CRYPT_MAX_PASSWORD_SIZE + 1);
- my_make_scrambled_password(buff, password, pass_len);
+ if (pass_len <= MAX_PLAINTEXT_LENGTH)
+ {
+ /* Allocate memory for the password scramble and one extra byte for \0 */
+ buff= (char *) thd->alloc(CRYPT_MAX_PASSWORD_SIZE + 1);
+ my_make_scrambled_password(buff, password, pass_len);
+ }
+ else
+ my_error(ER_NOT_VALID_PASSWORD, MYF(0));
}
#endif
return buff;
thd->db, thd->db_length,
thd->charset());
THD_STAGE_INFO(thd, stage_init);
- MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi, thd->query(), thd->query_length());
if (thd->m_digest != NULL)
thd->m_digest->reset(thd->m_token_array, max_digest_length);
/* create an empty entry to add to the hash table */
HASH_ROW_ENTRY* entry= m_hash.make_entry();
-
+ if (entry == NULL)
+ {
+ error= 1;
+ goto end;
+ }
/* Prepare the record, unpack and save positions. */
entry->positions->bi_start= m_curr_row; // save the bi start pos
prepare_record(m_table, &m_cols, false);
mysql_mutex_t LOCK_wsrep_slave_threads;
mysql_mutex_t LOCK_wsrep_desync;
int wsrep_replaying= 0;
+ulong wsrep_running_threads = 0; // # of currently running wsrep threads
static void wsrep_close_threads(THD* thd);
+int mysqld_server_initialized= 0;
#endif /* WITH_WSREP */
int mysqld_server_started= 0;
}
#endif
#ifdef WITH_WSREP
- if (WSREP_ON) wsrep_stop_replication(NULL);
+ /* Stop wsrep threads in case they are running. */
+ if (wsrep_running_threads > 0)
+ {
+ wsrep_stop_replication(NULL);
+ }
#endif
close_connections();
after SST has happened
*/
}
+
+ /* It's now safe to use thread specific memory */
+ mysqld_server_initialized= 1;
+
if (!wsrep_recovery)
{
if (opt_bootstrap) // bootsrap option given - disable wsrep functionality
#endif /* EMBEDDED_LIBRARY */
#ifdef WITH_WSREP
-typedef void (*wsrep_thd_processor_fun)(THD *);
-
pthread_handler_t start_wsrep_THD(void *arg)
{
THD *thd;
thd->set_time();
thd->init_for_queries();
+ mysql_mutex_lock(&LOCK_thread_count);
+ wsrep_running_threads++;
+ mysql_cond_broadcast(&COND_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
+
mysql_mutex_lock(&LOCK_connection_count);
++connection_count;
mysql_mutex_unlock(&LOCK_connection_count);
close_connection(thd, 0, 1);
+ mysql_mutex_lock(&LOCK_thread_count);
+ wsrep_running_threads--;
+ WSREP_DEBUG("wsrep running threads now: %lu", wsrep_running_threads);
+ mysql_cond_broadcast(&COND_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
+
// Note: We can't call THD destructor without crashing
// if plugins have not been initialized. However, in most of the
// cases this means that pre SE initialization SST failed and
}
#endif
#ifdef WITH_WSREP
+ mysqld_server_initialized= 0;
wsrep_filter_new_cluster (&argc, argv);
#endif /* WITH_WSREP */
int handle_early_options();
void adjust_related_options(ulong *requested_open_files);
extern int mysqld_server_started;
+#ifdef WITH_WSREP
+extern int mysqld_server_initialized;
+#endif /* WITH_WSREP */
extern "C" MYSQL_PLUGIN_IMPORT int orig_argc;
extern "C" MYSQL_PLUGIN_IMPORT char **orig_argv;
extern pthread_attr_t connection_attrib;
#ifdef WITH_WSREP
#include "my_pthread.h"
+typedef void (*wsrep_thd_processor_fun)(THD *);
pthread_handler_t start_wsrep_THD(void*);
#endif /* WITH_WSREP */
part of 'cur_index'
*/
if (bitmap_is_set(table->read_set, cur_field->field_index) &&
- !cur_field->is_part_of_actual_key(thd, cur_index))
+ !cur_field->is_part_of_actual_key(thd, cur_index, cur_index_info))
{
cause= "not_covering";
goto next_index; // Field was not part of key
-/* Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
HASH_ROW_PREAMBLE *preamble= (HASH_ROW_PREAMBLE *) my_malloc(sizeof(HASH_ROW_PREAMBLE), MYF(0));
HASH_ROW_POS *pos= (HASH_ROW_POS *) my_malloc(sizeof(HASH_ROW_POS), MYF(0));
- if (!entry || !preamble || !pos)
+ if (!entry || !preamble || !pos ||
+ DBUG_EVALUATE_IF("fake_myalloc_failure",1, 0))
goto err;
/**
if (entry)
my_free(entry);
if (preamble)
- my_free(entry);
+ my_free(preamble);
if (pos)
my_free(pos);
DBUG_RETURN(NULL);
// sp_lex_instr implementation.
///////////////////////////////////////////////////////////////////////////
+class SP_instr_error_handler : public Internal_error_handler
+{
+public:
+ SP_instr_error_handler()
+ : cts_table_exists_error(false)
+ {}
+
+ virtual bool handle_condition(THD *thd,
+ uint sql_errno,
+ const char*,
+ Sql_condition::enum_warning_level,
+ const char*,
+ Sql_condition **)
+ {
+ /*
+ Check if the "table exists" error or warning reported for the
+ CREATE TABLE ... SELECT statement.
+ */
+ if (thd->lex && thd->lex->sql_command == SQLCOM_CREATE_TABLE &&
+ thd->lex->select_lex.item_list.elements > 0 &&
+ sql_errno == ER_TABLE_EXISTS_ERROR)
+ cts_table_exists_error= true;
+
+ return false;
+ }
+
+ bool cts_table_exists_error;
+};
+
bool sp_lex_instr::reset_lex_and_exec_core(THD *thd,
uint *nextp,
reinit_stmt_before_use(thd, m_lex);
+ SP_instr_error_handler sp_instr_error_handler;
+ thd->push_internal_handler(&sp_instr_error_handler);
+
/* Open tables if needed. */
if (open_tables)
DBUG_PRINT("info",("exec_core returned: %d", rc));
}
+ // Pop SP_instr_error_handler error handler.
+ thd->pop_internal_handler();
+
if (m_lex->query_tables_own_last)
{
/*
See Query_arena->state definition for explanation.
Some special handling of CREATE TABLE .... SELECT in an SP is required. The
- state is always set to STMT_INITIALIZED_FOR_SP in such a case.
+ state is set to STMT_INITIALIZED_FOR_SP even in case of "table exists"
+ error situation.
Why is this necessary? A useful pointer would be to note how
PREPARE/EXECUTE uses functions like select_like_stmt_test to implement
*/
bool reprepare_error=
- rc && thd->get_stmt_da()->sql_errno() == ER_NEED_REPREPARE;
- bool is_create_table_select=
- thd->lex && thd->lex->sql_command == SQLCOM_CREATE_TABLE &&
- thd->lex->select_lex.item_list.elements > 0;
+ rc && thd->is_error() &&
+ thd->get_stmt_da()->sql_errno() == ER_NEED_REPREPARE;
- if (reprepare_error || is_create_table_select)
+ if (reprepare_error || sp_instr_error_handler.cts_table_exists_error)
thd->stmt_arena->state= Query_arena::STMT_INITIALIZED_FOR_SP;
else if (!rc || !thd->is_error() ||
(thd->get_stmt_da()->sql_errno() != ER_CANT_REOPEN_TABLE &&
/*
- Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
while (n_polygons--)
{
- uint32 n_linear_rings;
+ uint32 n_linear_rings= 0;
if (wkb->skip_wkb_header() ||
wkb->scan_non_zero_uint4(&n_linear_rings))
return true;
"$5$BVZy9O>'a+2MH]_?$fpWyabcdiHjfCVqId/quykZzjaA7adpkcen/uiQrtmOK4p4"
#endif
+#if defined(HAVE_OPENSSL)
+#define SHA256_PASSWORD_MAX_PASSWORD_LENGTH MAX_PLAINTEXT_LENGTH
+#endif /* HAVE_OPENSSL */
+
using std::min;
using std::max;
*/
if (user_record->plugin.str == sha256_password_plugin_name.str)
{
+ if (user_record->password.length > SHA256_PASSWORD_MAX_PASSWORD_LENGTH)
+ return 1;
+
char *buff= (char *) thd->alloc(CRYPT_MAX_PASSWORD_SIZE+1);
if (buff == NULL)
return 1;
#endif
} // if(!my_vio_is_encrypter())
+ if (pkt_len > SHA256_PASSWORD_MAX_PASSWORD_LENGTH + 1)
+ DBUG_RETURN(CR_ERROR);
+
/* A password was sent to an account without a password */
if (info->auth_string_length == 0)
DBUG_RETURN(CR_ERROR);
-/* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
case 0:
{
+ if (digest_storage->m_byte_count < SIZE_OF_A_TOKEN)
+ break;
unsigned int temp_tok;
read_token(digest_storage,
digest_storage->m_byte_count-SIZE_OF_A_TOKEN,
/*
- Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
thd->abort_on_warning= saved_abort_on_warning;
}
- if (!res)
+ thd->lex->in_update_value_clause= true;
+ if (!res)
res= setup_fields(thd, Ref_ptr_array(),
update_values, MARK_COLUMNS_READ, 0, 0);
+ thd->lex->in_update_value_clause= false;
+
if (!res && duplic == DUP_UPDATE)
{
select_lex->no_wrap_view_item= TRUE;
We must make a single context out of the two separate name resolution
contexts:
the INSERT table and the tables in the SELECT part of INSERT ... SELECT.
- To do that we must concatenate the two lists
+ To do that webcd
+ must concatenate the two lists
*/
table_list->next_name_resolution_table=
ctx_state.get_first_name_resolution_table();
}
+
+ thd->lex->in_update_value_clause= true;
res= res || setup_fields(thd, Ref_ptr_array(), *update.update_values,
MARK_COLUMNS_READ, 0, 0);
+
+ thd->lex->in_update_value_clause= false;
if (!res)
{
/*
/*
- Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
LEX::LEX()
:result(0), option_type(OPT_DEFAULT), is_change_password(false),
- is_set_password_sql(false), is_lex_started(0)
+ is_set_password_sql(false), is_lex_started(0),in_update_value_clause(false)
{
my_init_dynamic_array2(&plugins, sizeof(plugin_ref),
bool escape_used;
bool is_lex_started; /* If lex_start() did run. For debugging. */
+ /// Set to true while resolving values in ON DUPLICATE KEY UPDATE clause
+ bool in_update_value_clause;
/*
The set of those tables whose fields are referenced in all subqueries
{
table_map depend_map;
order->item[0]->update_used_tables();
- order->depend_map=depend_map=order->item[0]->used_tables();
+ order->depend_map= depend_map=
+ order->item[0]->used_tables() & ~PARAM_TABLE_BIT;
order->used= 0;
// Not item_sum(), RAND() and no reference to table outside of sub select
if (!(order->depend_map & (OUTER_REF_TABLE_BIT | RAND_TABLE_BIT))
DBUG_RETURN(0);
map|=a->item[0]->used_tables();
}
+ map&= ~PARAM_TABLE_BIT;
if (!map || (map & (RAND_TABLE_BIT | OUTER_REF_TABLE_BIT)))
DBUG_RETURN(0);
thd->profiling.set_query_source(thd->query(), thd->query_length());
#endif
- MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi, thd->query(), thd->query_length());
-
Parser_state parser_state;
if (parser_state.init(thd, thd->query(), thd->query_length()))
break;
thd->db, thd->db_length,
thd->charset());
THD_STAGE_INFO(thd, stage_init);
- MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi, beginning_of_next_stmt, length);
thd->set_query_and_id(beginning_of_next_stmt, length,
thd->charset(), next_query_id());
/**
Checks foreign key's parent table access.
- @param thd [in] Thread handler
- @param create_info [in] Create information (like MAX_ROWS, ENGINE or
+ @param thd [in] Thread handler
+ @param child_table_db [in] Database of child table
+ @param create_info [in] Create information (like MAX_ROWS, ENGINE or
temporary table flag)
- @param alter_info [in] Initial list of columns and indexes for the
+ @param alter_info [in] Initial list of columns and indexes for the
table to be created
@retval
true error or access denied. Error is sent to client in this case.
*/
bool check_fk_parent_table_access(THD *thd,
+ const char *child_table_db,
HA_CREATE_INFO *create_info,
Alter_info *alter_info)
{
if (fk_key->ref_db.str && check_and_convert_db_name(&db_name, false))
return true;
}
- else if (thd->lex->copy_db_to(&db_name.str, &db_name.length))
- return true;
else
+ {
+ /*
+ If database name for parent table is not specified explicitly
+ SEs assume that it is the same as database name of child table.
+ We do the same here.
+ */
is_qualified_table_name= false;
+ db_name.str= const_cast<char*>(child_table_db);
+ db_name.length= strlen(child_table_db);
+ }
// if lower_case_table_names is set then convert tablename to lower case.
if (lower_case_table_names)
if (!err)
{
/*
- See whether we can do any query rewriting. opt_log_raw only controls
- writing to the general log, so rewriting still needs to happen because
- the other logs (binlog, slow query log, ...) can not be set to raw mode
- for security reasons.
+ Rewrite the query for logging and for the Performance Schema statement
+ tables. Raw logging happened earlier.
+
Query-cache only handles SELECT, which we don't rewrite, so it's no
concern of ours.
- We're not general-logging if we're the slave, or if we've already
- done raw-logging earlier.
+
Sub-routines of mysql_rewrite_query() should try to only rewrite when
necessary (e.g. not do password obfuscation when query contains no
- password), but we can optimize out even those necessary rewrites when
- no logging happens at all. If rewriting does not happen here,
- thd->rewritten_query is still empty from being reset in alloc_query().
+ password).
+
+ If rewriting does not happen here, thd->rewritten_query is still empty
+ from being reset in alloc_query().
*/
- if (!(opt_log_raw || thd->slave_thread) || opt_slow_log || opt_bin_log)
+ mysql_rewrite_query(thd);
+
+ if (thd->rewritten_query.length())
{
- mysql_rewrite_query(thd);
+ lex->safe_to_cache_query= false; // see comments below
- if (thd->rewritten_query.length())
- lex->safe_to_cache_query= false; // see comments below
+ MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi,
+ thd->rewritten_query.c_ptr_safe(),
+ thd->rewritten_query.length());
+ }
+ else
+ {
+ MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi,
+ thd->query(),
+ thd->query_length());
}
if (!(opt_log_raw || thd->slave_thread))
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if (mqh_used && thd->get_user_connect() &&
- check_mqh(thd, lex->sql_command))
+ check_mqh(thd, lex->sql_command))
{
- thd->net.error = 0;
+ thd->net.error = 0;
}
else
#endif
{
- if (! thd->is_error())
- {
+ if (! thd->is_error())
+ {
/*
Binlog logs a string starting from thd->query and having length
thd->query_length; so we set thd->query_length correctly (to not
error= gtid_empty_group_log_and_cleanup(thd);
}
MYSQL_QUERY_EXEC_DONE(error);
- }
+ }
}
}
else
{
+ /*
+ Log the failed raw query in the Performance Schema. This statement did not
+ parse, so there is no way to tell if it may contain a password of not.
+
+ The tradeoff is:
+ a) If we do log the query, a user typing by accident a broken query
+ containing a password will have the password exposed. This is very
+ unlikely, and this behavior can be documented. Remediation is to use
+ a new password when retyping the corrected query.
+
+ b) If we do not log the query, finding broken queries in the client
+ application will be much more difficult. This is much more likely.
+
+ Considering that broken queries can typically be generated by attempts at
+ SQL injection, finding the source of the SQL injection is critical, so the
+ design choice is to log the query text of broken queries (a).
+ */
+ MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi,
+ thd->query(),
+ thd->query_length());
+
/* Instrument this broken statement as "statement/sql/error" */
thd->m_statement_psi= MYSQL_REFINE_STATEMENT(thd->m_statement_psi,
sql_statement_info[SQLCOM_END].m_key);
DBUG_ASSERT(thd->is_error());
DBUG_PRINT("info",("Command aborted. Fatal_error: %d",
- thd->is_fatal_error));
+ thd->is_fatal_error));
query_cache_abort(&thd->query_cache_tls);
}
goto err;
}
- if (check_fk_parent_table_access(thd, &lex->create_info, &lex->alter_info))
+ if (check_fk_parent_table_access(thd, create_table->db,
+ &lex->create_info, &lex->alter_info))
goto err;
error= FALSE;
-/* Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
bool create_table_precheck(THD *thd, TABLE_LIST *tables,
TABLE_LIST *create_table);
bool check_fk_parent_table_access(THD *thd,
+ const char *child_table_db,
HA_CREATE_INFO *create_info,
Alter_info *alter_info);
-/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
JOIN_TAB *const tab= join->join_tab + i;
if (!tab->table || !tab->table->pos_in_table_list)
- break;
+ continue;
TABLE_LIST *table_list= tab->table->pos_in_table_list;
if (table_list->schema_table && thd->fill_information_schema_tables())
/*
- Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
till this point for the alter operation.
*/
if ((alter_info->flags & Alter_info::ADD_FOREIGN_KEY) &&
- check_fk_parent_table_access(thd, create_info, alter_info))
+ check_fk_parent_table_access(thd, alter_ctx.new_db,
+ create_info, alter_info))
DBUG_RETURN(true);
/*
/*
- Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void TABLE_LIST::hide_view_error(THD *thd)
{
- if (thd->killed || thd->get_internal_handler())
+ if (thd->killed ||
+ (thd->lex->sql_command == SQLCOM_SHOW_CREATE &&
+ thd->get_internal_handler()))
return;
/* Hide "Unknown column" or "Unknown function" error */
DBUG_ASSERT(thd->is_error());
/*
- Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
keybuff=(uchar*) my_malloc(key_buff_length, MYF(0));
key_info_length= pack_keys(keybuff, keys, key_info, data_offset);
+ /* key_info_length is currently stored in 2 bytes */
+ if (key_info_length > 65535U)
+ {
+ char *real_table_name= (char*) table;
+ List_iterator<Create_field> it(create_fields);
+ Create_field *field;
+ while ((field=it++))
+ {
+ if (field->field && field->field->table &&
+ (real_table_name= field->field->table->s->table_name.str))
+ break;
+ }
+ my_printf_error(ER_UNKNOWN_ERROR,
+ "Index information size for the table %s.%s exceeds the "
+ "maximum limit (Max: 2 bytes). Please recreate indexes "
+ "accordingly.", MYF(0), db, real_table_name);
+ goto err;
+ }
+
/*
Ensure that there are no forms in this newly created form file.
Even if the form file exists, create_frm must truncate it to
extern my_bool wsrep_restart_slave_activated;
extern my_bool wsrep_slave_FK_checks;
extern my_bool wsrep_slave_UK_checks;
+extern ulong wsrep_running_threads;
enum enum_wsrep_reject_types {
WSREP_REJECT_NONE, /* nothing rejected */
DBUG_VOID_RETURN;
}
+static bool create_wsrep_THD(wsrep_thd_processor_fun processor)
+{
+ ulong old_wsrep_running_threads= wsrep_running_threads;
+ pthread_t unused;
+ mysql_mutex_lock(&LOCK_thread_count);
+ bool res= pthread_create(&unused, &connection_attrib, start_wsrep_THD,
+ (void*)processor);
+ /*
+ if starting a thread on server startup, wait until this thread's THD
+ is fully initialized (otherwise a THD initialization code might
+ try to access a partially initialized server data structure - MDEV-8208).
+ (https://jira.mariadb.org/browse/MDEV-8208)
+ */
+ if (!mysqld_server_initialized)
+ while (old_wsrep_running_threads == wsrep_running_threads)
+ mysql_cond_wait(&COND_thread_count, &LOCK_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
+ return res;
+}
+
void wsrep_create_appliers(long threads)
{
if (!wsrep_connected)
}
long wsrep_threads=0;
- pthread_t hThread;
while (wsrep_threads++ < threads) {
- if (pthread_create(
- &hThread, &connection_attrib,
- start_wsrep_THD, (void*)wsrep_replication_process))
+ if (create_wsrep_THD(wsrep_replication_process))
WSREP_WARN("Can't create thread to manage wsrep replication");
}
}
{
if (wsrep_provider && strcasecmp(wsrep_provider, "none"))
{
- pthread_t hThread;
/* create rollbacker */
- if (pthread_create( &hThread, &connection_attrib,
- start_wsrep_THD, (void*)wsrep_rollback_process))
+ if (create_wsrep_THD(wsrep_rollback_process))
WSREP_WARN("Can't create thread to manage wsrep rollback");
}
}
const char* wsrep_start_position = 0;
ulong wsrep_reject_queries;
-static long wsrep_prev_slave_threads = wsrep_slave_threads;
-
int wsrep_init_vars()
{
wsrep_provider = my_strdup(WSREP_NONE, MYF(MY_WME));
static void wsrep_slave_count_change_update ()
{
- wsrep_slave_count_change += (wsrep_slave_threads - wsrep_prev_slave_threads);
- wsrep_prev_slave_threads = wsrep_slave_threads;
+ // wsrep_running_threads = appliers threads + 1 rollbacker thread
+ wsrep_slave_count_change = (wsrep_slave_threads - wsrep_running_threads + 1);
}
bool wsrep_slave_threads_update (sys_var *self, THD* thd, enum_var_type type)
-# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
DEFAULT
MODULE_OUTPUT_NAME ha_innodb
LINK_LIBRARIES ${ZLIB_LIBRARY})
+
+ADD_DEPENDENCIES(innobase GenError)
/*****************************************************************************
-Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
This program is free software; you can redistribute it and/or modify it under
indexes after an aborted online
index creation */
{
+
+ ibool drop_aborted;
if (!dict_locked) {
mutex_enter(&dict_sys->mutex);
}
ut_ad(mutex_own(&dict_sys->mutex));
ut_a(table->n_ref_count > 0);
+ drop_aborted = try_drop
+ && table->drop_aborted
+ && table->n_ref_count == 1
+ && dict_table_get_first_index(table);
+
--table->n_ref_count;
/* Force persistent stats re-read upon next open of the table
if (!dict_locked) {
table_id_t table_id = table->id;
- ibool drop_aborted;
-
- drop_aborted = try_drop
- && table->drop_aborted
- && table->n_ref_count == 1
- && dict_table_get_first_index(table);
mutex_exit(&dict_sys->mutex);
foreign->referenced_index = NULL;
}
+ /* The check for dropped index should happen before we release
+ all the indexes */
+
+ if (lru_evict && table->drop_aborted) {
+ /* Do as dict_table_try_drop_aborted() does. */
+
+ trx_t* trx = trx_allocate_for_background();
+
+ ut_ad(mutex_own(&dict_sys->mutex));
+#ifdef UNIV_SYNC_DEBUG
+ ut_ad(rw_lock_own(&dict_operation_lock, RW_LOCK_EX));
+#endif /* UNIV_SYNC_DEBUG */
+ /* Mimic row_mysql_lock_data_dictionary(). */
+ trx->dict_operation_lock_mode = RW_X_LATCH;
+
+ trx_set_dict_operation(trx, TRX_DICT_OP_INDEX);
+
+ /* Silence a debug assertion in row_merge_drop_indexes(). */
+ ut_d(table->n_ref_count++);
+ row_merge_drop_indexes(trx, table, TRUE);
+ ut_d(table->n_ref_count--);
+ ut_ad(table->n_ref_count == 0);
+ trx_commit_for_mysql(trx);
+ trx->dict_operation_lock_mode = 0;
+ trx_free_for_background(trx);
+ }
+
/* Remove the indexes from the cache */
for (index = UT_LIST_GET_LAST(table->indexes);
dict_table_autoinc_store(table);
}
- if (lru_evict && table->drop_aborted) {
- /* Do as dict_table_try_drop_aborted() does. */
-
- trx_t* trx = trx_allocate_for_background();
-
- ut_ad(mutex_own(&dict_sys->mutex));
-#ifdef UNIV_SYNC_DEBUG
- ut_ad(rw_lock_own(&dict_operation_lock, RW_LOCK_EX));
-#endif /* UNIV_SYNC_DEBUG */
- /* Mimic row_mysql_lock_data_dictionary(). */
- trx->dict_operation_lock_mode = RW_X_LATCH;
-
- trx_set_dict_operation(trx, TRX_DICT_OP_INDEX);
-
- /* Silence a debug assertion in row_merge_drop_indexes(). */
- ut_d(table->n_ref_count++);
- row_merge_drop_indexes(trx, table, TRUE);
- ut_d(table->n_ref_count--);
- ut_ad(table->n_ref_count == 0);
- trx_commit_for_mysql(trx);
- trx->dict_operation_lock_mode = 0;
- trx_free_for_background(trx);
- }
-
size = mem_heap_get_size(table->heap) + strlen(table->name) + 1;
ut_ad(dict_sys->size >= size);
/*****************************************************************************
-Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
This program is free software; you can redistribute it and/or modify it under
char* col_names;
if (to_len > from_len) {
+ ulint table_size_before_rename_col
+ = mem_heap_get_size(table->heap);
col_names = static_cast<char*>(
mem_heap_alloc(
table->heap,
full_len + to_len - from_len));
-
+ ulint table_size_after_rename_col
+ = mem_heap_get_size(table->heap);
+ if (table_size_before_rename_col
+ != table_size_after_rename_col) {
+ dict_sys->size +=
+ table_size_after_rename_col
+ - table_size_before_rename_col;
+ }
memcpy(col_names, table->col_names, prefix_len);
} else {
col_names = const_cast<char*>(table->col_names);
t_str.f_str = static_cast<byte*>(
mem_heap_alloc(heap, t_str.f_len));
- newlen = innobase_fts_casedn_str(
- doc->charset, (char*) str.f_str, str.f_len,
- (char*) t_str.f_str, t_str.f_len);
+ /* For binary collations, a case sensitive search is
+ performed. Hence don't convert to lower case. */
+ if (my_binary_compare(result_doc->charset)) {
+ memcpy(t_str.f_str, str.f_str, str.f_len);
+ t_str.f_str[str.f_len]= 0;
+ newlen= str.f_len;
+ } else {
+ newlen = innobase_fts_casedn_str(
+ doc->charset, (char*) str.f_str, str.f_len,
+ (char*) t_str.f_str, t_str.f_len);
+ }
t_str.f_len = newlen;
t_str.f_str[newlen] = 0;
str_len = query_len * charset->casedn_multiply + 1;
str_ptr = static_cast<byte*>(ut_malloc(str_len));
- *result_len = innobase_fts_casedn_str(
- charset, const_cast<char*>(reinterpret_cast<const char*>(
- query_str)), query_len,
- reinterpret_cast<char*>(str_ptr), str_len);
+ /* For binary collations, a case sensitive search is
+ performed. Hence don't convert to lower case. */
+ if (my_binary_compare(charset)) {
+ memcpy(str_ptr, query_str, query_len);
+ str_ptr[query_len]= 0;
+ *result_len= query_len;
+ } else {
+ *result_len = innobase_fts_casedn_str(
+ charset, const_cast<char*>
+ (reinterpret_cast<const char*>( query_str)),
+ query_len,
+ reinterpret_cast<char*>(str_ptr), str_len);
+ }
ut_ad(*result_len < str_len);
/* Turn on monitor counters that are default on */
srv_mon_default_on();
+#ifndef UNIV_HOTBACKUP
+#ifdef _WIN32
+ if (ut_win_init_time()) {
+ goto mem_free_and_error;
+ }
+#endif /* _WIN32 */
+#endif /* !UNIV_HOTBACKUP */
+
DBUG_RETURN(FALSE);
error:
DBUG_RETURN(TRUE);
/*****************************************************************************
-Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
ulint
ut_time_ms(void);
/*============*/
+#ifdef _WIN32
+/**********************************************************//**
+Initialise highest available time resolution API on Windows
+@return 0 if all OK else -1 */
+int
+ut_win_init_time();
+
+#endif /* _WIN32 */
+
#endif /* !UNIV_HOTBACKUP */
/**********************************************************//**
{
const byte* data;
ulint len;
- ulint clust_field_no;
+ ulint clust_field_no = 0;
bool clust_templ_for_sec = (sec_field_no != ULINT_UNDEFINED);
ut_ad(prebuilt->default_rec);
mutex_exit(&(rseg->mutex));
mtr_commit(&mtr);
+#ifdef UNIV_DEBUG
mutex_enter(&trx_sys->mutex);
/* Add debug code to track history list corruption reported
" InnoDB: Warning: purge reached the"
" head of the history list,\n"
"InnoDB: but its length is still"
- " reported as %lu! Make a detailed bug\n"
- "InnoDB: report, and submit it"
- " to http://bugs.mysql.com\n",
+ " reported as %lu!.\n"
+ "This can happen for multiple reasons\n"
+ "1. A long running transaction is"
+ " withholding purging of undo logs or a read"
+ " view is open. Please try to commit the long"
+ " running transaction.\n"
+ "2. Try increasing the number of purge"
+ " threads to expedite purging of undo logs.",
(ulong) trx_sys->rseg_history_len);
- ut_ad(0);
}
mutex_exit(&trx_sys->mutex);
-
+#endif
return;
}
/*****************************************************************************
-Copyright (c) 1994, 2014, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
UNIV_INTERN ibool ut_always_false = FALSE;
#ifdef __WIN__
+#include <mysql/innodb_priv.h> /* For sql_print_error */
+typedef VOID(WINAPI *time_fn)(LPFILETIME);
+static time_fn ut_get_system_time_as_file_time = GetSystemTimeAsFileTime;
+
/*****************************************************************//**
NOTE: The Windows epoch starts from 1601/01/01 whereas the Unix
epoch starts from 1970/1/1. For selection of constant see:
#define WIN_TO_UNIX_DELTA_USEC ((ib_int64_t) 11644473600000000ULL)
+/**
+Initialise highest available time resolution API on Windows
+@return 0 if all OK else -1 */
+int
+ut_win_init_time()
+{
+ HMODULE h = LoadLibrary("kernel32.dll");
+ if (h != NULL)
+ {
+ time_fn pfn = (time_fn)GetProcAddress(h, "GetSystemTimePreciseAsFileTime");
+ if (pfn != NULL)
+ {
+ ut_get_system_time_as_file_time = pfn;
+ }
+ return false;
+ }
+ DWORD error = GetLastError();
+ sql_print_error(
+ "LoadLibrary(\"kernel32.dll\") failed: GetLastError returns %lu", error);
+ return(-1);
+}
+
/*****************************************************************//**
This is the Windows version of gettimeofday(2).
@return 0 if all OK else -1 */
return(-1);
}
- GetSystemTimeAsFileTime(&ft);
+ ut_get_system_time_as_file_time(&ft);
tm = (ib_int64_t) ft.dwHighDateTime << 32;
tm |= ft.dwLowDateTime;
-/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
share->changed=0;
if (myisam_flush)
{
+ if (share->file_map)
+ my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
if (mysql_file_sync(share->kfile, MYF(0)))
error= my_errno;
if (mysql_file_sync(info->dfile, MYF(0)))
#ifdef _WIN32
if (myisam_flush)
{
+ if (share->file_map)
+ my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
mysql_file_sync(share->kfile, 0);
mysql_file_sync(info->dfile, 0);
}
-# Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Remove man pages we explicitly do not want to package, avoids 'unpackaged
# files' warning.
-# This has become obsolete: rm -f $RBR%%{_mandir}/man1/make_win_bin_dist.1*
+# This has become obsolete: rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
+rm -f $RBR%{_mandir}/man1/mysql-stress-test.pl.1
+rm -f $RBR%{_mandir}/man1/mysql-test-run.pl.1
+rm -f $RBR%{_mandir}/man1/mysql_client_test.1
+rm -f $RBR%{_mandir}/man1/mysql_client_test_embedded.1
+rm -f $RBR%{_mandir}/man1/mysqltest.1
+rm -f $RBR%{_mandir}/man1/mysqltest_embedded.1
%check
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
-%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
%endif
%attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test
-%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
-%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
-%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
-%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
-%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
##############################################################################
# The spec file changelog only includes changes made to the spec file
# merging BK trees)
##############################################################################
%changelog
+* Tue Oct 31 2017 Bjorn Munch <bjorn.munch@oracle.com>
+- Remove obsoleted mysqltest man pages
+
* Fri Jun 10 2016 Joerg Bruehe <joerg.bruehe@fromdual.com>
- Add missing "obsoletes" directives to handle Oracle's yum repository.
- Fix comment about SO version of libmysqlclient.so.