Changes between Version 1 and Version 2 of proxysql


Ignore:
Timestamp:
Dec 12, 2022, 2:31:44 PM (3 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • proxysql

    v1 v2  
    2626
    27275. When complete, check the ProxySQL database for any remaining local database users: `mysql -e "SELECT * FROM mysql_users WHERE default_hostgroup = 999" main`
     28
     29== Trouble Shooting ==
     30
     31You can login to the local MySQL instance via: `mysql --defaults-file=/root/.my.legacy.cnf`.
     32
     33You can manually re-load the MySQL users into the proxysql server by running (from the mosh, as root): `proxysql-load`
     34
     35You can test access to the database servers for a given user with:
     36
     371. Local MySQL access: `mysql -u <username> -p --port 3307`
     382. Network MySQL access: `mysql -u <username> -p --host pachamama.mayfirst.cx` (the .cx domain signals the use of our internal, private IP range)
     39
     40You can login to the ProxySQL instance with:
     41
     42`mysql`
     43
     44Use the `main` database and peruse the `mysql_users` table to see which users should be configured to use which backend MySQL servers. The `default_hostgroup` of 999 is the localhost. `default_hostgroup` 1 is lumumba and 2 is pachamama.
     45
     46== Post Transition ==
     47
     48When the transition is complete:
     49
     50 * Remove the `/root/.my.legacy.cnf` file. This file signals that we are in a transition period.
     51 * Remove `transition => ture` from the puppet file.
     52 * Add `mysql => 'n'` to the `m_mosh` definition in the puppet file to prevent puppet from trying to re-install MySQL
     53 * Purge `mariadb-server` from the host
     54 * Delete `/var/lib/mysql/`