Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 授予用户PHPMYADMIN权限的问题_Mysql_Linux_Apache_Mariadb - Fatal编程技术网

Mysql 授予用户PHPMYADMIN权限的问题

Mysql 授予用户PHPMYADMIN权限的问题,mysql,linux,apache,mariadb,Mysql,Linux,Apache,Mariadb,我正在尝试向用户授予phpmyadmin上的所有权限,以便用户可以向其数据库添加排序规则。 但是,一旦输入命令: 将**上的所有权限授予'admin'@'localhost' 它显示: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near G

我正在尝试向用户授予
phpmyadmin
上的所有权限,以便用户可以向其数据库添加排序规则。 但是,一旦输入命令:

将**上的所有权限授予'admin'@'localhost'

它显示:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost';
我很确定语法是正确的

“…GRANT…”附近的语法错误可能意味着,
GRANT
之前的任何内容都是真正的语法错误。可能是丢失了一个
?也许是别的


“语法错误”非常擅长精确地指向或紧跟在有问题的令牌之后。

请重新启动
MariaDB
服务器。尝试使用此脚本授予特权
将**上的所有特权授予'myuser'@localhost不,不需要重新启动,只需
刷新权限:
无论如何,这不会是问题所在。。。