Код: Выделить всё
% mysql -u xtvd_app -p xtvd
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 18
Server version: 11.6.2-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [xtvd]> show grants for 'xtvd_app'@'localhost';
+-----------------------------------------------------------------------------------------------------------------+
| Grants for xtvd_app@localhost |
+-----------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `xtvd_app`@`localhost` IDENTIFIED BY PASSWORD '*F6831D52850C078CEE6AE2C063EC11BCAC55D17D' |
| GRANT ALL PRIVILEGES ON `xtvd`.`xtvd` TO `xtvd_app`@`localhost` |
+-----------------------------------------------------------------------------------------------------------------+
2 rows in set (0.002 sec)
mysql -u xtvd_app -p xtvd < /Users/johnson/Dropbox/channel_list_backup/xtvd.sql
Enter password:
--------------
DROP TABLE IF EXISTS `channel_list`
--------------
ERROR 1142 (42000) at line 22: DROP command denied to user 'xtvd_app'@'localhost' for table `xtvd`.`channel_list`
< /code>
не должен предоставлять все привилегии, охватывающие базовые вещи, такие как Drop или Create Table?>
Подробнее здесь: https://stackoverflow.com/questions/793 ... mariadb-11
Мобильная версия