I have this kind of table on my Database MySql :
CREATE TABLE `users` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`surname` VARCHAR(255) NOT NULL,
`nickname` VARCHAR(255) NOT NULL,
`password` VARCHAR(255) NOT NULL,
`mail` VARCHAR(255) NOT NULL,
`country` VARCHAR(255) NOT NULL,
`birthday` VARCHAR(255) NOT NULL DEFAULT '0000-00-00',
`accessres` TINYINT(11) UNSIGNED NOT NULL DEFAULT '0',
`admin` TINYINT(11) UNSIGNED NOT NULL DEFAULT '0',
`datereg` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`forum_ban` TINYINT(11) UNSIGNED NOT NULL DEFAULT '0',
`last_access` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=MyISAM
ROW_FORMAT=DEFAULT
AUTO_INCREMENT=209
How you can see, collate is utf8_general_ci. The problem is when I export-import this table using HeidiSQL (6.0)-phpMYADMIN.
For example, if I have data such as Krüger, it is exported-imported as Krüger!
My whole application is on utf8, so on DB Krüger is really written as Krüger.
So there are some wrong in the export. What can I do? I think the problem is phpMyAdmin, because if I try to import the table again on HeidiSQL, the text are correct.
Do you see the issue when you open the exported file or import it back into a database. If you are seeing the error when importing with phpMyAdmin, you might need to import via the command line and use the flag.
Ive run into these issues as well and importing via the command line and using this flag has worked.
If you have a file exported from phpMyAdmin, you can import it by doing this on the command line.