Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Importing W/sql Scripts W/utf8 Encoding Using PhpMyAdmin & MySQL Query Browser


NB: Some of this is related to the The Definitive Guide to Web Character Encoding article but I thought it would be best to ask these questions in here because of your experience with MySQL. Please excuse me if I've made a mistake in making this post here.

QUESTIONS Does anyone know how to correctly run an sql import script with utf8 encoding in phpMyAdmin so that the utf8 text appears correctly when the content is pulled into a browser?Does anyone know how to view and edit text in phpMyAdmin & MySQL Query Browser so that the characters will stay in utf8 format for phpMyAdmin & MySQL Query Browser and for the browser when it pulls the data from the table?
BACKGROUND
I've had some difficulty running sql scripts from phpMyAdmin that have utf8 encoding and having that content appear correctly in a web page. I've also had issues with viewing and editing content in phpMyAdmin and MySQL Query Browser when the tables and content are set to utf8.The table and columns all have utf8 set as the character set.The sql script is encoded as utf8.The web page that pulls the data from the tables has the <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> in the header.MySQL Query Browser has Arial Unicode MS set as its font so that I can view most unicode characters in it.
After the sql script is run against the db via phpMyAdmin the characters appear without issue in phpMyAdmin or MySQL Query Browser but when they're pulled via a PHP script to appear in a web page the characters do not appear correctly.

If I submit content via a browser's web form that's encoded with utf8 the characters come back in the browser without issue but the characters do not appear correctly in phpMyAdmin or in MySQL Query Browser when I browse the tables.

If I edit the content in a table using phpMyAdmin or MySQL Query Browser the content appears correctly in phpMyAdmin & MySQL Query Browser but no longer appears correctly in the web page.

SOLUTION
For now I found that using a PHP script to read and process the sql file I can get the data into the db and the content will appear correctly in a web page but this avoids the use of phpMyAdmin & MySQL Query Browser. I'd like to be able to use phpMyAdmin & MySQL Query Browser every now and then ... any ideas on what I might be doing wrong?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
MySQL Encoding To Use Utf8 - Language Display Problem
My website (Linux OS) has some problem with language output. I use UTF-8 encodings for the website pages, for the browser but some words are still outputted incorrectly. (I'm using CMS mambo.) I was adviced to look into the string used in the MySQL database.

What should I modify to make the database code in utf8? Can I do this in Phpmyadmin? (Execute the Alter command?)

MySQL, PhpMyAdmin And The UTF-8 Encoding
I currently making a form and it's all going well and stuff. But when I input chinese information into the form, and save it to the database, it displays as gibberish in the phpmyadmin table viewer.

How can I fix this problem?

Problems With Using Utf8 Encoding For Not Latin Characters
I'm building a multilingual site using MySQL. Default character set is UTF-8. When i insert standart Latin caracters into the table it's all right but as soon as i try to use other characters(extended Latin, Cyrillic etc.) i recive error 1406 : data to long for column ... It looks like MySQL using one-byte sequence in second case though it should use two-byte sequence.

UTF8, Problem When Importing Dump
I'm trying to import multilanguage database dump. When I try to open this dump with text editor all text in languages other than english display correctly.

I'm trying to import this UTF8 dump into MySQL table. First, I'm creating table:

CREATE TABLE `table` (
....
) CHARACTER SET utf8 ;

Then I import dump into database:

mysql> load data infile 'file.txt'

When I'm viewing database with MySQL Query Browser, international characters looks incorrect. For example, "Ð?делаида" instead of russian "&#1040;&#1076;&#1077;&#1083;&#1072;&#1080;&#1076;&#1072;".

By the way, when I enter data manually using MySQL Query Browser into the MySQL database, everything works fine.

Mysql Query Browser
I wander how can i connect to database by using mysql query browser using my cpanel account
remotemysqlhost,username, password

Using The MySQL Query Browser
I am in the RESULTSET 1 tab and I've tried to run multiple querys in the query window such as:

SELECT PKEY, ENTITYCODE, REQNNUM FROM INVPO.INVPO_POI;
select * from INVPO.INVPO_POI_APV

and I've also tried this in the Script 1 tab but I cannot see any results.

I just want to be able, like in Query Browser in SQL Server, to see sets of results.

Mysql Query Browser
I am trying to run the following statements in mysql query browser

DROP TABLE IF EXISTS `bedbugs`.`airports`;

CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`country` char(20) default NULL,
`name` char(20) NOT NULL default '',
PRIMARY KEY (`name`)
);


