Hi, I would like you to help me, someone knows why:
create a database with powerdesigner for Mysql.
When I upload it locally, phpmyadmin with xammp works, all the foreign keys are created.
But when I upload it to phpmyadmin of a hostgator hosting, foreign keys are not created.
What do you think it could be?
create this test
/ ============================================ =================== / / * DBMS name: MySQL 5.0 / / Created on: 07/03/2018 14:18:26 / / ============================================================== ================= * /
drop table if exists LIBRARY;
drop table if exists BOOKS;
/ ============================================ =================== / / * Table: LIBRARY / / ============================================================== ================= * / create table LIBRARY ( BIB_CODIGO int not null, BIB_NAME varchar (30), primary key (BIB_CODIGO) );
/ ============================================ =================== / / * Table: BOOKS / / ============================================================== ================= * / create table BOOKS ( LIB_CODIGO int not null, BIB_CODIGO int, LIB_NAME varchar (30), LIB_PAGINAS int, primary key (LIB_CODIGO), FOREIGN KEY (BIB_CODIGO) REFERENCES LIBRARY (BIB_CODIGO) ); when the local charge is created the FK but in the hosting that is hostgator they are not created and it does not indicate any error or anything