...
width | 70% |
---|
Essentials
...
...
...
- use the Super Ticker installer created users - Player and Updater instead of root
- granting access to the root user from any server/host by using the wildcard syntax % as the host name
- granting access to the root user from the specific hosts you know you will run Flow and/or other BL apps on (Eg. RSS Reader, Weather Reader, etc)
- creating a new user with the required privileges and assigning it to the apps in setup
...
language | sql |
---|---|
title | Create new user |
...
...
...
...
UPDATE mysql.user SET host = '%' WHERE host = '127.0.0.1' AND user == 'root';
FLUSH PRIVILEGES;
Required Privileges
You may create a single user that provides access for both Flow and any other BL apps you are using.
Flow
Flow requires an extensive set of privileges to allow it to update the database schema during installation and/or upgrades as well as managing the data in use.
Code Block | ||||
---|---|---|---|---|
| ||||
GRANT
ALTER,
ALTER ROUTINE,
CREATE,
CREATE ROUTINE,
CREATE TEMPORARY TABLES,
CREATE VIEW,
DELETE,
DROP,
EXECUTE,
INDEX,
INSERT,
LOCK TABLES,
SELECT,
SHOW VIEW,
TRIGGER,
UPDATE
ON superticker.*
TO 'BL';
GRANT
CREATE USER,
RELOAD,
SHOW DATABASES,
SUPER
ON *.*
TO 'BL'@'%' WITH GRANT OPTION; |
BL Apps
You could use the same user for both Flow and the BL apps. If you wish to separate them note that most BL apps run with a much more limited privilege requirements.
Code Block | ||||
---|---|---|---|---|
| ||||
GRANT
DELETE,
EXECUTE,
INSERT,
LOCK TABLES,
SELECT,
UPDATE
ON superticker.*
TO 'BLapps'; |
Suspending Privileges
You may want to temporarily disable the access to the database. In that case you would use a REVOKE command:
Code Block | ||||
---|---|---|---|---|
| ||||
REVOKE ALL PRIVILEGES ON superticker.* FROM 'BL'; |
Replication Privileges
In situations where you want to use replication to provide a ongoing backup source you need additional privileges.
Replication User for copying and monitoring
...
...
...
...
...
...
...
...
...
Using Workbench
If you are doing so using the MySQL Workbench app you may find that it's easy to get the necessary priviliges on the user account by selecting the
- Administrative Roles
- ReplicationAdmin
- BackupAdmin
For backups
If you want to use this user for dumping the data from the server it will need additional privileges.
- SHOW VIEW
- EVENT
- TRIGGER
If dumping all databases at once
- SHOW DATABASES
If pulling master data from a server
...
...
...
width | 30% |
---|
...
borderColor | #0070b1 |
---|---|
bgColor | #FFFFFF |
borderWidth | 1 |
...
...
indent | 15px |
---|
...