2010年4月13日
摘要: create database testdb; /* 创建数据库 */use testdb; /* 打开数据库 *//*grant 普通数据用户,查询、插入、更新、删除 数据库中所有表数据的权利*/grant select,insert,update,delete on testdb.* to common_user@'%'; grant select,insert,update,delete on testdb.* to common_user@'localhost'; /* (.*代表所有表) @后的%代表所有用户,本地,远程都可以通过网络访问,@local 阅读全文
posted @ 2010-04-13 14:59 Renn.Erann 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 在root账号中,可以正常调用存储过程.换到common_user账号时,同一存储过程名调用出现问题.追踪调试时出现:SELECT command denied to user 'common_user'@'localhost' for table 'proc' 搜索解决方案:MySqlConnection myconnection = new MySqlConnection("server=localhost;user id=common_user; password=***;database=testdb; Use Procedur 阅读全文
posted @ 2010-04-13 14:44 Renn.Erann 阅读(1116) 评论(0) 推荐(0) 编辑