公升級到MySQL 5 0 17一定遇到的四個問題

2021-08-22 02:04:13 字數 638 閱讀 9896

1 中文問題

在使用mysql例項配置工具的使用,將使用的字符集設定為gbk

2 密碼問題:安裝時設定的密碼使用phpmyadmin訪問時不能用

mysql> set password for

-> 'root'@'localhost'

= old_password('root');

3 字段嚴格檢查的問題

在例項配置工具中將enable strict mode去掉

4 phpmyadmin亂碼問題

language :chinese simplified(zh-utf-8)

mysql 連線校對:gbk_chinese_ci

建立表的時候,表的屬性定義為

create table tbl_auth_role (

role_id int(11) unsigned not null default '0',

role_name varchar(80) not null default '',

primary key (role_id)

) engine=myisam default charset=gbk;

在連線語句中加上

$db->query("set character set gbk");

公升級到MySQL 5 0 17一定遇到的四個問題

1 中文問題 在使用mysql例項配置工具的使用,將使用的字符集設定為gbk 2 密碼問題 安裝時設定的密碼使用phpmyadmin訪問時不能用 mysql set password for root localhost old password root 3 字段嚴格檢查的問題 在例項配置工具中將...

公升級到PHP 5 4 3遇到的乙個錯誤

之前一直用的是php 5.3.8,今天公升級nginx,順便把php也公升級到5.4.3了,然後跑應用出錯了,資訊如下 fatal error call time pass by reference has been removed in f wwwroot login.php on line x ...

MySQL,4 0公升級到5 1遇到乙個問題

1 資料庫資料量暴增,對比其他業務類似的資料庫發現某個表的資料量異常,最後確定了乙個重複遷移資料的bug.120301 17 30 43 error column count of mysql.db is wrong.expected 22,found 15.the table is probabl...