表'global_variables'

时间:2019-10-02 12:16:16

标签: mariadb

我正在容器中运行mariadb,并且在启动SpringBoot应用程序的容器时,我的控制台日志显示以下消息:

java.sql.SQLSyntaxErrorException: SELECT command denied to user 'useraccount'@'10.0.95.8' for table 'global_variables'

然后该应用程序继续关闭:

版本为:

MariaDB [mysql]> show global variables like 'hostname';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| hostname      | mysql |
+---------------+-------+
1 row in set (0.002 sec)

MariaDB [mysql]> select @@global.hostname;
+-------------------+
| @@global.hostname |
+-------------------+
| mysql             |
+-------------------+
1 row in set (0.001 sec)

MariaDB [mysql]> select @@version;
+---------------------+
| @@version           |
+---------------------+
| 10.3.12-MariaDB-log |
+---------------------+
1 row in set (0.001 sec)

我看过这个question

0 个答案:

没有答案