2
In the old days when I was exporting a database I was like this:
CREATE TABLE `config` (
`ID_Config` int(1) NOT NULL AUTO_INCREMENT,
`nome_site` varchar(255) DEFAULT NULL,
`thema` char(50) NOT NULL,
PRIMARY KEY (`ID_Config`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
The auto_incremente and Primary key were directly in the CREATE command.
Now when I export it gets like this:
CREATE TABLE IF NOT EXISTS `config` (
`Id` int(11) NOT NULL,
`versao` varchar(10) NOT NULL,
`sitemodelo` varchar(4) NOT NULL,
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 ;
--
-- Indexes for table `config`
--
ALTER TABLE `config`
ADD PRIMARY KEY (`Id`);
--
-- AUTO_INCREMENT for table `config`
--
ALTER TABLE `config`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
A class I found on the internet class.leitor_sql.php
does not read the rest of the commands, only what is inside the CREATE
.
Question: There is a way to change mysql export configuration in phpMyAdmin?
Thank you.
You know what was changed for it to start generating different export?
– Ricardo
@Ricardo I believe it’s the version, because it changed on its own.
– Tiago