Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在绑定 MySQL 连接时遇到问题。我有一个使用 MySQL 5.5 的专用服务器。因为我需要一个旧版本,所以我下载、编译并安装了 MySQL 4.12。
一切正常,除了绑定。我无法绑定连接。
我什至创建了一个允许特定 IP 的新用户,但任何其他 IP 也可以连接到它。
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'1.1.1.1' IDENTIFIED BY 'password' WITH GRANT OPTION;
使用反引号而不是引号。
像这样:
`newuser`@`1.1.1.1`