公司有一台专门的服务器给各个项目组开发用,我的数据库也是跑在上面的
现在想使用MySQL的存储过程,但是在我的数据库创建存储过程的时候老提示
1044-Access denied for user....
上网查了下说用root权限可以
但那么多项目组,各组有各组的数据库,公司规定是不能碰别组数据库的,当然也不可能分配个root权限的出来
这情况下如何创建存储过程?怎么做???
想不通,为啥创建个存储过程还要那么高权限
求教啊~~
知道的都来说点吧,学习嘛多多益善
现在想使用MySQL的存储过程,但是在我的数据库创建存储过程的时候老提示
1044-Access denied for user....
上网查了下说用root权限可以
但那么多项目组,各组有各组的数据库,公司规定是不能碰别组数据库的,当然也不可能分配个root权限的出来
这情况下如何创建存储过程?怎么做???
想不通,为啥创建个存储过程还要那么高权限
求教啊~~
知道的都来说点吧,学习嘛多多益善
解决方案 »
- pgsql安装错误 /etc/init.d/postgresql-9.1 initdb
- SQL脚本执行命令行窗口自动关闭
- mysql一对多,怎么返回join表的第一条记录
- 求助~一条SqlServer2000的触发器语句转换为mysql5.0的触发器语句
- PostgreSQL主键是serial类型,但无法建立外键?
- 我用php程序连接 mysql 显示文章,为什么全为 ? 输出
- 请问关于如何同时对两个数据库进行操作的问题????急噢...
- 问个mysql启动的简单问题,见笑了。
- mySQL 安装的时候应该选择哪个?
- 有没有谁会熟练的使用navicat premium
- 重新配置MYSQL的字符集为UTF8
- JSP访问mysql数据库取一条数据时,速度很慢。。求优化方案!
create routine、 alter routine、 execute分别是创建权限、修改权限、执行权限.你把这些权限给你创建的用户就行了。
C:\>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.40-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> grant create ROUTINE,alter ROUTINE,EXECUTE on aaa.* to uuuu@localhost ide
ntified by '123456';
Query OK, 0 rows affected (0.03 sec)mysql> \q
ByeC:\>mysql -uuuuu -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.1.40-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| aaa |
+--------------------+
2 rows in set (0.00 sec)mysql> use aaa;mysql> delimiter $$
mysql> create procedure pro()
-> begin
-> select 'Mablevi' as name;
-> end;$$
Query OK, 0 rows affected (0.03 sec)mysql> delimiter ;
mysql> call pro();
+---------+
| name |
+---------+
| Mablevi |
+---------+
1 row in set (0.00 sec)Query OK, 0 rows affected (0.03 sec)