Categories
tools

Bluehost没法安装mod_python

$ httpd -l
发现没装上 mod_python,网上搜一下,没找到有用的东西,于是给bluehost提交了一个ticket,希望他们能帮我装上。不多久就得到回复了:

Hello,
Thank you for choosing Bluehost. I understand you wish to use an apache module for Python. Unfortunately we do not offer mod_python and since it requires a recompile of apache we will be unable to implement it for you.

看样子是需要把之前写的程序改为CGI了。

Categories
PHP

mysql将latin1编码更换为utf-8编码

同事反馈,我们下载软件页面出现了乱码,抽个时间查看一下。我们在bluehost服务器数据库原来是mysql4,换到新的服务器上,安装的是mysql5,这样mysql4 默认的latin1编码显示就出现了乱码。

搜索一下,网上盛传的一篇文章是《Mysql latin1编码转UTF8的方法
试了许久,不成功,继续搜,发现这《mysql移置之将latin1编码更换为utf-8编码》 解决了,解说的比较到位。
这文章后面导入的是gbk,我们的服务器需要是utf8,于是,总的就是输入三条命令:

mysqldump --default-character-set=latin1 --create-options=false --set-charset=false -u root -p 数据库名 > market.sql
create database 数据库名 CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql -u root -p --default-character-set=utf8 数据库名 < ~/数据库名.sql

问题解决了。

Pages: Prev 1 2