[MXS-4144] Where to get maxscale 6 mysql.maxscale_config table source sql Created: 2022-05-20 Updated: 2022-05-23 Resolved: 2022-05-23 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | 6.3.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | lee | Assignee: | markus makela |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
配置maxscale 的config_sync_cluster 时,未创建mysql.maxscale_config表 admin_host=0.0.0.0 config_sync_cluster=master ============================= |
| Comments |
| Comment by Johan Wikman [ 2022-05-20 ] | |||||||
|
aroma Could you please write the bug-report in English. Unfortunately nobody here can read Chinese. Johan | |||||||
| Comment by markus makela [ 2022-05-20 ] | |||||||
|
Translated: When configuring config_sync_cluster for maxscale, the mysql.maxscale_config table is not created. admin_host=0.0.0.0 config_sync_cluster=master ============================= | |||||||
| Comment by markus makela [ 2022-05-20 ] | |||||||
|
The config_sync_user must have the following permissions on the mysql.maxscale_config table:
The table will be created automatically by MaxScale. Documentation for config_sync_user: https://mariadb.com/kb/en/mariadb-maxscale-6-mariadb-maxscale-configuration-guide/#config_sync_user Documentation for configuration synchronization: https://mariadb.com/kb/en/mariadb-maxscale-6-mariadb-maxscale-configuration-guide/#configuration-synchronization | |||||||
| Comment by markus makela [ 2022-05-20 ] | |||||||
|
Can you add the output of the following query?
| |||||||
| Comment by lee [ 2022-05-22 ] | |||||||
|
thanks, markus
-----------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------- ================================= [master] #disk_space_check_interval=1000 I am using such a configuration now, why does maxscale not automatically create mysql.maxscale_config My maxscale is deployed in kubernetes, the final problem I want to solve is: the login permission problem when logging in to multiple maxscale admin gui in the backend through slb, thank you | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
When I visit this maxscale admin gui slb ip the chrome console shows 401 | |||||||
| Comment by markus makela [ 2022-05-23 ] | |||||||
|
Does /var/log/maxscale/maxscale.log contain any error messages? The permissions seem correct and it should create the table automatically when it connects to the cluster. | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
I don't see the log file in the / var / log / maxscale directory, but I see the following error log on the pod console: Configuration file : /etc/maxscale.cnf 2022-05-23 14:17:55 warning: Multi-line parameters have been deprecated. Declare the value for 'log_debug' on one line. ================================= | |||||||
| Comment by markus makela [ 2022-05-23 ] | |||||||
|
The GUI starts with the default credentials admin with the password mariadb. Does the login to the GUI work with these? If not, have you created other users that you use with maxctrl? | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
When I use a single pod to allow maxscale GUI, I can log in successfully. When I use multiple pods in SLB mode, it will appear 401 error | |||||||
| Comment by markus makela [ 2022-05-23 ] | |||||||
|
Do you load balance the requests to the GUI? If so, you must route the same GUI requests to the same Maxscale or create the same users on all Maxscale instances. The GUI authentication token from one MaxScale cannot be used with another MaxScale. | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
Yes, so I want to configure config_ sync_ Cluster, and I use the default user here. All maxscales have the same user and password | |||||||
| Comment by markus makela [ 2022-05-23 ] | |||||||
|
If you have a load balancer in front of MaxScale, you need to make it so that the requests from the same client IP are sent to the same MaxScale. | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
Thank you very much ,I turn on the keep session of SLB and it works normally | |||||||
| Comment by markus makela [ 2022-05-23 ] | |||||||
|
OK, that's good to hear. Can we close this bug? | |||||||
| Comment by lee [ 2022-05-23 ] | |||||||
|
YES,Thanks |