Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8764cf69
Commit
8764cf69
authored
Feb 26, 2010
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Plain Diff
merging from 5.1 rep to a local branch
parents
97e2ec40
5dd3b617
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
2 deletions
+99
-2
mysql-test/r/log_tables_upgrade.result
mysql-test/r/log_tables_upgrade.result
+47
-0
mysql-test/std_data/bug49823.CSM
mysql-test/std_data/bug49823.CSM
+0
-0
mysql-test/std_data/bug49823.CSV
mysql-test/std_data/bug49823.CSV
+1
-0
mysql-test/std_data/bug49823.frm
mysql-test/std_data/bug49823.frm
+0
-0
mysql-test/t/log_tables_upgrade.test
mysql-test/t/log_tables_upgrade.test
+32
-0
scripts/mysql_system_tables_fix.sql
scripts/mysql_system_tables_fix.sql
+19
-2
No files found.
mysql-test/r/log_tables_upgrade.result
0 → 100644
View file @
8764cf69
#
# Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
#
USE test;
SET @saved_general_log = @@GLOBAL.general_log;
SET GLOBAL general_log = OFF;
USE mysql;
FLUSH TABLES;
REPAIR TABLE test.bug49823;
Table Op Msg_type Msg_text
test.bug49823 repair status OK
RENAME TABLE general_log TO renamed_general_log;
RENAME TABLE test.bug49823 TO general_log;
mtr.global_suppressions OK
mtr.test_suppressions OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log
Error : You can't use locks with log tables.
status : 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.renamed_general_log OK
mysql.servers OK
mysql.slow_log
Error : You can't use locks with log tables.
status : 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
DROP TABLE general_log;
RENAME TABLE renamed_general_log TO general_log;
SET GLOBAL general_log = @saved_general_log;
USE test;
mysql-test/std_data/bug49823.CSM
0 → 100644
View file @
8764cf69
File added
mysql-test/std_data/bug49823.CSV
0 → 100644
View file @
8764cf69
"2010-02-26 13:32:26","root[root] @ localhost []",2,1,"Query","SELECT 1"
mysql-test/std_data/bug49823.frm
0 → 100644
View file @
8764cf69
This diff was suppressed by a .gitattributes entry.
mysql-test/t/log_tables_upgrade.test
0 → 100644
View file @
8764cf69
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_csv
.
inc
# Only run test if "mysql_upgrade" is found
--
require
r
/
have_mysql_upgrade
.
result
--
disable_query_log
select
LENGTH
(
"
$MYSQL_UPGRADE
"
)
>
0
as
have_mysql_upgrade
;
--
enable_query_log
--
echo
#
--
echo
# Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
--
echo
#
USE
test
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
copy_file
std_data
/
bug49823
.
frm
$MYSQLD_DATADIR
/
test
/
bug49823
.
frm
;
copy_file
std_data
/
bug49823
.
CSM
$MYSQLD_DATADIR
/
test
/
bug49823
.
CSM
;
copy_file
std_data
/
bug49823
.
CSV
$MYSQLD_DATADIR
/
test
/
bug49823
.
CSV
;
SET
@
saved_general_log
=
@@
GLOBAL
.
general_log
;
SET
GLOBAL
general_log
=
OFF
;
USE
mysql
;
FLUSH
TABLES
;
REPAIR
TABLE
test
.
bug49823
;
RENAME
TABLE
general_log
TO
renamed_general_log
;
RENAME
TABLE
test
.
bug49823
TO
general_log
;
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
force
2
>&
1
DROP
TABLE
general_log
;
RENAME
TABLE
renamed_general_log
TO
general_log
;
SET
GLOBAL
general_log
=
@
saved_general_log
;
USE
test
;
scripts/mysql_system_tables_fix.sql
View file @
8764cf69
...
@@ -221,12 +221,29 @@ ALTER TABLE func
...
@@ -221,12 +221,29 @@ ALTER TABLE func
SET
@
old_log_state
=
@@
global
.
general_log
;
SET
@
old_log_state
=
@@
global
.
general_log
;
SET
GLOBAL
general_log
=
'OFF'
;
SET
GLOBAL
general_log
=
'OFF'
;
ALTER
TABLE
general_log
MODIFY
COLUMN
server_id
INTEGER
UNSIGNED
NOT
NULL
;
ALTER
TABLE
general_log
MODIFY
event_time
TIMESTAMP
NOT
NULL
,
MODIFY
user_host
MEDIUMTEXT
NOT
NULL
,
MODIFY
thread_id
INTEGER
NOT
NULL
,
MODIFY
server_id
INTEGER
UNSIGNED
NOT
NULL
,
MODIFY
command_type
VARCHAR
(
64
)
NOT
NULL
,
MODIFY
argument
MEDIUMTEXT
NOT
NULL
;
SET
GLOBAL
general_log
=
@
old_log_state
;
SET
GLOBAL
general_log
=
@
old_log_state
;
SET
@
old_log_state
=
@@
global
.
slow_query_log
;
SET
@
old_log_state
=
@@
global
.
slow_query_log
;
SET
GLOBAL
slow_query_log
=
'OFF'
;
SET
GLOBAL
slow_query_log
=
'OFF'
;
ALTER
TABLE
slow_log
MODIFY
COLUMN
server_id
INTEGER
UNSIGNED
NOT
NULL
;
ALTER
TABLE
slow_log
MODIFY
start_time
TIMESTAMP
NOT
NULL
,
MODIFY
user_host
MEDIUMTEXT
NOT
NULL
,
MODIFY
query_time
TIME
NOT
NULL
,
MODIFY
lock_time
TIME
NOT
NULL
,
MODIFY
rows_sent
INTEGER
NOT
NULL
,
MODIFY
rows_examined
INTEGER
NOT
NULL
,
MODIFY
db
VARCHAR
(
512
)
NOT
NULL
,
MODIFY
last_insert_id
INTEGER
NOT
NULL
,
MODIFY
insert_id
INTEGER
NOT
NULL
,
MODIFY
server_id
INTEGER
UNSIGNED
NOT
NULL
,
MODIFY
sql_text
MEDIUMTEXT
NOT
NULL
;
SET
GLOBAL
slow_query_log
=
@
old_log_state
;
SET
GLOBAL
slow_query_log
=
@
old_log_state
;
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment