|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8766 couldn't connect to MySQL server which has default character set cp1251
Submitted: 2001-01-17 12:56 UTC Modified: 2001-06-02 21:53 UTC
From: crazy50s at yahoo dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Latest CVS (17/01/2001) OS: FreeBSD 3.3
Private report: No CVE-ID: None
 [2001-01-17 12:56 UTC] crazy50s at yahoo dot com
PHP 4.0.5-dev compiled as DSO --with-mysql --with-apxs

MYSQL 3.23.30 
compiled with
--default-character-set = cp1251 (this is charset #14 in /usr/local/mysql/share/mysql/charsets/Index)

have no problem connecting to it from mysql/mysqladmin clients

when trying to mysql_connect() from PHP script, got this error message
...MySQL Connection Failed: Can't initialize character set 14 (path: default)....

installing PHP 4.0.3pl1 solved the problem :)

check out this URL[ST_rn=ps]/getdoc.xp?AN=714791711&CONTEXT=979753585.1563033636&hitnum=8
for description of this bug (or maybe feature) by another user

I find it amusing that 4.0.4 and 4.0.4pl1 do not work because of bug #8738... and 4.0.5-dev (CVS snapshot) doesn't  work either because of this.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 21:53 UTC]
This should be fixed with PHP 4.0.6, please try the 
latest release candidate:


PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 03:01:26 2019 UTC