踩坑系列《一》数据库建表权限 CREATE command denied to user for table

今天在表中用Navicat连接服务器上的mysql账号进行建表,报了个这样类似的错, CREATE command denied to user for table

是数据库权限设置的问题,所以无法进行创建。只需给对应账户,赋予所有的权限即可:
mysql>grant all privileges on data.* to work; //data是数据库,work是操纵data的用户

mysql>flush privileges; //刷新系统权限表。

转载自 https://www.cnblogs.com/wayneliu007/p/10393598.html

猜你喜欢

转载自blog.csdn.net/hyx1249273846/article/details/105918988