昨夜,导完庞大的数据库,连接上了,才发现数据库表和库的字符集有差异。表的字符集全是utf-8,库的属性却是莫名其妙的latin1_swedish_ci。听都没听过的字符集,Google了一下,原来是瑞典语。MySQL默认建立的数据库怎么会是瑞典语,好歹也应该是英语。

Read the rest of this entry

#/etc/rc.d/init.d/mysqld stop //停止MYSQL

#/bin/mysqld_safe –skip-grant-tables& //使用“-skip-grant-tables”参数来启动MySQL。

Read the rest of this entry

系统长期运行后,会产生大量的类似 mysql-bin.000151的日志文件,体积大占空间,且不会定期自动清理。

Read the rest of this entry

新的php5 支持了新的mysql扩展─增强的mysql扩展库 mysqli。提供了比原来的mysql函数库更强大的功能,例如加入了transaction的支持。

–enable-shared(主要是这个选项)以及–enable-static

Read the rest of this entry