RaspberryPi (Raspberry Pi) there is no way to install MariaDB database Remote Access

When installing MariaDB or MySQL database on RaspberryPi (Raspberry Pi).

Set by the user no way to log on remotely over the network.

First determine that the user has set access permissions.

Tip error message is:

ERROR 2002 (HY000): Can't connect to MySQL server on '192.168.0.201' (115)

Which address 192.168.0.201 is RaspberryPi (Raspberry Pi) address


Here is a configuration problem related RaspberryPi (Raspberry Pi) of.

You can edit this file using nano /etc/mysql/mariadb.conf.d/50-server.cnf.

Find # bind-address = 127.0.0.1 this statement.

If you do not comment out this statement, you need to comment.

Because if you do not comment out of this, your MariaDB database will only bind 127.0.0.1 address, so you can only log on localhost.

Then you can try to access your database through the network.

https://www.cwiki.us/questions/57938841

Guess you like

Origin www.cnblogs.com/huyuchengus/p/12636935.html