Editing
Managing MySQL Database On Synology NAS
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Overview == Notes on configuring and managing MySQL database on Synology NAS through the Synology DSM. == Installation == Install phpMyAdmin through the Synology DSM Package Center. * '''DSM''' > '''Package Center''' > '''Explore''' > '''All''' > '''Third-Party''' > '''phpMyAdmin''' > '''Install''' button Once phpMyAdmin is installed, you can connect to it via `http://''HostName''/phpMyAdmin`. Create a password for `root`. * '''mysql''' database > '''user''' table > click on the user name under the `User` column * Click '''Change Password''' button on the next page. Ultimately it's probably easier to manage the database with a tool like MySQLWorkbench than to use phpMyAdmin. Make sure to allow access for that user from remote machines on the LAN. == Synology DSM firewall == '''DSM''' > '''Control Panel''' > '''Security''' > '''Firewall''' tab * '''Enable Firewall''': `CHECKED` * '''Firewall Profile''': `custom` * Next to '''Firewall Profile''' click the '''Edit Rules''' button > '''Create Rule''' ** '''Ports''': Select from a list of built-in applications *** Select '''MariaDB''' (port 3307) ** '''Source IP''': Specific IP *** Select appropriate range on the LAN ** '''Action''': Allow == Allow connections in MySQL server == Using phpMyAdmin, go to the `User` table in the `mysql` database. Copy `root@localhost` and change the host to the IP of the machine the LAN making queries. Run `FLUSH PRIVILEGES;` == Test the connection == Enter the MySQL server connection properties in a MySQL client (e.g. MySQL Workbench) on the client machine. Test the connection. [[Category:MySQL]][[Category:MariaDB]][[Category:Synology]]
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information