MySQL-Proxy

mysql-proxy for a remote MySQL server

帅比萌擦擦* 提交于 2019-12-06 14:19:57
问题 My program works with a remote MySQL server, and I want to create a local proxy server on my computer in order to make things faster (pool connections, cache queries etc.). I went by the documentation: http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy.html I ran, on one console: erelsgl@ubuntu:~$ mysql-proxy --proxy-backend-addresses=$MYSQL --log-level=debug2011-11-22 09:43:30: (message) mysql-proxy 0.8.2 started 2011-11-22 09:43:30: (debug) max open file-descriptors = 1024 2011-11-22 09:43

Linking MySQL Workbench to my Remote Server

痞子三分冷 提交于 2019-12-04 12:07:29
问题 I've just downloaded MySQL Workbench. But I don't quite understand how to syn this with the databases on my remote server. Work bench asks for "hostname" so I provided the hostname of my remote server. I designate port 3306. I then provide a username. This is the username I use when I log into PhpAdmin -- should I be using a different one? Then I provide a password, again the same one I use for PhpAdmin. But this doesn't work. Oddly, the error always tells me my user name is: username@current

【原创】源码安装 Atlas-1.0.3 遇到的问题以及解决办法

白昼怎懂夜的黑 提交于 2019-12-01 17:30:43
今天 360 团队在 GitHub 上发布了 Atlas-2.0.0 版本。可喜可贺,希望 360 的开发团队能够一直保持下去。借此时机,将之前对 Atlas-1.0.3 的一些理解和使用,以博客形式总结一下。本文主要讲一下在源码安装和刚开始运行 Atlas-1.0.3 时可能遇到的问题。 ===== 按照安装说明,Atlas-1.0.3 的安装有如下依赖项: glib(2.32.x)、libevent(1.4以上)、Lua(5.1.x)、OpenSSL(0.9.8以上) 基本执行命令如下: ./bootstrap.sh #可能需要修改其中的路径 make sudo make install 依赖项的安装不做详细说明,假设已经全部安装好了。 ===== 1. 执行 bootstrap.sh 下面是源码包中提供的 bootstrap.sh 脚本的内容: [root@Betty Atlas-1.0.3]# vi bootstrap.sh #!/bin/sh base=$(cd "$(dirname "$0")"; pwd) cd $base PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --with-mysql=/usr --prefix=/usr/local/mysql-proxy CFLAGS="-DHAVE_LUA_H

mysql 读写分离mysql-proxy 代理

只愿长相守 提交于 2019-11-30 20:54:46
mysql-proxy 是一个mysql代理程序,主要目的实现mysql的读写分离 是通过lua脚本来实现 软件版本:mysql-proxy-0.8.5-linux-el6-x86-64bit.tar.gz 这是一个通用的二进制安装包,下载地址:https://pan.baidu.com/s/1hsJmi9I 1 解压安装 tar -xvf mysql-proxy-0.8.5-linux-el6-x86-64bit.tar.gz 把刚才解压的文件夹mysql-proxy-0.8.5-linux-el6-x86-64bit 复制到/usr/local/mysql-proxy [root@myvm mysql]# mv mysql-proxy-0.8.5-linux-el6-x86-64bit /usr/local/mysql-proxy 把/usr/local/mysql-proxy 设置为root用户和root组 root@myvm local]# chown root.root mysql-proxy/ -R 2 设置 2.1 编写启动脚本mysql-proxy ,由于启动脚本死有Lua写的,所以可以从其他方面找到修改即可。启动脚本这里可以下载 http://pan.baidu.com/s/1bpDWFqJ 并放在/etc/init.d/下面 [root@myvm mysql]#