C++代码往数据库插入数据--failed

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/uagvdu/article/details/79219284

问题描述:

  用户已经创建却始终无法插入数据成功: 

方法:

 create user 'admin'@'localhost'
 grant all privileges on *.* to admin@localhost identified by '2582'

原因:

在于未授权,你必须给该用户授予权限:增删查改等,才能正确插入数据

猜你喜欢

转载自blog.csdn.net/uagvdu/article/details/79219284