我用的是mysql的root建立的连接,为何还没有权限?最后进行了如下修改才可以:mysql –pmysql> grant all privileges on enong.* to your_user_name@localhost identified by ‘your_password’ with grant option;mysql> grant all privileges on enong.* to your_user_name@’ns.sctown.com’ identified by ‘your_password’ with grant option;mysql> grant all privileges on enong.* to your_user_name@’192.168.1.2’ identified by ‘your_password’ with grant option;mysql> grant all privileges on enong.* to your_user_name@’%’ identified by ‘your_password’ with grant option;mysql>exitConnection conn = DriverManager.getConnection("jdbc:mysql://ns.sctown.com/enong","your_user_name","your_password");
解决方案 »
- mysql sql查询
- 急!!matlab连接mysql中没有jdbc驱动
- mysql怎么实现oracle这种不等待加锁的问题select... for update no wait的效果?
- 求教关于CLUSTER中的MANAGEMENT NODE的配置
- 表1有a,b,c三个字段,c为日期,要求把a='大妈'的多条记录中的b按c的先后顺序填入1,2,3....求sql语句写法
- 求mysql sql语言参考~
- mysql+php如何连接多个数据库,急!!!
- 我正在开发一个MySQL客户端
- 用过pb 和 mysql 的朋友请帮帮忙。
- 关于mysql创建索引
- 对mysql的权限设置我有点不懂,请大虾指点一二!!
- 两个表同时插入操作问题
User = root
Password = yourpassword你的这一条语句正好建立它
mysql> grant all privileges on enong.* to your_user_name@’ns.sctown.com’ identified by ‘your_password’ with grant option;