当我将这个sql片段输入phpmyadmin时,不会发生任何事情,也不会返回任何错误消息。
我能做些什么来修复它?
CREATE DATABASE `moodle`
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER ‘moodle-owner’@’localhost’;
CREATE USER ‘moodle-owner’@’127.0.0.1’;
CREATE USER ‘moodle-owner’@’::1′;
SET PASSWORD FOR ‘moodle-owner’@’localhost’ = PASSWORD(‘moodle123$%’);
SET PASSWORD FOR ‘moodle-owner’@’127.0.0.1’ = PASSWORD(‘moodle123$%’);
SET PASSWORD FOR ‘moodle-owner’@’::1′ = PASSWORD(‘moodle123$%’);
1条答案
按热度按时间sbtkgmzw1#
我不确定您运行的是哪个版本的mysql,但在5.7中
SET PASSWORD
已弃用。尝试使用设置用户密码IDENTIFIED BY
在与相同的查询中CREATE USER
.