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

Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 7,398 total)
  • Author
    Posts
  • in reply to: User Can't Select His Tmp_table #29167
    peterlaursen
    Participant

    For me it is like you tell:

    SHOW GRANTS;

    /*

    Grants for temptest@localhost


    GRANT CREATE TEMPORARY TABLES ON *.* TO 'temptest'@'localhost'

    */

    USE test;

    CREATE TEMPORARY TABLE temptab (id INT, txt VARCHAR(20));

    — success

    INSERT INTO temptab VALUES (1,'a');

    /

    Error CODE : 1142

    INSERT command denied TO USER 'temptest'@'localhost' FOR TABLE 'temptab'

    */

    — as root

    GRANT ALL ON test.* TO 'temptest'@'localhost';

    — new connection as temptest

    USE test;

    CREATE TEMPORARY TABLE temptab (id INT, txt VARCHAR(20));

    INSERT INTO temptab VALUES (1,'a');

    — success

    — now revoking most privileges to test database (only privileges to an empty table `t1` is still there) and reconnecting;

    SHOW GRANTS;

    /*

    Grants for temptest@localhost


    GRANT CREATE TEMPORARY TABLES ON *.* TO 'temptest'@'localhost'

    GRANT ALL PRIVILEGES ON `test`.`t1` TO 'temptest'@'localhost'

    */

    USE test;

    CREATE TEMPORARY TABLE temptab (id INT, txt VARCHAR(20));

    INSERT INTO temptab VALUES (1,'a');

    /*

    Error Code : 1142

    INSERT command denied to user 'temptest'@'localhost' for table 'temptab'

    */

    BUT: If I as root “GRANT ALL ON test.t99 TO 'temptest'@'localhost';” then user 'temptest' will be able to “CREATE TEMPORARY TABLE t99 ..” and INSERT and SELECT etc. as well. So this is the workaround: GRANT ALL on specific table names and tell user only to use those names for temporary tables.

    I have created a new bug report with MySQL: http://bugs.mysql.com/bug.php?id=45653

    (good chances that they say *not a bug*! 🙂 )

    in reply to: User Can't Select His Tmp_table #29166
    peterlaursen
    Participant

    ok … this is a server issue then.

    I find this old and somewhat realted bug report: http://bugs.mysql.com/bug.php?id=179 . It is marked as 'closed' but I do not find a conclusion!

    Let me try to research a little!

    in reply to: User Can't Select His Tmp_table #29164
    peterlaursen
    Participant

    If it is a temporary table created like “CREATE TEMPORARY TABLE … ” then only the user and session who created it we be able to access ti. Temporary tables in MySQL are session-based. A session does not know about temporary tables created in other sessions.

    in reply to: Download Links #29098
    peterlaursen
    Participant

    There is 1 year of free upgrades included with every purchase.

    in reply to: Linux Sja Return Code #29134
    peterlaursen
    Participant
    in reply to: Setting Up #29163
    peterlaursen
    Participant

    You need the ENTERPRISE versions to do automated backups. You find it in the 'powertools .. scheduled backups' menu.

    With the COMMUNITY version you may backup manually from the 'database' menu.

    Please start RTFM!! ('help .. help' menu).

    in reply to: '-dir' Parameter #29162
    peterlaursen
    Participant

    1) if your removeable drive is “drive e:” just install to (for instance) e:sqlyog. If you want the sqlog.ini and other writeable files also in e:sqlyog the command is

    Code:
    SQLyog -dir “e:sqlyog”

    (paths with a SPACE or a COLON must be “quoted”

    You may edit the command in the 'properties' of a desktop or startmenu icon created by the installer.

    So I do not see the problem and do not understand why you are asking. I will work. I you have some issue, please detail.

    2) When you install I think it gets added to Add/Remove on the machine where you install (doesn't it?). But of course not if you next bring the removeable drive where it is installed to another machine. Actually in my opinion it does not makes sense to me to add to Add/Remove if not isntalled on a permanent drive, but there are several way to remove it.

    in reply to: #28807
    peterlaursen
    Participant

    Is the database on a hosted/shared server or do you manage the server yourself?

    Anyway you can try with SQLyog .. tools .. user management .. edit user. But on a shared server you may need to use some control panel application for user management.

    in reply to: Database Connections #29161
    peterlaursen
    Participant

    You should explain what problem you are facing now. But read this FAQ:

    http://www.webyog.com/faq/content/23/18/en…ion-denied.html

    so most important

    1) create 'someuser'@'%' with what privileges you want ('%' means 'any host').

    2) ensure that firewall systems etc allows for remote connections and set up port forwarding in your router if you have such.

    in reply to: Feature Requests In Manage Privileges Dialog #29155
    peterlaursen
    Participant
    in reply to: Linux Sja Return Code #29132
    peterlaursen
    Participant

    Is it errors occurring with SJA itself of MySQL errors or both you are interested in and how detailed?

    Do you want us to print all errors (and warnings?) that MySQL sends and if any of the kind occurs you want an error code that you can use for a condition in the script?

    in reply to: Feature Requests In Manage Privileges Dialog #29153
    peterlaursen
    Participant

    Actualy I thought that shift+click would be functional here. We have announced lately that it was in 'all grids', but not here. Click the first and shift+click the last would be in accordance with how it is elsewhere in our grids.

    Maybe it was simply overlooked or maybe there are some problems with this particular one. We will discuss.

    in reply to: Another Small Sql Formatter Issue (with "between") #29159
    peterlaursen
    Participant

    .. and it does not even help to add paranthesis's like

    Code:
    SELECT * FROM table1 WHERE (field1 BETWEEN 1 AND 2) AND (field2 > 3)

    I am afraid this will be a tough one. The formatter does not know the meaning of SQL. It recognizes string patterns using regular expressions. But maybe some additional condition can be added to that reqex when keyword BETWEEN appears in the string (like first AND after BETWEEN has anohter meaning that what AND normally has).

    in reply to: Automatic Foreign Key Naming #29156
    peterlaursen
    Participant

    I think it will be difficult across sessions. But can't you leave it empty and the server will name the constraint? I will have to refresh my mind about it.

    in reply to: Sql Formatter #29126
    peterlaursen
    Participant

    I know Everest program (from Lavalys, right?).

    Please find help at http://www.lavalys.com. We cannot help here of course.

Viewing 15 posts - 1,861 through 1,875 (of 7,398 total)