存储过程在主从库上的测试
存储过程在主从库上的测试:结论:从理论上来讲,从库可以不存在procedure, 主库上执行的procedure,会在binlog中转换为相应的sql语句,而不是调用procedure,所以从库上可以不存在这个procedure, 依然可以于主库数据同步。但是实际环境中,从库上还是要有这个procedure的, 毕竟主库down了之后,从转为主的话...
Error reading master configuration
Error reading master configuration设置主从同步时,出现下面的问题:MariaDB [(none)]> change master to master_host='192.168.118.159', master_user='song_rep', master_password='song_rep', master_port=3307, master_log_file='binlog.000005', master_log_pos=624;ERROR 1201 (HY000): Could not ...
binlog_cache_size 和 binlog_stmt_cache_size
binlog_cache_size 和 binlog_stmt_cache_sizebinlog_cache_size sets the size for the transaction cache only; the size of the statement cache isgoverned by the binlog_stmt_cache_size system variable.binlog_cache_size只是为事务缓存的大小而设置,binlog_stmt_cache_size管理语句缓存的...
set global long_query_time对当前窗口无效
直接修改global 的long_query_time 之后在当前的的窗口中是没有效果的,在新打开的窗口中才会有效果。如果想让本窗口也有效果 的话,不用加 global关键字。session 1 :mysql> show variables like 'long_query_time';+-----------------+----------+| Variable_name | Value &nbs...
eclipse中加入mysql源码
今天终于在linux+eclipse+mysql上,把mysql的源码加入到eclipse进去了。总结一下大概的步骤:1 mysql源码先安装好 cmake ./ make make install 2 把代码加入的eclipse里, build project--debug conf...
mysql源码安装时遇到的问题
源码安装的文档,可以搜到一大把,这里我只列出来 ,我遇到的问题:源码安装时遇到的错误:源代码安装时出现,启运数据库出现: 2015-03-20 09:19:56 17689 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 在my.cnf文件中 增加 basedir=/usr/local/mysql ...