php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: crazy50s at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-01-17 12:56 UTC] crazy50s at yahoo dot com
FreeBSD 3.3 -RELEASE
Apache/1.3.14
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
http://x63.deja.com/[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.

thanks

Patches

Pull Requests

History

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

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

-Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 15:01:30 2025 UTC