ERROR 1005: Can't create table (errno: 121) errno 121 means a duplicate key error. Probably the table already exists in the InnoDB internal data dictionary, though the .frm file for the table has been deleted. This is themost common reason for gettin…
错误信息:Cannot drop index 'energy_type_id': needed in a foreign key constraint 创建device表的信息 CREATE TABLE `device` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `device_type_id` int(16) NOT N…
Navicat远程无法创建数据库 提示报错信息如下,说明是用户创建的权限不足. Error Code: 1044. Access denied for user 'root'@'%' to database 打开宝塔面板的控制台,输入下面命令看到 mysql> SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user; +--------------+---------+----------------------------…