<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Information Schema</title>
        <description>Forum for MySQL Information Schema</description>
        <link>http://forums.mysql.com/list.php?101</link>
        <lastBuildDate>Thu, 20 Jun 2013 10:05:35 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?101,560957,560957#msg-560957</guid>
            <title>Output (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,560957,560957#msg-560957</link>
            <description><![CDATA[ Hello,<br />
<br />
Can someone give me the output to this<br />
<br />
#!/bin/ksh <br />
#Stolen from John Doe 08-Dec-2011 <br />
#syntax ./run_show_create_tables.ksh username password <br />
#Socket is hard coded, might have to change it <br />
<br />
connections=$(mysql -u$1 -p$2 --socket=/tmp/mysql.sock -e &quot;use <br />
information_schema;select TABLE_SCHEMA,TABLE_NAME from TABLES where <br />
TABLE_SCHEMA not in ('mysql','information_schema') order by 1,2;&quot; |grep -v <br />
TABLE_NAME |awk '{print $1 &quot;.&quot; $2}') <br />
for table_name in $connections <br />
do <br />
mysql -u$1 -p$2 -v -e &quot;show create table $table_name\G&quot; &gt;&gt; RPTSERVER3_CREATE_TABLE.tx <br />
done <br />
<br />
Thanks!]]></description>
            <dc:creator>Rob Gudipudi</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 12 Jul 2012 17:00:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,560854,560854#msg-560854</guid>
            <title>Innodb warm up (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,560854,560854#msg-560854</link>
            <description><![CDATA[ I confuse whether inforamation_schema has index cardinality for tables in real time.<br />
I read the manual MySQL 5.5 about &quot;warm up&quot;.<br />
(http://dev.mysql.com/doc/refman/5.5/en/optimizing-innodb-many-tables.html)<br />
<br />
I think that information_schema has index cardinality for each table after startup. so I think there is no need for &quot;warm up script - select 1 from tables limit 1&quot;.<br />
<br />
doesn't optimizer check information_schema.tables to get index cardinality in real time? <br />
in the case of Innodb, what does innodb handler check to get index cardinality in real time?]]></description>
            <dc:creator>jongse park</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 12 Jul 2012 04:49:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,558330,558330#msg-558330</guid>
            <title>Creating PDM (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,558330,558330#msg-558330</link>
            <description><![CDATA[ I am trying to make a PDM software. I created some assemblies and drawings in SolidWorks, CATIA and AutoCAD. Now, my question is:<br />
How can I connect CAD software (SolidWorks, CATIA and AutoCAD) with the future database which I attend to create in MySQL? More precisely, how to connect SolidWorks and MySQL?<br />
Thanks.]]></description>
            <dc:creator>Klara Rafa</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 22 Jun 2012 11:50:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,524228,524228#msg-524228</guid>
            <title>Information Schema shows deleted columns (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,524228,524228#msg-524228</link>
            <description><![CDATA[ Hi, I'm using MySQL community server 5.01 &amp; MySQL Query Browser 1.2.15 on windows vista. Any changes I make to a database are not being shown in the information schema.<br />
<br />
e.g. if in the query browser I delete a column from a table then<br />
<br />
SELECT COLUMN_NAME, TABLE_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH<br />
  FROM INFORMATION_SCHEMA.COLUMNS<br />
  WHERE table_name='MyTableName'<br />
  and table_schema = 'MyDB'<br />
<br />
is still showing the deleted column for that table. The only way I've found to correct this is to reboot the computer. Anyone know a fix?]]></description>
            <dc:creator>Tom Byars</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 06 Apr 2012 14:11:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,517340,517340#msg-517340</guid>
            <title>Logging in issue (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,517340,517340#msg-517340</link>
            <description><![CDATA[ Hi!  This is my first time using MySQL and it is for a class so please bare with me.  I've downloaded and installed MySQL, logged in as root user, changed my database, created grants and created a user.  Now when I try to log on as that user this is all I get...<br />
<br />
mysql&gt; mysql -h localhost -u deitel -p<br />
    -&gt;<br />
<br />
What am I doing wrong?<br />
<br />
Thanks,<br />
<br />
Alicia]]></description>
            <dc:creator>Alicia Haraden</dc:creator>
            <category>Information Schema</category>
            <pubDate>Sun, 26 Feb 2012 06:31:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,515950,515950#msg-515950</guid>
            <title>Case-sensitivity of table name is broken after an unique index is created. (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,515950,515950#msg-515950</link>
            <description><![CDATA[ Hello<br />
<br />
I added &quot;lower_case_table_names=2&quot; to my.ini (MySQL 5.5, Windows 7 64bit)<br />
And I executed sql files.<br />
Then I found that the case-sensitivity was not kept for some tables.<br />
I tested sql and found the source of this trouble.<br />
<br />
DROP TABLE IF EXISTS Hoge;<br />
CREATE TABLE Hoge (<br />
 id VARCHAR(32) PRIMARY KEY,<br />
 foo VARCHAR(32) NOT NULL,<br />
 bar VARCHAR(32) NOT NULL<br />
);<br />
/* at this time, table name is 'Hoge' in INFORMATION_SCHEMA.TABLES. */<br />
<br />
CREATE UNIQUE INDEX unique_foobar ON Hoge (foo, bar);<br />
/* then, table name is 'hoge' in INFORMATION_SCHEMA.TABLES. */<br />
<br />
<br />
Is this a bug? Or there is a workaround?<br />
<br />
thanks<br />
<br />
Shigeru Nakagaki]]></description>
            <dc:creator>Shigeru Nakagaki</dc:creator>
            <category>Information Schema</category>
            <pubDate>Sat, 18 Feb 2012 06:11:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,431439,431439#msg-431439</guid>
            <title>Data not stored (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,431439,431439#msg-431439</link>
            <description><![CDATA[ I am a blogger user, it is quite strange issue but I really need help. I developed a web page using blogger it is working absolutely fine. When I enter some details as a user it shows “saved”, but when I check my database, I found it empty. I checked everything but couldn’t found the issue. Can anyone help me on this?]]></description>
            <dc:creator>david paul</dc:creator>
            <category>Information Schema</category>
            <pubDate>Mon, 22 Aug 2011 11:25:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,422128,422128#msg-422128</guid>
            <title>Get list of aggregate functions supported (3 replies)</title>
            <link>http://forums.mysql.com/read.php?101,422128,422128#msg-422128</link>
            <description><![CDATA[ Is there any way to get list of aggregate functions supported by using some metadata/query?]]></description>
            <dc:creator>AMAN MANOCHA</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 03 Jun 2011 09:55:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,421506,421506#msg-421506</guid>
            <title>copy AUTO_INCREMENT value (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,421506,421506#msg-421506</link>
            <description><![CDATA[ Hello !<br />
<br />
I would like to do an sql request to copy the next auto_increment value of one table to another table.<br />
<br />
I try : <br />
<br />
 SET @INCR =(SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'table_a' LIMIT 1);<br />
ALTER TABLE `table_b` AUTO_INCREMENT = @INCR;<br />
<br />
but it seems not accept variable in ATLER request;<br />
<br />
I try :<br />
UPDATE INFORMATION_SCHEMA.TABLES SET AUTO_INCREMENT  = (SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'table_a' LIMIT 1) WHERE table_name = 'table_b';<br />
<br />
but even root has not permissions to do it.<br />
<br />
Is it possible to do such stuff ?<br />
<br />
Thanks]]></description>
            <dc:creator>pierre boutet</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 27 May 2011 13:52:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,420121,420121#msg-420121</guid>
            <title>Information Schema plugin for Windows (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,420121,420121#msg-420121</link>
            <description><![CDATA[ Hi,<br />
<br />
I'm trying to compile an information schema plugin for MySQL 5.5 on Windows using VS2008, based on this article: <br />
<a href="http://dev.mysql.com/tech-resources/articles/mysql_i_s_plugins_part1-2.html"  rel="nofollow">http://dev.mysql.com/tech-resources/articles/mysql_i_s_plugins_part1-2.html</a><br />
<br />
I've changed some of the initial includes, to match the include files in MySQL 5.5.<br />
(haad to use &lt;sql_priv.h&gt; insted of &lt;mysql_priv.h&gt; and had to additionally include &lt;field.h&gt;.)<br />
<br />
If the plugin only creates an empty table (e.g.:mysql_is_hello_fill_table is empty), everything compiles, link, and install, and I can see the information_shema.mysql_hello table.<br />
<br />
But if I try to fill the table, using table-&gt;field[0]-&gt;store, I get the following linker errors:<br />
<br />
<br />
Error	7	error LNK2001: unresolved external symbol &quot;__declspec(dllimport) struct charset_info_st * system_charset_info&quot; (__imp_?system_charset_info@@3PAUcharset_info_st@@A)	InformationSchemaExample.obj<br />
Error	8	error LNK2001: unresolved external symbol &quot;int __cdecl schema_table_store_record(class THD *,struct TABLE *)&quot; (?schema_table_store_record@@YAHPAVTHD@@PAUTABLE@@@Z)	InformationSchemaExample.obj<br />
<br />
<br />
<br />
<br />
Where are these external functions defined?<br />
Can anyone direct me to a working information schema example on windows?<br />
<br />
thank you,<br />
krisy]]></description>
            <dc:creator>Forrai Krisztián</dc:creator>
            <category>Information Schema</category>
            <pubDate>Tue, 17 May 2011 11:44:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,415571,415571#msg-415571</guid>
            <title>return incremntal value (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,415571,415571#msg-415571</link>
            <description><![CDATA[ hi all:<br />
<br />
i am looking for help for my problem. is it possible to return a incremental value from a single query? <br />
<br />
for example : i have count a number of times a subject appears at a specific time, but i also wanna count it at different interval, and show all the value in one table. <br />
<br />
also, how can i set the query like &quot;select*from xx where time_stamp between '2011' and '2012'&quot; to use a change variable of time like &quot;between time and time&quot;<br />
<br />
thx in advance]]></description>
            <dc:creator>deming deng</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 07 Apr 2011 16:29:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,413747,413747#msg-413747</guid>
            <title>Access information_schema database via ODBC (MySQL 5.5) (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,413747,413747#msg-413747</link>
            <description><![CDATA[ I want to connect to information_schema database using ODBC in a Access 2003 application.<br />
When I try to link the tables, no tables are show in the table list.<br />
I'm using MySQL 5.5.9<br />
In previous version of MySQL I haven't this problem.<br />
<br />
Any help appreciated ;)]]></description>
            <dc:creator>Jaume G</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 25 Mar 2011 11:07:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,407126,407126#msg-407126</guid>
            <title>Check for existence of non unique index (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,407126,407126#msg-407126</link>
            <description><![CDATA[ Is there any way to discover any non unique indices that a table might have from INFORMATION_SCHEMA?  There is no row in TABLE_CONSTRAINTS or KEY_COLUMN_USAGE unless the index is unique.  Non unique indices are listed by SHOW INDEX but I want to use the result programatically - specifically to create the index if it is not there.<br />
<br />
Any ideas anyone?<br />
<br />
<br />
Regards,    Stuart Fairful]]></description>
            <dc:creator>Stuart Fairful</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 10 Feb 2011 21:02:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,405415,405415#msg-405415</guid>
            <title>importing data dictionaries from xls or csv (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,405415,405415#msg-405415</link>
            <description><![CDATA[ I have data dictionary files that are currently in xls format.  Is there an easy way to import these either by cl or phpmyadmin or Workbench?<br />
<br />
The format is as follows:<br />
<br />
c1, c2, c3, c4, c5, c6, c7<br />
Column number, Column Name, Question Text, Response Code, Response Text, Data Type, Size<br />
<br />
I've managed to be able to create tables via import by massaging a csv export into c2 headers for rows with a little awk, but would rather import it all as in the meta as well not just the Column Names.<br />
<br />
I've figured out how to add meta comments via cl, does phpmyadmin or Workbench have an import for this?<br />
<br />
# CREATE TABLE boo (  <br />
#    id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'The KEY obviously', <br />
<br />
Thank you much for your reply.<br />
<br />
Cheers,<br />
Troy]]></description>
            <dc:creator>Troy Perkins</dc:creator>
            <category>Information Schema</category>
            <pubDate>Sun, 30 Jan 2011 07:00:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,400934,400934#msg-400934</guid>
            <title>Get list of databases through query? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,400934,400934#msg-400934</link>
            <description><![CDATA[ I'd like to know how to get a list of databases through the use of an SQL query.<br />
<br />
The &quot;Show Databases&quot; works from a command line, but I need a query and I'm having problems finding such references on the web.<br />
<br />
Thanks folks...<br />
<br />
ct]]></description>
            <dc:creator>Crazy Tasty</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 30 Dec 2010 15:48:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,395147,395147#msg-395147</guid>
            <title>Queries on information schema allocating too much memory. (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,395147,395147#msg-395147</link>
            <description><![CDATA[ Hi everybody.<br />
<br />
I'm trying to figure out what is allocating so much memory at this situation:<br />
<br />
SELECT COUNT(1) FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_SCHEMA='db_example';<br />
<br />
On db_example, we have around ~550 innodb tables with 9 partitions each.<br />
After query execution, I can see 700 Mbytes of memory have been allocated to mysql.<br />
<br />
shell&gt; ps axu | grep ^mysql | grep /usr/sbin | awk '{print $6;}'<br />
349036<br />
shell&gt; mysql -uroot -p -e &quot;SELECT COUNT(1) FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_SCHEMA='db_example'&quot;<br />
+----------+<br />
| COUNT(1) |<br />
+----------+<br />
|     4189 |<br />
+----------+<br />
shell&gt; ps axu | grep ^mysql | grep /usr/sbin | awk '{print $6;}'<br />
1115952<br />
<br />
1115952-349036 = 766916 (~700M)<br />
<br />
<br />
show engine innodb status, discards my first theory... &quot;memory was being used to load tables into data dictionary&quot;, but:<br />
<br />
&quot;Dictionary cache    65076408        (8851984 + 56224424)&quot;<br />
<br />
Dictionary is only about 62 Mbytes.. nothing compared to 700Mbytes used to execute query.<br />
<br />
If I run same query again and again, no more memory is allocated, (that was what made me think of data dict)<br />
<br />
Could anybody give me a clue on what is memory being used?<br />
<br />
<br />
SO is Linux Ubuntu 10.4<br />
Mysql version is Percona Server 11.1, based on mysql 5.1.47-rel11.1-log<br />
<br />
<br />
Thanks in advance]]></description>
            <dc:creator>Nadir Lloret</dc:creator>
            <category>Information Schema</category>
            <pubDate>Tue, 23 Nov 2010 11:18:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,389359,389359#msg-389359</guid>
            <title>Can stored procedure names have spaces in them? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,389359,389359#msg-389359</link>
            <description><![CDATA[ I am using &quot;show create procedure proc_name&quot; to get the description to then parse that to get the parameters (that appears to be the best way to do that as there is no INFORMATION_SCHEMA.PARAMETERS).<br />
<br />
Can a procedure name have spaces in it? If so, what do I surround it with? Is it &quot;show create procedure [proc name]&quot;?<br />
<br />
thanks - dave]]></description>
            <dc:creator>David Thielen</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 19 Nov 2010 07:59:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,387136,387136#msg-387136</guid>
            <title>i have a Armstrong's axioms related question (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,387136,387136#msg-387136</link>
            <description><![CDATA[ how can i prove Decomposition rule<br />
If X \to YZ then X \to Y and X \to Z<br />
<br />
i need to prove it using the 3 Armstrong's axioms which are:<br />
<br />
Axiom of reflexivity<br />
If Y subset X, then X \to Y<br />
<br />
Axiom of augmentation<br />
If X \to Y, then XZ \to YZ for any Z<br />
<br />
Axiom of transitivity<br />
If X \to Y and Y \to Z , then X \to Z]]></description>
            <dc:creator>Junaid Najeeb</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 23 Sep 2010 18:55:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,373430,373430#msg-373430</guid>
            <title>How to know whether the table was locked or not? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?101,373430,373430#msg-373430</link>
            <description><![CDATA[ Hi ...<br />
<br />
<br />
Using this..<br />
<br />
lock table tabl_name read;<br />
<br />
I locked the table... <br />
<br />
Now I need the query to check whether that table was already locked or not .. <br />
<br />
Please give some solutionss....]]></description>
            <dc:creator>Kasthuri Gandhi</dc:creator>
            <category>Information Schema</category>
            <pubDate>Tue, 29 Jun 2010 08:57:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,370773,370773#msg-370773</guid>
            <title>Problem with Information Schema in MySQL 5.1.45-3 (5.0.51a-24+lenny3 works) (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,370773,370773#msg-370773</link>
            <description><![CDATA[ Hi,<br />
<br />
for developement i cloned my php (prado framework) application to a few servers and desktops. Everywhere it works find except on my laptop with sidux (debian sid).<br />
<br />
The following query is handled different with my newer mysqld version:<br />
<br />
Code:<br />
<br />
SELECT CONSTRAINT_NAME as con, COLUMN_NAME as col, REFERENCED_TABLE_SCHEMA as fkschema, REFERENCED_TABLE_NAME as fktable, REFERENCED_COLUMN_NAME as fkcol FROM `INFORMATION_SCHEMA`.`KEY_COLUMN_USAGE` WHERE REFERENCED_TABLE_NAME IS NOT NULL AND TABLE_NAME = &quot;status&quot;;<br />
<br />
<br />
With mysqld 5.0.51a-24+lenny3 the response is:<br />
<br />
&quot;Empty set (0.00 sec)&quot;<br />
<br />
<br />
5.1.45-3 says:<br />
<br />
&quot;ERROR 1109 (42S02): Unknown table 'status' in information_schema&quot;<br />
<br />
<br />
Can anyone help on this?]]></description>
            <dc:creator>Florian Bittner</dc:creator>
            <category>Information Schema</category>
            <pubDate>Wed, 16 Jun 2010 11:58:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,370045,370045#msg-370045</guid>
            <title>Number of Pages of a Table - Where is? (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,370045,370045#msg-370045</link>
            <description><![CDATA[ Hi, I studying Query Optimization and I want to know where MySQL stores (if it does)  the number of pages/blocks of a table. <br />
<br />
    I've found the number of rows in Tables, but I was not able to find the number of pages.<br />
<br />
    If it its not stored, MySql compute some how? How it estimates the best plans in query optimization?<br />
<br />
    Thanks in advance, Hodgskin.]]></description>
            <dc:creator>Hodgskin Hods</dc:creator>
            <category>Information Schema</category>
            <pubDate>Tue, 01 Jun 2010 19:04:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,369328,369328#msg-369328</guid>
            <title>Data truncated for column 'TABLE_COMMENT' (5 replies)</title>
            <link>http://forums.mysql.com/read.php?101,369328,369328#msg-369328</link>
            <description><![CDATA[ Hi,<br />
<br />
I want to insert a record using the Auto_increment value read from information_schema database. It's the only way I found to insert twice the auto_increment. However, a warning is thrown about data truncation on information_schema.TABLES.TABLE_COMMENT column.<br />
<br />
Test case:<br />
(MySQL 5.0, sql_mode='')<br />
<br />
CREATE TABLE sample (<br />
  id int(11) NOT NULL auto_increment,<br />
  name varchar(100),<br />
  link_id int(11) NOT NULL,<br />
  PRIMARY KEY (id),<br />
  CONSTRAINT link_id_constraint FOREIGN KEY (link_id) REFERENCES sample (id) ON DELETE CASCADE ON UPDATE CASCADE<br />
) ENGINE=InnoDB;<br />
INSERT INTO sample(name, link_id)<br />
VALUES('x',(SELECT Auto_increment FROM information_schema.tables WHERE table_schema=SCHEMA() AND table_name='sample'));<br />
<br />
Warning is:<br />
Warning Code : 1265<br />
Data truncated for column 'TABLE_COMMENT' at row 1<br />
<br />
Value of TABLE_COMMENT column for this table is: &quot;InnoDB free: 191488 kB; (`link_id`) REFER `ks_dbsynctest1/sample`(`id`) ON UPDAT&quot;<br />
<br />
If I remove &quot;ON DELETE CASCADE ON UPDATE CASCADE&quot; on CONSTRAINT creation script, all works since TABLE_COMMENT is shorter.<br />
<br />
My question is: why do I get this error whereas I don't touch TABLE_COMMENT value ?<br />
<br />
Is there a way to get rid of this warning ?<br />
<br />
Subsidiary question: is there another way to insert the auto_increment twice ?<br />
<br />
Thanks<br />
<br />
Sylvain]]></description>
            <dc:creator>- -</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 28 May 2010 11:15:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,360415,360415#msg-360415</guid>
            <title>MySQL Performance Schema (Worklog #2360) (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,360415,360415#msg-360415</link>
            <description><![CDATA[ MySQL Performance Schema (Worklog #2360)<br />
<br />
It monitors multitudinous low-level server events and provides them in tables inside a new “database” called, surprisingly, PERFORMANCE_SCHEMA.<br />
<br />
Docs:<br />
<a href="http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html"  rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html</a><br />
<a href="http://dev.mysql.com/doc/performance-schema/en/index.html"  rel="nofollow">http://dev.mysql.com/doc/performance-schema/en/index.html</a><br />
<br />
Blogs:<br />
<a href="http://marcalff.blogspot.com/2010/01/performance-schema-overview.html"  rel="nofollow">http://marcalff.blogspot.com/2010/01/performance-schema-overview.html</a><br />
<a href="http://www.markleith.co.uk/?p=318"  rel="nofollow">http://www.markleith.co.uk/?p=318</a><br />
<a href="http://www.markleith.co.uk/?p=112"  rel="nofollow">http://www.markleith.co.uk/?p=112</a><br />
<br />
<a href="http://blogs.mysql.com/peterg/2009/02/05/mysql-performance-schema/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/05/mysql-performance-schema/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/06/mysql-performance-schema-2/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/06/mysql-performance-schema-2/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/09/mysql-performance-schema-3/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/09/mysql-performance-schema-3/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/10/mysql-performance-schema-4/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/10/mysql-performance-schema-4/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/11/mysql-performance-schema-5/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/11/mysql-performance-schema-5/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/12/mysql-performance-schema-6/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/12/mysql-performance-schema-6/</a><br />
<a href="http://blogs.mysql.com/peterg/2009/02/13/todo-mysql-performance-schema-7/"  rel="nofollow">http://blogs.mysql.com/peterg/2009/02/13/todo-mysql-performance-schema-7/</a><br />
<br />
WL#2360: Performance Schema<br />
<a href="http://forge.mysql.com/worklog/task.php?id=2360"  rel="nofollow">http://forge.mysql.com/worklog/task.php?id=2360</a><br />
<br />
WL#4674 PERFORMANCE_SCHEMA Setup For Actors<br />
<a href="http://forge.mysql.com/worklog/task.php?id=4674"  rel="nofollow">http://forge.mysql.com/worklog/task.php?id=4674</a><br />
<br />
WL#4895 PERFORMANCE_SCHEMA Instrumenting Table IO<br />
<a href="http://forge.mysql.com/worklog/task.php?id=4674"  rel="nofollow">http://forge.mysql.com/worklog/task.php?id=4674</a><br />
<br />
WL#4896 PERFORMANCE_SCHEMA Instrumenting Net IO<br />
<a href="http://forge.mysql.com/worklog/task.php?id=4896"  rel="nofollow">http://forge.mysql.com/worklog/task.php?id=4896</a><br />
<br />
WL#4878 PERFORMANCE_SCHEMA Trace<br />
<a href="http://forge.mysql.com/worklog/task.php?id=4878"  rel="nofollow">http://forge.mysql.com/worklog/task.php?id=4878</a>]]></description>
            <dc:creator>Edwin DeSouza</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 26 Mar 2010 05:23:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,304823,304823#msg-304823</guid>
            <title>Can't login from localhost if USER/GRANT created using 'username'@'%' (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,304823,304823#msg-304823</link>
            <description><![CDATA[ Here is what I do : <br />
<br />
Grant Select on *.* to 'User'@'%';<br />
<br />
After that I try to login from localhost and I get this error :<br />
<br />
   Error number 1045<br />
   Access denied for user 'User'@'localhost' ...<br />
<br />
I tried to login via another computer and it works fine.<br />
<br />
<br />
I did not have this problem with version 5.1.40.<br />
<br />
Now I upgrade to version 5.1.42 and this does not work.<br />
<br />
Is this behavior a bug or is my configuration weak ?]]></description>
            <dc:creator>Martin Cloutier</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 29 Jan 2010 14:45:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,301880,301880#msg-301880</guid>
            <title>Retrieving Database Schema Info (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,301880,301880#msg-301880</link>
            <description><![CDATA[ Hey, I want to know the steps and the code needed to retrieve the entire database schema of a given mysql database through .net framework using c# as the implementation language. Can anybody help me with the code?]]></description>
            <dc:creator>Pratik Kulkarni</dc:creator>
            <category>Information Schema</category>
            <pubDate>Fri, 29 Jan 2010 14:26:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,298326,298326#msg-298326</guid>
            <title>How to identify duplicate indexes (2 replies)</title>
            <link>http://forums.mysql.com/read.php?101,298326,298326#msg-298326</link>
            <description><![CDATA[ I am an experienced Oracle DBA, but new (one month) to MySQL, and I have been tasked with identifying duplicate indexes in our database. Here is the structure from one table:<br />
<br />
PRIMARY KEY  (`accountNum`),<br />
UNIQUE KEY `acceptedProgramId` (`acceptedProgramId`),<br />
UNIQUE KEY `mgageId` (`mgageId`),<br />
UNIQUE KEY `autoId` (`autoId`),<br />
UNIQUE KEY `helocId` (`helocId`),<br />
UNIQUE KEY `hePreRefiId` (`hePreRefiId`),<br />
UNIQUE KEY `origAcctPort` (`originalAccountNumber`,`portfolioId`),<br />
UNIQUE KEY `ctAccountId` (`ctAccountId`),<br />
UNIQUE KEY `accountDetailId` (`accountDetailId`),<br />
KEY `FK1D0C220DB6EE652` (`agentId`),<br />
KEY `FK1D0C220D250E40CC` (`agencyQueueId`),<br />
KEY `FK1D0C220D6F9D1D1B` (`helocId`),<br />
KEY `FK1D0C220D7062C296` (`claimAgentId`),<br />
KEY `FK1D0C220DF5C3DF5F` (`defaultResponsibleId`),<br />
KEY `FK1D0C220DCBD03E64` (`portfolioId`),<br />
KEY `FK1D0C220D799222BA` (`agentQueueId`),<br />
KEY `FK1D0C220DA2B8AD17` (`teamQueueId`),<br />
KEY `FK1D0C220D8C14235C` (`divisionId`),<br />
KEY `FK1D0C220D21D446FF` (`autoId`),<br />
KEY `FK1D0C220D777A2B5D` (`acceptedProgramId`),<br />
KEY `FK1D0C220DCDB05A99` (`mgageId`),<br />
KEY `FK1D0C220D164CC611` (`hePreRefiId`),<br />
KEY `FK1D0C220D916BE7D8` (`ctAccountId`),<br />
KEY `FK1D0C220D15472F70` (`accountDetailId`)<br />
<br />
If you look closely, you will notice that the following pairs of indexes use the same column; except that one uses the UNIQUE constraint, they are identical:<br />
UNIQUE KEY `acceptedProgramId` (`acceptedProgramId`)        = KEY `FK1D0C220D777A2B5D` (`acceptedProgramId`)<br />
UNIQUE KEY `mortgageId` (`mgageId`)                      = KEY `FK1D0C220DCDB05A99` (`mgageId`)<br />
UNIQUE KEY `autoId` (`autoId`)                              = KEY `FK1D0C220D21D446FF` (`autoId`)<br />
UNIQUE KEY `helocId` (`helocId`)                            = KEY `FK1D0C220D6F9D1D1B` (`helocId`)<br />
UNIQUE KEY `hePreRefiId` (`hePreRefiId`)                    = KEY `FK1D0C220D164CC611` (`hePreRefiId`)<br />
UNIQUE KEY `citiAccountId` (`ctAccountId`)                = KEY `FK1D0C220D916BE7D8` (`ctAccountId`)<br />
UNIQUE KEY `accountDetailId` (`accountDetailId`)            = KEY `FK1D0C220D15472F70` (`accountDetailId`)<br />
<br />
That was fairly easy to do on this one table, but the database has 150 tables, and I want to write a script of some type to identify the duplicate pairs (triplets, etc.) across the entire database. I have tried several times to write something myself that uses the information in the KEY_COLUMN_USAGE and COLUMNS tables, but I cannot seem to get what I need.<br />
<br />
Anybody have something that would work for me? Even something that would just list all indexes for all tables would be a good start; somehow I can't even seem to get that correctly from INFORMATION_SCHEMA. I can figure out how to identify the duplicates from there.]]></description>
            <dc:creator>Lucien Jacquet</dc:creator>
            <category>Information Schema</category>
            <pubDate>Thu, 07 Jan 2010 18:58:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,296939,296939#msg-296939</guid>
            <title>Trigger on information_schema.routines (4 replies)</title>
            <link>http://forums.mysql.com/read.php?101,296939,296939#msg-296939</link>
            <description><![CDATA[ I need to develop functionality based on changes in information_schema.routines. But - when I try to add classic trigger on then object MySQL give me following error: Access denied for user 'root'@'%' do database 'information_schema'.<br />
<br />
EDIT: After reading some other topics on this forum I learned that information_schema.routines is View type object.<br />
<br />
Is there any chance to hook somewhere with trigger to catch changes in information_schema database ?]]></description>
            <dc:creator>Michal Koba</dc:creator>
            <category>Information Schema</category>
            <pubDate>Wed, 24 Mar 2010 12:45:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,294945,294945#msg-294945</guid>
            <title>Workaround for slow information schema joins (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,294945,294945#msg-294945</link>
            <description><![CDATA[ On my search why joins with information schema are slow, especially when having many tables, I came up with a solution which I'd like to share with you.<br />
<br />
In my case, the join took several seconds (6-8) to execute on a heavily optimized server, which I managed to bring down to about half a second, which is more acceptable for a web-app.<br />
<br />
Purpose of the join was to fetch data from a particular table and fieldname, nullable, datatype and especially ordinal position from i_s.COLUMNS for writing to a XML file.<br />
<br />
The solution is to create partitioned views of the information you need from i_s. With partition I mean, on a database basis.<br />
<br />
In my case I needed info on TABLE_NAME, COLUMN_NAME, ORDINAL_POSITION, IS_NULLABLE AND DATA_TYPE.<br />
<br />
Here's the code for view `vw_i_s_example` for database 'example'.<br />
Substitute user `example`@`example.com`, view-name `partitioned_views`.`vw_i_s_example` and TABLE_SCHEMA accordingly.<br />
<br />
CREATE ALGORITHM=TEMPTABLE <br />
DEFINER=`example`@`example.com` <br />
SQL SECURITY DEFINER <br />
VIEW `partitioned_views`.`vw_i_s_example` AS <br />
select `COLUMNS`.`TABLE_NAME` AS `TABLE_NAME`, <br />
`COLUMNS`.`COLUMN_NAME` AS `COLUMN_NAME`, <br />
`COLUMNS`.`ORDINAL_POSITION` AS `ORDINAL_POSITION`, <br />
`COLUMNS`.`IS_NULLABLE` AS `IS_NULLABLE`, <br />
`COLUMNS`.`DATA_TYPE` AS `DATA_TYPE` <br />
from `information_schema`.`COLUMNS` where <br />
(`COLUMNS`.`TABLE_SCHEMA` = 'example') order by `COLUMNS`.`TABLE_NAME`,`COLUMNS`.`ORDINAL_POSITION`;<br />
<br />
For best performance, I choose a TEMPTABLE view.<br />
<br />
HTH,<br />
Willem]]></description>
            <dc:creator>Willem Isserd</dc:creator>
            <category>Information Schema</category>
            <pubDate>Wed, 09 Dec 2009 00:33:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,284648,284648#msg-284648</guid>
            <title>CRITICAL - cannot connect to information_schema. Access denied for user &lt;user&gt;@x.x.x.x (using password: YES) (no replies)</title>
            <link>http://forums.mysql.com/read.php?101,284648,284648#msg-284648</link>
            <description><![CDATA[ Hi all......<br />
I am new here. I configured Nagios and installed check_mysql_health to  monitor mysql and made appropriate changes in the nagios configuration files also. But when I type the command in /usr/local/nagios/libexec/<br />
./check_mysql_health -H &lt;ip_add&gt; --user &lt;username&gt; --password &lt;passwd&gt; --mode &lt;mode&gt; <br />
I am getting an error: CRITICAL - cannot connect to information_schema. Access denied for user &lt;user&gt;@X.X.X.X (using password: YES).  I had given all privileges to the user (grant all privileges on *.* to &lt;user&gt;@&lt;ip_add&gt;;)<br />
<br />
But I can connect to login to the mysql using the same username and password<br />
<br />
(# mysql -u &lt;user&gt; -p <br />
   enter password: &lt;passwd&gt; <br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 160<br />
Server version: 5.0.77 Source distribution<br />
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br />
<br />
mysql&gt;     )<br />
<br />
Hope you can understand the things.<br />
Kindly give me a solution for this..<br />
Thanks for all in advance........<br />
<br />
Saju Murali]]></description>
            <dc:creator>Saju Murali</dc:creator>
            <category>Information Schema</category>
            <pubDate>Mon, 05 Oct 2009 10:07:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?101,275642,275642#msg-275642</guid>
            <title>Identifying FK constraints in a table (1 reply)</title>
            <link>http://forums.mysql.com/read.php?101,275642,275642#msg-275642</link>
            <description><![CDATA[ Hello,<br />
<br />
I have tried searching for a solution but cannot find it.<br />
<br />
I would like to know about a table FK constraints, meaning i would like to identify which column are a FK.<br />
<br />
I am aware of the &quot;SHOW INDEX FROM [TABLE_NAME]&quot; and looking for something similar for FKs.<br />
<br />
Are FKs considered indexes as well in this regard ?<br />
<br />
Thank you in advance,<br />
<br />
Alexander]]></description>
            <dc:creator>Alexander Ratz</dc:creator>
            <category>Information Schema</category>
            <pubDate>Sun, 11 Oct 2009 11:54:40 +0000</pubDate>
        </item>
    </channel>
</rss>
