Forum Replies Created
-
AuthorPosts
-
peterlaursen
ParticipantFor 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*! 🙂 )
peterlaursen
Participantok … 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!
peterlaursen
ParticipantIf 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.
peterlaursen
ParticipantThere is 1 year of free upgrades included with every purchase.
peterlaursen
ParticipantI have added here: http://code.google.com/p/sqlyog/issues/detail?id=1103
peterlaursen
ParticipantYou 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).
peterlaursen
Participant1) 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.
peterlaursen
ParticipantIs 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.
peterlaursen
ParticipantYou 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.
peterlaursen
Participantpeterlaursen
ParticipantIs 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?
peterlaursen
ParticipantActualy 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.
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).
peterlaursen
ParticipantI 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.
peterlaursen
ParticipantI know Everest program (from Lavalys, right?).
Please find help at http://www.lavalys.com. We cannot help here of course.
-
AuthorPosts