note 50893 deleted from function.mysql-connect by bjori
| From: | bjori@php.net | Date: | Sat, 15 Apr 2006 18:34:27 +0000 |
| Subject: | note 50893 deleted from function.mysql-connect by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108185@lists.php.net to get a copy of this message | ||
Note Submitter: arekm at pld-linux dot org
----
Setting default character set when connecting to mysql 4.1 server can be done by issuing for
example:
SET NAMES latin2
command after each connection which isn't so nice because it needs to change every app.
There is nicer solution that can be used on server side - simply put in [mysqld] section of
mysqld.conf:
init-connect="SET NAMES latin2"
This will cause ,,set names'' command to be issued on every connection - no need to change
php apps.