注意:我使用000webhost.com的phpmyadmin 我的编码是
CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
WITH GRANT OPTION;
CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
WITH GRANT OPTION;
我的错误是
1227 - 拒绝访问;您需要此操作的CREATE USER权限
答案 0 :(得分:-1)
确保您拥有正确的数据库配置:
define('DB_HOST', 'mysq--.000webhost.com');