Raised This Month: $51 Target: $400
 12% 

Mysql import problem (uppercase and lowercase)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
firstride
Member
Join Date: Jun 2011
Old 07-16-2013 , 09:38   Mysql import problem (uppercase and lowercase)
Reply With Quote #1

Hello. I have a problem.
I imported to mysql some values:

AUTHid Password Credits Timestamp

The problem is: In import sql , i have at authid: "SWAT" , and another "swat" or "swatx"

And in the mysql , after imort , i think it see's them duplicate , and only one value it's imported , i think the firt , in this example , "SWAT" , and the rest are not imported.
So i wan't in database to be SWAT and swat and SwaT or swatx or wathever
Sorry for my english

How can i solve that ? Please help , i need this

Last edited by firstride; 07-16-2013 at 09:40.
firstride is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-16-2013 , 09:42   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #2

What does this have to do with AMXX? Refer to your SQL Manual and check the keys and flags on the table
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 07-16-2013 , 09:45   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #3

http://stackoverflow.com/questions/4...case-sensitive
__________________
Impossible is Nothing
Sylwester is offline
firstride
Member
Join Date: Jun 2011
Old 07-16-2013 , 10:30   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #4

Already id set on utf8_general_ci ....

Tamikaitou , in the .sma i have:

SQL_QueryAndIgnore(g_Sql,"CREATE TABLE IF NOT EXISTS `%s` (`auth` VARCHAR(36) NOT NULL, `password` VARCHAR(32) NOT NULL DEFAULT '', `amount` INT(10) NOT NULL DEFAULT 0, `timestamp` INT(10) NOT NULL DEFAULT 0, PRIMARY KEY (`auth`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;", g_vars[table]);

That's the table i have inserted , and the players are deleted if it's: KANE or KaNe
firstride is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 07-16-2013 , 10:53   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #5

utf8_general_ci is case-insensitive. Change it to utf8_general_cs and try again...
__________________
Impossible is Nothing
Sylwester is offline
firstride
Member
Join Date: Jun 2011
Old 07-16-2013 , 12:13   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #6

I have only _ci , nothing with _cs at the end
firstride is offline
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 07-16-2013 , 14:43   Re: Mysql import problem (uppercase and lowercase)
Reply With Quote #7

PHP Code:
SET NAMES utf8
and
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci
Clauu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode