Oracle 5.0 Reference Manual page 37

Table of Contents

Advertisement

any table in a database. The information helps us create a situation matching the one that you have
experienced.
• The SQL mode in effect when the problem occurred can be significant, so please report the value of
the
[495]
sql_mode
the relevant
sql_mode
procedure or function, the
shows the relevant SQL mode, or you can query
SELECT ROUTINE_SCHEMA, ROUTINE_NAME, SQL_MODE
FROM INFORMATION_SCHEMA.ROUTINES;
For triggers, you can use this statement:
SELECT EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE, TRIGGER_NAME, SQL_MODE
FROM INFORMATION_SCHEMA.TRIGGERS;
• For performance-related bugs or problems with
the output of
EXPLAIN SELECT
produces. You should also include the output from
table that is involved. The more information you provide about your situation, the more likely it is that
someone can help you.
The following is an example of a very good bug report. The statements are run using the
command-line tool. Note the use of the
provide very long output lines that are difficult to read.
mysql>
SHOW VARIABLES;
mysql>
SHOW COLUMNS FROM ...\G
<output from SHOW COLUMNS>
mysql>
EXPLAIN SELECT ...\G
<output from EXPLAIN>
mysql>
FLUSH STATUS;
mysql>
SELECT ...;
<A short version of the output from SELECT,
including the time taken to run the query>
mysql>
SHOW STATUS;
<output from SHOW STATUS>
• If a bug or problem occurs while running mysqld, try to provide an input script that reproduces the
anomaly. This script should include any necessary source files. The more closely the script can
reproduce your situation, the better. If you can make a reproducible test case, you should upload it to
be attached to the bug report.
If you cannot provide a script, you should at least include the output from
extended-status processlist
is performing.
• If you cannot produce a test case with only a few rows, or if the test table is too big to be included in
the bug report (more than 10 rows), you should dump your tables using
file that describes your problem. Create a compressed archive of your files using
README
or zip. After you initiate a bug report for our bugs database at http://bugs.mysql.com/, click the
gzip
Files tab in the bug report for instructions on uploading the archive to the bugs database.
• If you believe that the MySQL server produces a strange result from a statement, include not only the
result, but also your opinion of what the result should be, and an explanation describing the basis for
your opinion.
• When you provide an example of the problem, it is better to use the table names, variable names,
and so forth that exist in your actual situation than to come up with new names. The problem could
be related to the name of a table or variable. These cases are rare, perhaps, but it is better to be
safe than sorry. After all, it should be easier for you to provide an example that uses your actual
situation, and it is by all means better for us. If you have data that you do not want to be visible
to others in the bug report, you can upload it using the Files tab as previously described. If the
How to Report Bugs or Problems
system variable. For stored procedure, stored function, and trigger objects,
[495]
value is the one in effect when the object was created. For a stored
SHOW CREATE PROCEDURE
..., and at least the number of rows that the
statement terminator for statements that would otherwise
\G
in your report to provide some information on how your system
17
or
SHOW CREATE FUNCTION
INFORMATION_SCHEMA
statements, you should always include
SELECT
SHOW CREATE TABLE tbl_name
statement
for the information:
statement
SELECT
for each
mysql
mysqladmin variables
and create a
mysqldump
and
tar

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents