存档

文章标签 ‘system’

[转载]装MYSQL时遇到的错误归档(随时更新)

2008年3月8日 稀饭 没有评论

[转载]http://blog.chinaunix.net/u/29134/showart_432764.html 

今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。
1
[root@localhost mysql]# scripts/mysql_install_db
Neither host ‘localhost.localdomain’ nor ‘localhost’ could be looked up with
/resolveip
Please configure the ‘hostname’ command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the –force option
阅读全文…

鞋衫各式名品专卖

收藏与分享
分类: mysql 标签: , , ,

mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法

2008年2月29日 稀饭 没有评论

shell> mysql Client does not support authentication protocol requested by server; consider upgrading MySQL client 官方的说法是 MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. ….. 如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client 是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL 在WINDOWS是client和server一起装上了的) 请使用以下两种方法之一 其一: mysql> SET PASSWORD FOR -> ’some_user’@’some_host’ = OLD_PASSWORD(’newpwd’); 其二: mysql> UPDATE mysql.user SET Password = OLD_PASSWORD(’newpwd’) -> WHERE Host = ’some_host’ AND User = ’some_user’; mysql> FLUSH PRIVILEGES; 上面红色的部分请按自己实际情况修改….这样做后,连接就会正常了@!

收藏与分享
分类: mysql 标签: , , ,

64位与32位 Linux下MySQL性能比较(转)

2008年2月14日 稀饭 没有评论

64位与32位 Linux下MySQL性能比较(转)

原帖 http://www.wordyou.com/archives/56

阅读了http://www.anandtech.com/IT/showdoc.aspx?i=2447&p=5的优秀测试,大致得出以下结论:
1. 同主频Xeon下64位性能反而不如32位,Opteron下64bit性能提高大约30%左右,此测试可能与编译器优化有关。
2. 双核比双cpu单核比较性能大约提高6%
3. 超线程开启性能下降10%左右(MySQL read)
4. InnoDB性能大约是MyISAM的60%,但对于多cpu(核心)扩展性比MyISAM强很多
5. 同主频AMD的Opteron性能比Intel的Xeon高13%左右
6. 不论MyISAM还是InnoDB,4核心(俩双核cpu)比单双核cpu性能仅提高10%
如果采用xeon服务器,关闭超线程并采用32位系统性能最佳
如果采用opteron,64bit可以获得最佳性能,而单双核cpu就足够理想,四核心对性能提高并不明显。

简单生活。简单运动

收藏与分享
分类: mysql 标签: , , ,