[UPHPU] mysql question

Ray Hunter bigdog at venticon.com
Wed Nov 14 08:49:29 MST 2007


> Does anyone know how I can set these two values as a default in MYSQL,
> instead of having to preface queries with them:
> 
> SET CHARACTER SET utf8
> SET NAMES 'utf8'
> 
> I found this for the mysql config file:
> 
> [mysqld]
> init-connect='SET NAMES utf8'
> default-character-set=utf8
> 
> Does this look correct?

you could look at the following:

http://dev.mysql.com/doc/refman/5.0/en/charset-server.html

character_set_server
collation_server

--
thebigdog


More information about the UPHPU mailing list