随笔分类 -  Mysql

摘要:现象: debian的机器用aptitude install mysql-server-5.1 后,用id mysql 可看出已经建了mysql用户,但是用root来su mysql 不成功,/var/log/auth.log显示: Mar 2 22:23:15 mhxy-db08 su[26669... 阅读全文
posted @ 2014-03-02 22:29 children 阅读(5382) 评论(0) 推荐(0)
摘要:1.确保master/slave只有一份/etc/mysql/my.cnf , 不要在其他地方再有my.cnf (如/etc/my.cnf /usr/local之类) 2.master配置: 在[mysqld]节点下添加: server-id=1 slave配置: 在[mysqld]节点下添加: ... 阅读全文
posted @ 2013-12-12 17:03 children 阅读(393) 评论(0) 推荐(0)
摘要:1、在/etc/mysql/my.cnf中的[mysqld]段注释掉bind-address = 127.0.0.12、用mysql -uroot -p 登陆mysql,然后采用以下方法开启远程访问权限:方法1:mysql>use mysql; mysql>update user set host... 阅读全文
posted @ 2013-04-03 11:19 children 阅读(213) 评论(0) 推荐(0)
摘要:http://database.51cto.com/art/200910/156685.htm 阅读全文
posted @ 2012-09-12 12:39 children 阅读(150) 评论(0) 推荐(0)
摘要:http://blog.chinaunix.net/uid-25135004-id-3144385.html 阅读全文
posted @ 2012-09-12 11:20 children 阅读(226) 评论(0) 推荐(0)
摘要:MyISAM InnoDB 区别 :http://www.php100.com/html/webkaifa/database/Mysql/2011/0326/7789.html 阅读全文
posted @ 2012-03-20 18:45 children 阅读(189) 评论(0) 推荐(0)