[英]Mysql Table creation from Mysql workbench to phpmyadmin
Hi i had the following table structure on mysql workbench for a table example_1
嗨,我在mysql工作台上有以下表结构,用于表example_1
But because of some reasons i want to recreate all the tables in phpmyadmin
with the create table sysntax
like below 但是由于某些原因,我想使用以下create table sysntax
重新创建phpmyadmin
所有表
Create table code in MYSQL workbench : 在MYSQL工作台中创建表代码 :
CREATE TABLE `example_1` (
`job_id` int(11) NOT NULL AUTO_INCREMENT,
`source_id` int(11) DEFAULT NULL,
`publication_id` int(11) DEFAULT NULL,
`facility_id` int(11) DEFAULT NULL,
`job_type_id` int(11) NOT NULL,
`template_id` int(11) DEFAULT NULL,
`account_num` varchar(9) DEFAULT NULL,
`start_dt` datetime DEFAULT NULL,
`end_dt` datetime DEFAULT NULL,
`pdf_path` varchar(20) DEFAULT NULL,
`admin_user_id` int(11) NOT NULL,
`skills` varchar(255) DEFAULT NULL,
`tracking_pixel` varchar(255) DEFAULT NULL,
`auto_renew` smallint(6) DEFAULT NULL,
PRIMARY KEY (`job_id`),
KEY `source_id_idxfk` (`source_id`),
KEY `facility_id_idxfk` (`facility_id`),
KEY `job_type_id_idxfk` (`job_type_id`),
KEY `template_id_idxfk` (`template_id`),
CONSTRAINT `jp_job_ibfk_1` FOREIGN KEY (`source_id`) REFERENCES `jp_source` (`source_id`),
CONSTRAINT `jp_job_ibfk_2` FOREIGN KEY (`facility_id`) REFERENCES `adm_facility` (`facility_id`),
CONSTRAINT `jp_job_ibfk_3` FOREIGN KEY (`job_type_id`) REFERENCES `jp_job_type` (`job_type_id`),
CONSTRAINT `jp_job_ibfk_4` FOREIGN KEY (`template_id`) REFERENCES `jp_template` (`template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8
I had copied and pasted the same in phpmyadmin
to create the same table, then i got the following error 我已经在phpmyadmin
复制并粘贴了相同的文件以创建相同的表,然后出现以下错误
Error : 错误 :
InnoDB
Supports transactions, row-level locking, and foreign keys
[ Variables | Buffer Pool | InnoDB Status ]
Can anyone please let me know how to edit the code in order to avoid errors and create a table in phpmyadmin sql editor 任何人都可以让我知道如何编辑代码以避免错误并在phpmyadmin sql编辑器中创建表
It seems that INNODB
Engine is disabled on your server. 您的服务器上似乎已禁用了INNODB
Engine。 Just remove any disable options for innodb in /etc/my.cnf
and restart mysql
. 只需删除/etc/my.cnf
innodb的所有禁用选项,然后重新启动mysql
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.