mysql -h 127.0.0.1 -u admin -padmin -P6032 --prompt="Admin> "INSERT INTO mysql_servers(hostgroup_id,hostname,port,use_ssl) VALUES (1,'172.16.0.3',3306,1);
UPDATE global_variables SET variable_value='monitor' WHERE variable_name='mysql-monitor_username';
UPDATE global_variables SET variable_value='monitor' WHERE variable_name='mysql-monitor_password';
UPDATE global_variables SET variable_value='2000' WHERE variable_name IN ('mysql-monitor_connect_interval','mysql-monitor_ping_interval','mysql-monitor_read_only_interval');
UPDATE global_variables SET variable_value='/etc/mysql/ssl/ca-cert.pem' WHERE variable_name='mysql-ssl_p2s_ca';
UPDATE global_variables SET variable_value='/etc/mysql/ssl/db-client-cert.pem' WHERE variable_name='mysql-ssl_p2s_cert';
UPDATE global_variables SET variable_value='/etc/mysql/ssl/db-client-key.pem' WHERE variable_name='mysql-ssl_p2s_key';
UPDATE global_variables SET variable_value='TLSv1.2' WHERE variable_name='mysql-ssl_p2s_cipher';
LOAD MYSQL VARIABLES TO RUNTIME;
LOAD MYSQL SERVERS TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;
SAVE MYSQL SERVERS TO DISK;
INSERT INTO mysql_users(username,password,default_hostgroup,use_ssl) VALUES ('test','test',1,1);
LOAD MYSQL USERS TO RUNTIME;
SHOW VARIABLES LIKE 'admin-hash_passwords';
-- Retrieve the partially-hashed password
SAVE MYSQL USERS FROM RUNTIME;
SAVE MYSQL USERS TO DISK;
SELECT * FROM monitor.mysql_server_connect_log ORDER BY time_start_us DESC LIMIT 2; SELECT * FROM monitor.mysql_server_ping_log ORDER BY time_start_us DESC LIMIT 2;+-------------+------+------------------+-------------------------+--------------------------------------------+| hostname | port | time_start_us | connect_success_time_us | connect_error |+-------------+------+------------------+-------------------------+--------------------------------------------+| 172.16.0.3 | 3306 | 1510588058983797 | 0 | SSL connection error: no ciphers available || 172.16.0.3 | 3306 | 1510588056984152 | 0 | SSL connection error: no ciphers available |+-------------+------+------------------+-------------------------+--------------------------------------------+2 rows in set (0.00 sec)
+-------------+------+------------------+----------------------+--------------------------------------------+| hostname | port | time_start_us | ping_success_time_us | ping_error |+-------------+------+------------------+----------------------+--------------------------------------------+| 172.16.0.3 | 3306 | 1510588058984164 | 0 | SSL connection error: no ciphers available || 172.16.0.3 | 3306 | 1510588056984219 | 0 | SSL connection error: no ciphers available |+-------------+------+------------------+----------------------+--------------------------------------------+
2 rows in set (0.00 sec)
mysql -h 172.16.0.3 -u monitor -pmonitor -e "show session status like 'ssl_version';\s"+---------------+---------+| Variable_name | Value |+---------------+---------+| Ssl_version | TLSv1.2 |+---------------+---------+--------------mysql Ver 15.1 Distrib 10.1.28-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Connection id: 560420Current database:Current user: mon...@172.16.0.2SSL: Cipher in use is DHE-RSA-AES256-GCM-SHA384Current pager: stdoutUsing outfile: ''Using delimiter: ;Server: MariaDBServer version: 10.1.28-MariaDB-1~xenial mariadb.org binary distributionProtocol version: 10Connection: 172.16.0.3 via TCP/IPServer characterset: latin1Db characterset: latin1Client characterset: utf8Conn. characterset: utf8TCP port: 3306Uptime: 3 days 23 hours 30 min 42 sec
Threads: 5 Questions: 942175 Slow queries: 0 Opens: 37 Flush tables: 1 Open tables: 31 Queries per second avg: 2.740----------------
You received this message because you are subscribed to the Google Groups "proxysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+unsubscribe@googlegroups.com.
# ldd `which openssl` | grep ssl libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fd9bc385000)# grep "no ciphers available" /lib/x86_64-linux-gnu/libssl.so.1.0.0Binary file /lib/x86_64-linux-gnu/libssl.so.1.0.0 matches# ldd `which mysql` | grep ssl libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fe55a0a2000)
# ldd `which proxysql` | grep ssl libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f21d5a16000)# ldd `which mysql` | grep ssl libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f9b77c65000)To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+unsubscribe@googlegroups.com.