无法创建架构-MySQL Workbench

时间:2019-06-04 08:34:46

标签: mysql mysql-workbench

我遇到以下问题。我正在尝试从工作台创建一个新的架构,但是我正在这样做。

enter image description here

通过终端在mysql中的连接正常。

Theodosioss-MacBook-Pro:~ theodosiostziomakas$ mysql -u theo -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.13 MySQL Community Server - GPL


Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql>

确保我有正确的用户

mysql> select current_user();
+----------------+
| current_user() |
+----------------+
| theo@localhost |
+----------------+
1 row in set (0.00 sec)


mysql>

我输入的是

+-------------------------------------------------------------+
| Grants for theo@localhost |
+-------------------------------------------------------------+
| GRANT USAGE ON *.* TO `theo`@`localhost` |
| GRANT ALL PRIVILEGES ON `photo_app`.* TO `theo`@`localhost` |
+-------------------------------------------------------------+

我当然需要更改特权。

GRANT ALL PRIVILEGES ON *.* TO 'theo'@'localhost';

再找回

Access denied for user 'theo'@'localhost' (using password: YES)

任何想法如何解决此问题?我可以删除mysql,但是我确定有解决方案。我正在使用Macbook Pro的机器。

0 个答案:

没有答案