[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mysql-DB in utf8 verändern



On Tue, Nov 25, 2008 at 04:37:15PM +0100, Boris wrote:
> Moin zusammen,
> 
> 
> ich komme nicht weiter an folgendem Punkt:
> 
> Ich habe einen Sarge-Server mit teilweise veralteten und gebackporteten
> Paketen. U.A. läuft da ein MySQL-Server:
> 
> mysqld  Ver 4.0.24_Debian-10sarge2-log for pc-linux-gnu on i386 (Source
> distribution)
> 
> Ich soll nun einer Datenbank das CharSet utf8 verpassen, aber ich

Aber nicht MySQL 4.0 bitte. Da gab und gibt's kein UTF8
http://forums.mysql.com/read.php?11,4262,4303#msg-4303

> mysql> ALTER DATABASE demo CHARACTER SET utf8 COLLATE utf8;
> ERROR 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 'DATABASE demo CHARACTER SET utf8 COLLATE utf8' at line 1

http://dev.mysql.com/doc/refman/4.1/en/alter-database.html
ALTER DATABASE was added in MySQL 4.1.1.

http://dev.mysql.com/doc/refman/4.1/en/alter-table.html
| CONVERT TO CHARACTER SET charset_name [COLLATE collation_name]
| [DEFAULT] CHARACTER SET [=] charset_name [COLLATE [=] collation_name]


'ne gute Frage ist, ob ALTER DATABASE auch alle Tabellen aendert. --
mueeste ich auch erst mal testen.


hagen


Reply to: