TheRobotLearns Platform · ProxySQL: from first install to production
SQLite3 Server Variables and Runtime Application
Learning objectives
- Read SQLite3 Server Variables list for sqliteserver-* entries and their defaults.
- Explain why SQLite3 Server changes need explicit runtime loading and saving for persistence.
- Locate sqliteserver-mysql_ifaces and sqliteserver-read_only definitions within SQLite3 Server Variables.
Why your edit waits
You set sqliteserver-read_only to true. Changes made to SQLite3 Server configuration must be explicitly loaded to the runtime to take effect. This applies to both SQLite3 Server variables, sqliteserver-mysql_ifaces and sqliteserver-read_only. The SQLite3 Server Variables list shows their defaults as 0.0.0.0 and false.
The runtime is the state that must receive loaded changes. Your edit is not the running state until you use the appropriate LOAD command. Both variables are marked Dynamic: Yes, and the configuration change still needs the explicit load.
Use the appropriate LOAD and SAVE commands to activate and persist the configuration. LOAD activates. SAVE persists.
Think of the variable list as a form, and the runtime as the place the running server reads. A change takes effect after it is loaded.
Takeaway: An edit to either SQLite3 Server variable needs a LOAD command before it affects the running SQLite3 Server.
Read the SQLite3 variables
The provided source describes downloading and installing ProxySQL. It includes supported operating systems, maintained releases, package installation, generic tarball installation, repository installation, Docker/Kubernetes options, and a sample Docker configuration with admin_variables and mysql_variables entries.
Apply changes to SQLite3
You change sqliteserver-mysql_ifaces or sqliteserver-read_only. The change needs two explicit steps. Changes made to SQLite3 Server configuration must be explicitly loaded to the runtime to take effect. Use the appropriate LOAD and SAVE commands to activate and persist the configuration.
Run the appropriate LOAD command for the SQLite3 Server configuration. This activates the new runtime value. Then run the appropriate SAVE command to persist the configuration. The appropriate commands come from the Admin Commands reference.
Use the same two steps after either variable change. If you set sqliteserver-read_only to true, LOAD makes the SQLite3 Server use the new runtime state. If you set sqliteserver-mysql_ifaces to another comma-separated list of IP addresses and ports, LOAD makes the listening interfaces use the new runtime state.
A missing LOAD step means the change is not loaded to the runtime. A missing SAVE step means the configuration is not persisted. The configuration needs the load to take effect, and the save to persist.
Takeaway: Use the appropriate LOAD command to activate the change, then the appropriate SAVE command to persist it.
Where definitions help
sqliteserver-read_only controls write behavior. When it is true, only SELECT operations are permitted. INSERT, UPDATE, DELETE, CREATE, and DROP are blocked. Its default is false.
sqliteserver-mysql_ifaces controls listening interfaces. Its value is a comma-separated list of IP addresses and ports for the ProxySQL built-in SQLite3 Server. Its default is 0.0.0.0.
Both variables are marked Dynamic: Yes. Changes made to this configuration still must be explicitly loaded to the runtime to take effect. Use the appropriate LOAD and SAVE commands to activate and persist the configuration.
The list shows the variable name and its default value. A change must still be loaded to the runtime to take effect. Matching the question to the right variable tells you which definition to inspect. The LOAD command makes the changed runtime state take effect.
Takeaway: Match the question to sqliteserver-read_only or sqliteserver-mysql_ifaces, then apply the change with LOAD.
Read SQLite3 defaults
-- Show the defaults listed for the two SQLite3 Server variables.
SELECT 'sqliteserver-mysql_ifaces' AS variable_name, '0.0.0.0' AS default_value
UNION ALL SELECT 'sqliteserver-read_only', 'false';These statements display the two variable names and defaults shown in the SQLite3 Server Variables list. The first SELECT returns a row for sqliteserver-mysql_ifaces with default 0.0.0.0. The UNION ALL adds a second row for sqliteserver-read_only with default false. You will see two rows, each with one variable name and one default value.
Try it: config_layer_sim
You edit sqliteserver-read_only and want INSERT and UPDATE to be blocked. The SQLite3 Server still permits writes. Choose whether the missing step is the appropriate LOAD command or the appropriate SAVE command.
Then change sqliteserver-mysql_ifaces to another comma-separated list of IP addresses and ports. Mark one step as activate, and mark one step as persist.
Sources
Do more with an account
- Graded quizzes is available on your account.
- Saving your progress is available on your account.
- Hands-on labs is available on your account.
- AI tutoring is available on your account.