forums › forums › SQLyog › Using SQLyog › New Table Does Not Show Up In Object Browser
- This topic is empty.
-
AuthorPosts
-
-
July 28, 2007 at 3:16 am #10467tfgMember
I pasted the following in the sql window:
CREATE TABLE `test1` (
`invoice_id` bigint(20) unsigned NOT NULL,
`assignment_id` bigint(20) unsigned NOT NULL,
`invoicetype_id` smallint(6) unsigned default NULL,
`description` varchar(50) default NULL,
`amount` decimal(9,2) default NULL,
`billdate` date default NULL,
`onRDN` tinyint(1) default NULL,
PRIMARY KEY (`invoice_id`,`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
I then clicked on the single green arrow (execute current query).
Message that it executed successfully is at bottom of window.
Table is not in object browser.
I clicked on the “refresh object browser” button in toolbar
Table is not in object browser.
I then clicked on the single green arrow (execute current query).
Message “Query batch completed with error(s) at bottom of window
Error Code : 1050
Table 'test1' already exists
(0 ms taken)
Above is error message (says table exists) – but you cant see it.
I exit out of SQLYOG and re-enter and the table is there.
What did I do wrong?
I have 6.05 enterprise.
-
July 28, 2007 at 8:01 am #24582peterlaursenParticipant
“I then clicked on the single green arrow (execute current query). …!
I think I understand what is happening!
Refreshing Object Browser only has effect on the part of the tree BELOW current selection! to refresh the list of databases the connection itself must be selected. To refresh the list of tables in a database the database must be selected.
In other word: you refresh what is currently selected only! It is made such because if you have lots of very big databases (and/or a slow connection) refreshing everything can take very long time.
Was that the answer that you needed?
-
July 28, 2007 at 2:58 pm #24583tfgMember
Yes thanks, that works fine!!
-
-
AuthorPosts
- You must be logged in to reply to this topic.