basically two different queries through one query window.

I get the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`cou' at line 1


Can someone explain what is going on. If I comment out either query - the other one runs fine (basically I can run one at a time).

Is this some sort of limitation of the query browser?

MySQL Query Browser
I am using the MySQL Query Browsers, and when I am performing some actions, like changing the character set or collation, it gives my syntax errors and won't commit the change.
Does anybody else have these problems with the MySQL query browser? And how do I fix these?
I am running on MySQL 5.0 Beta, but had same errors on MySQL 4.1

PhpAdmin & MySQL Query Browser
I am new comer to PHP. I come across phpAdmin & MySQL Query Browser, which to my opinion, perform similar task.

Can you guys tell me, phpAdmin & MySQL Query Browser, which one is better?

MySQL-Query-Browser Installation
I am currently migrating a db from SQL Server & MySQL and ? (front end yet
to be decided upon) As I familiarise myself with MySQL populating tables
etc can be quite clumbersome. After reading the MySQL site it appears the
"Query Browser" is the correct tool which I've downloaded, extracted and
followed the instruction for installing it... without success, it doesn't
work.

To clarify what I've done I've:
Downloaded: mysql-query-browser-1.1.6-linux.tar.gz
Extracted it using: tar -vzxf mysql-query-browser-1.1.6-linux.tar.gz
In the doc directory there is a html file that explains the installation
procedure under Linux...

"To install MySQL Query Browser, run this command:
shell> tar --directory=/opt -xzvf mysql-query-browser-version-linux.tar.gz

This installs the application binary in /opt/mysql-query-browser/bin. Change
into that directory and run mysql-query-browser to start the application.
You can replace /opt with your desired installation path."

I have done all of this and the files were extracted
to /opt/mysql-query-browser as expected.

The question is, how do I run the application?

Mysql Query Browser Import From Csv
The only way that I was able to backup my tables was from the mysql query browser export to csv option. I know that I am stuck with having to recreate the table schema's but right now I am having problems importing the tables. I am using phpMyAdmin, since there is no import feature in query browser. The problem that I am having is because double quotes (") are not escaped (") in the text fields, and phpMyAdmin is unable to insert all of the data. Is there a way to fix this issue, I have been able to open all of the files with microsoft excel, which seems to sort the columns out fine, even though they aren't escaped.

Can't Connect Using MySQL Query Browser
I'm having a little problem connecting remotely to my MySql database. First a little background on my setup. All machines are on my home LAN behind a router. Linux Machine; Ubuntu Linux with MySql installed and running without a problem, command line. Windows XP machine with MySql query browser client installed.

The problem comes in with trying to connect the XP machine to the Linux box to access the sql tables. It mainly says it can't connect to my database/schema. I know the database is fine(or at least it seems) because I can SSH over to it and run queries without a problem. I've tried using the IP address, the machine name to connect but nothing works. I've investigated the .sock files, ports and for some reason I can't get a good connection with the Windows client software to my database.

Insert A Record Using MySQL Query Browser
I know I can probably type in the actual query, but I was wondering if there was a means of inserting a record without typing "insert into table_name (blah, blah2) values (blah, blah)". I'm looking for a method as easy as typing into an Excel spreadsheet or Access DB. (I know I'm gonna get bashed for mentioning Microsoft products.)

Error After Installing MySQL Query Browser V. 1.1.20
After installing MySQLQuery Browser on a new computer (Windows XP Pro SP2), it works but there is a constant and rapidly flashing error on the bottom of the application. When you exit the application you get the following error:

Application Error
Exception EAccessViolation in module MySQLQueryBrowser.exe at 0003F211. Access violation at address 00040211. Read of address 00040211.

This application works on 2 other PCs but is acting crazy on the new PC. Any ideas? I know nothing about SQL, I'm just the PC support.

CREATE TABLE And MySQL Query Browser
I am using the ODBC 3.51 Driver to Do a "create database" and then create some tables on that database.

I see in the ..mysqldata directory my new database I have created and the associated .frm files, however MySQL Query Browser and Administrator do not see these schema's.

I am guessing it may be due to user privileges. MySQL is running locally and the connection string does not contain a Username and password.

Also, when I do show databases from within the Query Browser, it does not show my Database, only the one that I had created manually.

There must be some more setup that I am not aware of to register the Database or something.

MySQL Query Browser - ERROR 1044
I'm new to MySQL and am having a frustrating time figuring out some of the tools. I'm getting ERROR 1044 when I try to execute the following .....

MySQL Query Browser. Result Set Read Only
I'm developing a client/server application with mySQL. The mysql server (plus database) is on a Windows XP LAN pc in another office.

I installed mySQL several months ago and have been using Administrator and Querybrowser locally on a regular basis to administer and fiddle with the database on the other pc. I don't believe I've changed any settings.

I noticed a couple of weeks ago that if I tried to edit table data from Administrator, Query browser wouldnt display but would remain in task manager process list forever. If I did the same directly from query browser I would receive a result set ready to edit.....

Unable To Do Joins With MySQL Query Browser
I downloaded the Query Browser for Windows. I try to join two tables as described in the manual, drag over the JOIN tables tab but nothing happens. The query remains as is.

How To View Arabic Data In MySQL Query Browser
I am making a website on linux and i am using a program called rekall to view the database and also the table was created using this program.

most of the data in the database are in Arabic and rekall views the data in an acceptable manner with some errors and without any configuration

but when I tried MySQL Query Browser on windows and several other programs including navicat, toad, heidiSQL all the arabic data was not viewable except the data in blobs which can be exported to extenal files

The website encoding is [ar-eg] and [utf-8]
I want to view the arabic data stored in the table using a windows program
and if the program is fast and simple it would be much better as I am not the one who is going to use it

Mysql Query Browser...how Do I Ignore " Within A SET Statement?
I'm trying run this in mySQL query browser

Update xcart_classes x
Set classtext = "5 Year Protection <a href="javascript: void(0);" onclick="javascript: window.open('etp.htm','HELP_POPUP','width=406,height=261,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');" class="PopupHelpLink">Learn More</a>"
where Classtext = "Add 5-Year Extended Protection";
Obviously it fails, and I'm pretty sure it's because of the double quotes on my SET statement...any idea on how to avoid that?

MySQL GUI Tools Query Browser/Admin Login
I've just installed the GUI tools so I can get a little help with queries and table design, and I am not able to log into the administrator or the query browser. The login screens show up, I enter all the correct data, then the form grays out except for the cancel button and does nothing. Doesn't even eat up any system resources, so it doesn't even look like its trying.

I've turned off all firewall settings in case that might have cause the issue and it still doesn't work.

Executing Shell Command From Mysql Query Browser
This works fine when executing the shell command inside the MYSQL in command line

mysql> ! ls /home/www/htdocs/test
1000.xml class email test.xml test1.xml test2.xml

But when i execute the same with dynamic SQL and executed in TOAD for MYSQL, it throws error

SET @vSql:= '! ls /home/www/htdocs/test';
PREPARE vStmt FROM @vSql;
EXECUTE vStmt;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '! ls /home/www/htdocs/middleware/test' at line 1

Can some one clarify me Whether is that possible to execute the Shell commands from the query browser or it can be only used in the command line?

Changing Order Of Columns Using Mysql Query Browser
I have a table that is already created and I wanted to add a column, but put it somewhere in the middle of the table. is there a drag and drop (or something just as easy) method to move it up in the table? or do I have to re-create the whole table?

Importing With PhpMyAdmin
I want to import a csv file into my table. However, I need to empty
the table before I do this. The problem is, I only see an option to
"replace" the data. Is there a way to empty a table AND simultaneously
import a csv? I know this is possible with the mysqlimport command
(with the --delete argument), but I'm not if it's possible in
phpMyAdmin.

I'm using phpMyAdmin 2.9.0.2 and MySQL 4.1.10

UTF8, ASP And MySQL Querybuilder Stangeness & UTF8
I have a MySQL 4.1.11 database, table and table columns all configured as
utf8 as I need to accept data in a number of languages. The MySQL database
is hosted so I use SET NAMES utf8 in the connection string in ASP e.g.

sCon = "dsn=mydsn;uid=user;pwd=pass;stmt=set names utf8;option=3;".

The ASP pages are all charset utf8.

Now the ASP pages *seem* to work fine - I add some test characters (for
example special Turkish characters) from the ASP page, requery the database
for the added record and re-display it on the ASP page as a test. The
special characters appear to be stored correctly in the DB and re-displayed
on the ASP page as they were entered. Great! Well not quite....

I then look at the added data in QueryBuilder or Navicat and all the special
characters are displayed as gibberish (they are definately both configured
to display utf8 correctly). English characters are fine. So I use
Querybuilder to add some similar Turkish characters to the database - all
seems fine, the special characters are displayed as input in Querybuilder
and Navicat. I then look at the same added item in the ASP page and it shows
as gibberish for the special characters, all English characters are fine.

I am really confused as to what is going on - special characters entered in
ASP views fine when re-viewed on ASP but not in QB. Data entered in QB
displays fine when re-viewed in QB but gibberish in ASP. Any ideas as to
where things are going wrong with the encoding?

PHPMYADMIN Importing .csv File
I get an error message that says "Invalid field count in CSV input on line 17." But I have removed all extra commas and the number of fields in my CSV matches the number in MYSQL table.

I looked on lines 16,17 and 18 for extra commas or anything that might cause it to fail and it looks fine.

What am I missing here?

You know, its the "simple" stuff that frustrates me the most

Importing A Database To Phpmyadmin
I am trying to import this database to another site so in MySQL PHPMyAdmin I clicked on import and browse to groupd_datab1.sql which I exported from the previous website Code:

Importing .txt File Through PhpMyAdmin
I'm having problems trying to run a query into phpmyadmin. The error:

There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface.

The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below: Code:

Importing .csv File To PhpMyAdmin
I am trying to import a csv file into PhpMyAdmin. I get an error saying 'invalid field count'.
As far as i can tell i have the exact amount of fields in both csv file and database.
Is there anything i'm missing or anything i can check?

Importing Database Through Phpmyadmin Error
I have been running a script on another hosting service for a while and recently decided to change hosts. Before moving across I did a database backup and got myself a nice mysql file ready to import at my new host - DreamHost.

I installed the script, went into phpmyadmin and tried importing it, but I'm faced with this error message:

SQL query:

CREATE TABLE offers(
id int( 11 ) NOT NULL AUTO_INCREMENT ,
name text NOT NULL ,
image text NOT NULL ,
url text NOT NULL ,
description text NOT NULL ,
SHOW tinyint( 4 ) NOT NULL default &#391;',
PRIMARY KEY ( id )
) TYPE = MYISAM ;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show tinyint(4) NOT NULL default &#391;',
PRIMARY KEY (id)
) TYPE=MyISAM' at line 7

I don't have much experience with mysql stuff, so am a bit confused. Am I doing something wrong?

Importing Member Database Via PHPMyAdmin
I have a member database which contains usernames, password, names, contact info, etc.

I have been able to successfully import it into MySQL via PHPMyAdmin, my question is how do I turn the passwords column into a MD5 value for each of the 5215 rows? The passwords in the spreadsheet are their raw values. I need them to be MD5 values.

Is there something that I can do in PHPMyAdmin to edit the passwords column to turn them into MD5 values or is there something that I should do with the spreadsheet before importing it?

Importing Data - Via Command Line & PhpMyAdmin
I am new a MYSQL. I have been using Access. Now, I am converting to MYSQL. I got a tool that takes a Access file and converts it to a dump file call "filename.sql" Now how do I import that into MYSQL? After logging into mysql what should I do next and what is the command to import this file? Also, I tried using PHPMYadmin. Because this is a huge file (50,000 records) it times out. So is there a way I can adjust the time so it doesn't time out. I want to learn how to do this both ways. via the command line and via phpmyadmin. thanx

Different Results In Mysql & Mysql Query Browser?
I've come across an extremely strange problem. The exact same query in
both mysql command line client, and mysql query browser gives entirely
different results. I was hoping someone out there could shed some
light.

Ok, the query (I've stripped it bare, the real query is a bit more
complex)...

Each person in the people table has an associated 'place', which is an
integer that maps onto a suburb in the suburbs table. The 'place' CAN
be NULL.

so, for all intensive purposes, the schema is roughly:

Query Browser
I am looking for graphical query tool to work with MySQL 4.1.I installed a copy of their query browser, but get the following error.

MySQL Error Nr. 1251
Client does not support authentication protocol requested by server; consider upgrading MySQL client

Anyone have any insight into this error as I think it should work with 4.1, or otherwise have any suggestions for a query tool?

Query Browser
I'm having a hard time with the Query Browser. I can't figure out how to view the rows. When I click on the table in the Browser, nothing shows up and at the bottom there is a message saying Library Error Number 3. I am sure this is something simple but it's making me tear my hair out.

Browser Address Bar Query
How could I execute a query in the address bar of my web browser?

Starting Query Browser
i installed mysql server 5.0 and other GUI components and the connector.in windows XP from the start menu i click my sql query browser and the dialogue box appears asking the host ,username and password and giving the port 3306(already filled in)i give localhost and the password which i gave during installation ,and an error comes saying mysql error 1045:access denied for user ODBC@localhost.

Query Browser - Blanko-ed
I am new to this MySQL, and I am using the MySQL Administrator GUI program. I've managed to create the tables but I am unable to populate the data into the table - when I right click the table, the option EDIT TABLE DATA is blanko-ed, but the rest are clickable. When i choose TOOLS, the MySQL Query Browser option is also blanko-ed.

I installed everything under Administrator account level, and I do not know what is the reason. I did not change any setting so far.

Query Browser 1.1.4 Conflicts
I am using MySQL Server 5.0.2 alpha-nt with Mysql query browser 1.1.4 on winXP.
1.
When i open the query browser a WinXP error reporting dialog opens claiming 'mysql-nt.exe has created some error...
2.
When we execute scripts in query browser 1.1.4, it only shows if any errors have occured. How do i see the results of the script. 3.
Besides the statement ' select @var; ' in the browser shows @var as containing NULL even though it soes contain some value
ALso can someone guide me to the download page of mysql server 5.0.1.

Export Query Results Through Browser
This would seem simply enough but I am struggling with it. I am using PHP 4 and Mysql 5.0 I need to take the results of a query and allow the user to download the results....

How To Call With Query Browser A Sp With Out Parameter?
I've a stored procedure like as sp_add_value(IN value int, OUT msg Varchar(10)) and i not get call in query browser.

Error While Connecting To The DB Using Query Browser
I am a newbie to mySQL world. I have sucessfully installed the mySQL and also have created a schema and a few user accounts. However when I try to connect to the DB from a REMOTE machine using the mySQL Query Browser, I get the following error:

"MySQL Error Number 2003 - Cant connect to mySQL server on 'myserver.mydomain.org'". However, I am successfully able to ping the server. Here are the specifics:

1. The Host Server where mySQL has been installed is at my home and is connected to the internet via a Broadband Linksys Router.

2. As I do not have a static IP, I registed for a Dynamin DNS service. I made sure that the port 3306 is opened, both at the router and on the machine where mySQL is installed.

3. I am trying to connect to the mySQL server from my home laptop, which is also behind the same Linksys router. I have also tried connecting from a truely remote machine (the one which is not behind this router, but is connected to internet) - again unsuccessfully.

4. The user account using which I am trying to connect has an 2 entries in the mysql.User table - one with column Host=localhost and another with column Host=%.

5. AFter a bit of googling, I found out that this is a common issue when BIND_ADDRESS and SKIP_NETWORKING are left uncommented in my.cnf file. However, I do not have a my.cnf file in the filesystem. And I have not created one..

6. I am able to connect to this mySQL server using SSH (using mysql -h localhost -u userName -p)even from a remote machine.

However I am not able to connect using mySQL query browser. Am I still missing something here?

Query Browser 1.28beta OS X Not Usable (for Me)
I'm having some strange problems which seem to have only to do with the Query Browser 1.28 beta for OS X. What I mean is, regardless of what MySQL database I connect to (local OS X or on a Win2k server on the same network), the problems I list below happen consistently; at the same time, Query Browser 1.28beta running on that same Win2k server can manage both its own and my OS X box's MySQL installations just fine. So on to the problems ...

Query Browser Won't Install On SuSE 9.2
MySQL Query Browser won't install on SuSE 9.2 because it requires the following:
libgal-2.0.so.6
libgal-a11y-2.0.so.6

These do not appear on the SuSE installation disks.
I googled and didn't find them available for download
What can I do?

How Do You Import A Mysqldump File Using Query Browser?
I have a MySQL 4.1.5-gamma-nt-max instance running on a Windows 2000 Server box. I have tried creating a script to restore a mysqldump backup file to a schema on that server. Here is my syntax:

set foreign_key_checks=0;
source b:/folderwithdata/data.043006
set foreign_key_checks=1;

When I execute this locally on the server from the command line, it executes without a hitch. However, the server is going to be located in a server farm where I will not have access so I have tried to execute this from my workstation using Query Browser. I launch Query Browser and execute the script and get the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use. ErrorNr: 1064 near 'SOURCE B:/FOLDERWITHDATA/DATA.043006 SET FOREIGN_KEY_CHECKS=1' at
line 1

Like I said, it executes fine on the server via command line so I know it's notbombing out on some syntax within the file itself. So I'm assuming it has something to do with how I'm writing the script in the GUI itself.

Running Multiple Queries In Query Browser
What is the magic word to get query browser to execute a string of queries?

USE After DROP And CREATE (script In Query Browser)
I'm writing a simple script that creates the database and tables:

------------------------------------
DROP DATABASE IF EXISTS mydb;
CREATE DATABASE mydb CHARACTER SET utf8 COLLATE utf8_unicode_ci;

/*workaround: use mysql; */
use mydb;

DROP TABLE IF EXISTS movie;
CREATE TABLE movie (
id int not null auto_increment primary key
);
------------------------------------

When executing, Query Browser says "No database selected (1046)" on lines with table names. I add USE <dbname> after its creation, but it only works if the previous default database is different. A work-around is to add "USE mysql" just before the real USE, but it's ugly.

Any solutions?

Select Query On Latin1 Or Utf8 Column: Which Is Faster?
Assume you have two varchar (or Text) columns named L and U which are
identical except that the charset for L is latin1 and the charset for
U is utf8. All the records in L and U are identical in terms of
content, consisting of only 7 bit ASCII characters. Both columns have
indexes of the same type (e.g. assume Unique indexes if you want).

Here's my question: Will the fact that column U has a utf8 charset
make select queries run slower on that column? For example, will the
query

Select * from table where U='blahblah'

run slower than the query

Select * from table where L='blahblah'

??

Significantly slower?

I'm thinking that a query on the latin1 column would go faster since
the program knows upfront that one byte equals one character, and
vice-versa; whereas in the same query on a utf8 column the program has
a lot more "overhead" because it has to constantly be determining how
many bytes represent a character. Since queries on string columns are
case insensitive, the program can't just do a byte-for-byte
comparision; rather, it has to compare *characters*, and sometimes
convert a character from upper to lower case, or vice versa, in order
to do the case-insensitive comparison.

The actual column in question is going to store URLs, so it should
only need to hold 7 bit ascii characters (in theory at least). So, in
terms of content, it shouldn't matter whether I make the column latin1
or utf8. But in terms of query speed....on, say, a few million
records...??

I would like to do everything in utf8 (web pages, forms, mysql
database columns, etc.). But since that one column might be heavily
queried, maybe I should make an exception and do it in latin1?? I wish
the mysql docs would speak to these issues....

DEFAULT CHARSET=utf8 Problem When Executing Query
CREATE TABLE userdetails (
userid int(11) NOT NULL auto_increment,
loginId varchar(255) NOT NULL default '',
password varchar(255) NOT NULL default '',
firstname varchar(255) default NULL,
lastname varchar(255) default NULL,
email varchar(255) NOT NULL default '',
superuser int(11) default NULL,
createddate datetime default '0000-00-00 00:00:00',
role int(11) NOT NULL default '0',
count int(11) NOT NULL default '0',
PRIMARY KEY (userid)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


I am using MySQL 4.0.20.

Without DEFAULT CHARSET=utf8, query is fine.


Copyright 2005-08 www.BigResource.com, All rights reserved