Unsupported Screen Size: The viewport size is too small for the theme to render properly.

New Table Does Not Show Up In Object Browser

forums forums SQLyog Using SQLyog New Table Does Not Show Up In Object Browser

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #10467
      tfg
      Member

      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.

    • #24582
      peterlaursen
      Participant

      “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?

    • #24583
      tfg
      Member

      Yes thanks, that works fine!!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.