Adminer

Currently reading
Adminer

9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
Hello,

I would like to install an Adminer (docker official images) but I don't know what to type in the path --link some_database:db. I only have Mariadb 10 installed on synology. When I enter the path localhost/ run /mysqld/mysqld10.sock it doesn't work. Please help.


$ docker run --link some_database:db -p 8080:8080 adminer
 
--link is used to link a target container with the current container (in your case admin) two containers. The left hand side before the colon is the conainer name, the right hand side is an alias. You can use both to communicate to the target container.

A container is not able to access a path from the host, unless you map it into the container as a volume.

Are you aware that you can access the database on the DS by using the DS's ip or hostname and the mysql port? Just enter the details after you selected the database type.
 
9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
Hmm, could you write right command to run this docker image, may be simple tutorial?
 
9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
Ok, but what to enter in the server box?
Adminer.png
 
9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
I enter example 192.168.1.170:3407 in the server field, where 192.168.1.170 is Synology IP and 3407 is port to Mariadb + username: root, password: xxx., database: empty.
I receive a message: SQLSTATE[HY000] [2006] MySQL server has gone away
 
I have no idea if and how adminer works with MariaDB. With Postgres it works just fine.
Our testing team used it to access databases on different clusters and even AWS RDS databases.

You will need to wait for someone who actualy uses adminer with MariaDB.
 
9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
OK, thx.
 
9
0
NAS
DS718+
Router
RT2600ac, MR2200ac
Operating system
Windows
Mobile operating system
Android
The answer is: 127.0.0.1:3307 :cool:
Localhost does not work for Maria 10. It should be 127.0.0.1 explicit.
 
Seems like your mariadb user is only granted access from 127.0.0.1 and the port is running on an differnt port than you tried to use initialy.

Though, your solution appears to be insonsistent with the "docker run" command from your first post. The way the command starts the container does not allow to access a database outside the container via 127.0.0.1.
Would you mind sharing if you added --network=host to your docker run command or created the container from the ui enabling "use the same network as Docker Host" or even something entirely different?
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top