note 50893 added to function.mysql-connect

From: Date: Sun, 13 Mar 2005 14:29:29 +0000
Subject: note 50893 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-86354@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50893 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50893&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50893&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50893&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50893&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50893&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50893&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86354) next »