Daniel Black
269f9c948c
mysql_upgrade: fix error text
2020-09-12 09:37:40 +10:00
Vicențiu Ciorbaru
cb248f8806
Merge branch '5.5' into 10.1
2019-05-11 22:19:05 +03:00
Vicențiu Ciorbaru
5543b75550
Update FSF Address
...
* Update wrong zip-code
2019-05-11 21:29:06 +03:00
Sergey Vojtovich
0a534348c7
MDEV-14265 - RPMLint warning: shared-lib-calls-exit
...
Eliminated last exit() call from libmysqld.
2018-03-16 13:26:52 +04:00
Marko Mäkelä
ce07d09fd3
Merge 10.0 into 10.1
2017-12-12 19:28:26 +02:00
Ian Gilfillan
622466644d
mysql_uprade --help and man page fixes
2017-11-22 22:30:32 +08:00
Sergei Golubchik
9e11e055ce
Merge branch '10.0' into 10.1
2017-07-07 11:30:03 +02:00
Sergei Golubchik
4d21313549
coverity medium warnings
2017-07-06 23:46:28 +02:00
Marko Mäkelä
b61700c221
Merge 10.0 into 10.1
2017-05-23 08:59:03 +03:00
Sergei Golubchik
7c03edf2fe
MDEV-6262 analyze the coverity report on mariadb
...
uploaded 10.0, analyzed everything with the Impact=High
(and a couple of Medium)
2017-05-19 20:26:56 +02:00
Sergei Golubchik
e74f2e2b86
Merge branch '10.0' 10.1
2017-04-28 20:19:32 +02:00
Sergei Golubchik
8d75a7533e
Merge branch '5.5' into 10.0
2017-04-21 18:34:06 +02:00
Sergei Golubchik
663068c6ee
Merge remote-tracking branch 'mysql/5.5' into 5.5
2017-04-11 10:18:04 -04:00
Sergei Golubchik
3d06f0f72c
MDEV-11942 BLACKHOLE is no longer active in 10.1 by default, mysql_upgrade not handling the situation
...
fix the patch. add tests
2017-03-10 18:21:25 +01:00
Hartmut Holzgraefe
c372388e48
make mysql_upgrade try to install missing storage engine plugins (MDEV-11942)
2017-03-10 18:21:24 +01:00
Ramil Kalimullin
060b1eadf4
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION
...
MYSQL_OPT_SSL_MODE option introduced.
It is set in case of --ssl-mode=REQUIRED and permits only SSL connection.
(cherry picked from commit 3b2d28578c526f347f5cfe763681eff365731f99)
2017-03-10 14:11:26 +05:30
klemens
7be541f281
spelling fixes
2017-03-07 13:38:06 +04:00
Sergei Golubchik
87e3e67f43
Merge branch '10.0' into 10.1
2016-05-04 15:23:26 +02:00
Sergei Golubchik
872649c7ba
Merge branch '5.5' into 10.0
2016-04-26 23:05:26 +02:00
Sergei Golubchik
b069d19284
Merge branch 'mysql/5.5' into 5.5
2016-04-20 15:25:55 +02:00
Sergei Golubchik
3b0c7ac1f9
Merge branch '10.0' into 10.1
2016-03-21 13:02:53 +01:00
Otto Kekäläinen
1777fd5f55
Fix spelling: occurred, execute, which etc
2016-03-04 02:09:37 +02:00
Sergei Golubchik
a5679af1b1
Merge branch '10.0' into 10.1
2016-02-23 21:35:05 +01:00
Ramil Kalimullin
b3e9211e48
WL#9072: Backport WL#8785 to 5.5
2016-02-19 23:31:10 +04:00
Sergei Golubchik
271fed4106
Merge branch '5.5' into 10.0
2016-02-15 22:50:59 +01:00
Vicențiu Ciorbaru
2a47817896
MDEV-9225 mysql_upgrade segfault due to missing /etc/my.cnf.d
...
In case of missing includedir file, we would attempt to free a NULL
pointer. Make sure to guard against that.
2016-02-14 18:33:20 +02:00
Sergei Golubchik
ad94790f46
MDEV-9453 mysql_upgrade.exe error when mysql is migrated to mariadb
...
mysqlcheck tool can be used even if opt_systables_only is true
(to upgrade views from mysql - that overrides opt_systables_only)
2016-02-06 11:45:23 +01:00
Sergei Golubchik
a2bcee626d
Merge branch '10.0' into 10.1
2015-12-21 21:24:22 +01:00
Sergei Golubchik
1623995158
Merge branch '5.5' into 10.0
2015-12-13 00:10:40 +01:00
Sergei Golubchik
abf9d35213
Merge branch 'mysql/5.5' into 5.5
2015-12-09 10:00:49 +01:00
Sergei Golubchik
50a796dcba
MDEV-8825 mysql_upgrade leaks the admin password when it spawns a shell process to execute mysqlcheck
...
don't put common arguments on the command-line,
use a config file instead
2015-12-08 10:16:41 +01:00
Sergei Golubchik
c21b927145
mysql_upgrade cleanup
2015-12-08 10:13:13 +01:00
Sergei Golubchik
beded7d9c9
Merge branch '10.0' into 10.1
2015-11-19 15:52:14 +01:00
Shishir Jaiswal
1942506b82
DESCRIPTION
...
===========
When doing an upgrade, you execute mysql_upgrade. If
mysql_upgrade fails to connect or it connects with a user
without the proper privileges, it will return the error:
FATAL ERROR: Upgrade failed
which is not very informative.
ANALYSIS
========
In main() and check_version_match(), the condition for
errors are clubbed together and throw the same error msg.
The functions need to be splitted up and the corresponding
error msgs have to be displayed.
FIX
===
Splitted the functions and added the specific error msg.
2015-10-29 13:35:32 +05:30
Michael Widenius
18f7dfed17
Allow mysql_upgrade to enable event after table is corrected
...
new features:
set event_scheduler=ON|OFF will now try to init event scheduler
if it's not enabled
set event_scheduler=default will try to enable it based on
the value of the event_scheduler when mysqld was started
2015-10-21 16:31:11 +03:00
Sergei Golubchik
530a6e7481
Merge branch '10.0' into 10.1
...
referenced_by_foreign_key2(), needed for InnoDB to compile,
was taken from 10.0-galera
2015-09-03 12:58:41 +02:00
Jan Lindström
9a5787db51
Merge commit '96badb16afcf' into 10.0
...
Conflicts:
client/mysql_upgrade.c
mysql-test/r/func_misc.result
mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result
mysql-test/suite/innodb/r/innodb-fk.result
mysql-test/t/subselect_sj_mat.test
sql/item.cc
sql/item_func.cc
sql/log.cc
sql/log_event.cc
sql/rpl_utility.cc
sql/slave.cc
sql/sql_class.cc
sql/sql_class.h
sql/sql_select.cc
storage/innobase/dict/dict0crea.c
storage/innobase/dict/dict0dict.c
storage/innobase/handler/ha_innodb.cc
storage/xtradb/dict/dict0crea.c
storage/xtradb/dict/dict0dict.c
storage/xtradb/handler/ha_innodb.cc
vio/viosslfactories.c
2015-08-03 23:09:43 +03:00
Sergey Vojtovich
bfe2689cf6
MDEV-8379 - SUSE mariadb patches
...
Let mysql_upgrade return zero exit status when installation is up to date.
2015-07-31 14:29:04 +04:00
Sergei Golubchik
5091a4ba75
Merge tag 'mariadb-10.0.19' into 10.1
2015-06-01 15:51:25 +02:00
Sergei Golubchik
49c853fb94
Merge branch '5.5' into 10.0
2015-05-04 22:00:24 +02:00
Sergei Golubchik
6f17e233bf
post-merge fixes
2015-04-29 12:40:52 +02:00
Daniel Black
4987080ddb
Don't run upgrade-views if not mysql or --upgrade-system-tables
2015-04-14 13:26:22 +10:00
Daniel Black
97e0aeaf72
mysqlcheck fix-view-algorithm -> upgrade-views
...
Change mysqlcheck option to upgrade-views={NO,YES,FROM_MYSQL}
mysql_upgrade now runs upgrade-views=yes to perform a checksum of all
views and add mariadb-version by default. upgrade-views=from_mysql if
MySQL is detected as teh origin version.
2015-04-14 12:43:50 +10:00
Daniel Black
808608cb3f
corrected mysql_upgrade to always list output for every phase
2015-04-14 11:26:13 +10:00
Daniel Black
fc277cd4ba
Add --fix-tables option to mysql-check
...
Mainly so that mysql_upgrade.c can use --skip-fix-tables
Correct mysql_upgrade_view test output based on phases and
previous error message changes.
2015-04-13 22:17:57 +10:00
Daniel Black
96e277aed8
mysql_upgrade to pass binlog option to mysqlcheck
...
when doing the --fix-view-algorithm method to upgrade from MySQL.
2015-04-12 20:42:13 +10:00
Daniel Black
e5191dd11b
mysql-upgrade -> fix-view-algorithm as mysqlcheck option
2015-04-12 17:26:50 +10:00
Daniel Black
25872e2802
Correct phase count on mysql_upgrade
...
Add static vars on phases to make merging consistent.
client/mysql_upgrade --verbose -S /tmp/s.sock
Looking for 'mysql' as: client/mysql
Looking for 'mysqlcheck' as: client/mysqlcheck
Phase 1/4: Fixing views - skipped - not required
Phase 2/4: Fixing table and database names
Processing databases
information_schema
mysql
performance_schema
test
Phase 3/4: Checking and upgrading tables
Processing databases
information_schema
mysql
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.servers OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
performance_schema
test
Phase 4/4: Running 'mysql_fix_privilege_tables'...
OK
2015-04-12 17:21:02 +10:00
Daniel Black
ebd3c6ccbe
Remove mysql-upgrade / skip-mysql-upgrade options from mysql-upgrade.c
2015-04-12 17:05:02 +10:00
Oleksandr Byelkin
70960e7ab7
MDEV-6916: Upgrade from MySQL to MariaDB breaks already created views
...
mysql_upgrade upgrades views`
from r4408:
missing files from mysql-test/std_data/mysql_upgrade/*
2015-04-12 15:56:21 +10:00