Database Error: 1142 - SELECT command denied to user 'cl****_bd'@'localhost' for table 'entity_21'
Добавлено: 21 фев 2025, 21:00
Доброго времени суток!
Решил попробовать "Конструктор отчётов", т.к. есть необходимость свести данные с разных сущностей.
Сам далекий от написания кода человек, но на примере из обучалки вроде получилось разобраться.
При попытке открыть отчёт выдает ошибку:
Database Error: 1142 - SELECT command denied to user 'cl****_bd'@'localhost' for table 'entity_21'
Query: Select sum(e.field_216) as total, e.field_159 as order_date from app.entity_21 e where from_unixtime(e.field_159, '%Y') = 2025-02-21 group by from_unixtime(e.field_159, '%Y-%m') order by e.field_159
Page: /index.php?module=report_page/view&token=kpsIG1gA9v&action=load&id=2&path=
#0 includes/functions/database.php(99): mysqli_query(Object(mysqli), 'Select\r\n\tsum(e....')
#1 plugins/ext/classes/report_page/blocks_table.php(604): db_query('Select\r\n\tsum(e....', false)
#2 plugins/ext/classes/report_page/blocks_table.php(66): report_page\blocks_table->render_table()
#3 plugins/ext/classes/report_page/blocks_table.php(56): report_page\blocks_table->render_chart_layout()
#4 plugins/ext/classes/report_page/blocks_html.php(79): report_page\blocks_table->render()
#5 plugins/ext/classes/report_page/report.php(80): report_page\blocks_html->render()
#6 modules/report_page/actions/view.php(72): report_page\report->get_html()
#7 index.php(31): require('/home/c/cl****...')
#8 {main}
Как понял, проблемы с доступом к данным из БД, хотя захожу под админом.
Подскажите, пжт, как решить проблему?
Решил попробовать "Конструктор отчётов", т.к. есть необходимость свести данные с разных сущностей.
Сам далекий от написания кода человек, но на примере из обучалки вроде получилось разобраться.
При попытке открыть отчёт выдает ошибку:
Database Error: 1142 - SELECT command denied to user 'cl****_bd'@'localhost' for table 'entity_21'
Query: Select sum(e.field_216) as total, e.field_159 as order_date from app.entity_21 e where from_unixtime(e.field_159, '%Y') = 2025-02-21 group by from_unixtime(e.field_159, '%Y-%m') order by e.field_159
Page: /index.php?module=report_page/view&token=kpsIG1gA9v&action=load&id=2&path=
#0 includes/functions/database.php(99): mysqli_query(Object(mysqli), 'Select\r\n\tsum(e....')
#1 plugins/ext/classes/report_page/blocks_table.php(604): db_query('Select\r\n\tsum(e....', false)
#2 plugins/ext/classes/report_page/blocks_table.php(66): report_page\blocks_table->render_table()
#3 plugins/ext/classes/report_page/blocks_table.php(56): report_page\blocks_table->render_chart_layout()
#4 plugins/ext/classes/report_page/blocks_html.php(79): report_page\blocks_table->render()
#5 plugins/ext/classes/report_page/report.php(80): report_page\blocks_html->render()
#6 modules/report_page/actions/view.php(72): report_page\report->get_html()
#7 index.php(31): require('/home/c/cl****...')
#8 {main}
Как понял, проблемы с доступом к данным из БД, хотя захожу под админом.
Подскажите, пжт, как решить проблему?