I am creating an application which connects to the proxysql. All the clusters are configured through the proxysql but what credentials and port should I use in my application to connect to the proxysql?
I've followed the tutorial here and set up a ProxySQL v2.0.2 service on an Ubuntu AWS EC2 instance.
One thing that troubles me is that the configurations of ProxySQL are gone after the EC2 instance restarts.
For example, before the EC2 instance…
I am looking to setup proxysql and mysql locally with Docker so I can stream all outgoing logs (including any failed logs) with something like
docker logs -f proxysql
This is so I can debug queries etc. I have made good progress. My docker…
I have two RDS instances for mysql, 1 master node and 1 replication slave node. I have setup a ProxySql EC2 instance listening on 6033 port which routes all the write requests to master node and all the read requests to slave node.
In my .NET code…
I need to create a hostgroup with a master and n slaves.
Can I configure it in a way that all the requests will be served by the slaves DB only(not by the master), until and unless the slaves get shunned?
I spent a couple of hours setting up ProxySQL to cache all selects, but there is no hit on the query rule. Rule is set up this way:
rule_id = 1
active = 1
match_pattern = ^SELECT(.*)$
cache_ttl = 3600000
apply = 1
destination_hostgroup = 36
All…
We are setting up this servers stack:
1x ProxySQL Server
2x MySQL Servers
We are using MySQL Group Replication between the 2 MySQL servers on "Single-Primary" Mode.
The default value for auto_increment_increment with this config is 7.
It's safe to…
I'm trying to put in cache two huge queries.
With SELECT count_star,sum_time,hostgroup,digest,digest_text FROM stats_mysql_query_digest ORDER BY sum_time DESC; i'm able to see the digest for these two queries.
So I did:
INSERT INTO…
Say, I had created a product (a mobile application) which serves a lot of clients. Initially, I did not think about data compliance issues and stored all their data on one server. Now, these clients want data compliance in such a way that their data…
I installed docker, got the most popular box with proxySQL.
docker run -d -p 6032:6032 --name proxysql prima/proxysql:latest
then I tried to connect to it from my local mysql like so:
mysql -u admin -padmin -h 127.0.0.1 -P6032
and I'm getting this…
I have a Proxysql setup with two servers, one that can handle reads and writes (acm-db-main-1) and one that's set up as read-only (acm-db-main-2). I'd like to configure some users that are heavy read-only users to ONLY connect to acm-db-main-2. …
please help
i currently working to setup ProxySQL with 1 master and 2 slave. I have setup mysql_query_rules like this
here the image
but i tested on mysql client working as expected, insert goes to master and select goes to slave. but when i connect…