- 论坛徽章:
- 8
|
本帖最后由 ruochen 于 2010-05-18 16:22 编辑
- grant create temporary tables,insert on test.* to test1@localhost identified by "123";
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 19285
- Server version: 5.0.45 Source distribution
- Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
- test1@localhost:(none) 16:16:57>use test
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
- Database changed
- test1@localhost:test 16:16:59>create temporary table temp(a int);
- Query OK, 0 rows affected (0.00 sec)
- test1@localhost:test 16:17:01>insert into temp values(1);
- Query OK, 1 row affected (0.00 sec)
- test1@localhost:test 16:17:30>show grants for test1@localhost;
- +-------------------------------------------------------------------------------------+
- | Grants for test1@localhost |
- +-------------------------------------------------------------------------------------+
- | GRANT USAGE ON *.* TO 'test1'@'localhost' IDENTIFIED BY PASSWORD '773359240eb9a1d9' |
- | GRANT INSERT, CREATE TEMPORARY TABLES ON `test`.* TO 'test1'@'localhost' |
- +-------------------------------------------------------------------------------------+
- 2 rows in set (0.00 sec)
复制代码 |
|