1. 程式人生 > 其它 >群暉MariaDB10 遠端連線

群暉MariaDB10 遠端連線

群暉MariaDB10 遠端連線

ssh進入群暉

cd /volume2/@appstore/MariaDB10/usr/local/mariadb10/bin

命令進入MariaDB10

./mysql -u root -p

如下:

 

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 92
Server version: 10.3.29-MariaDB Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 
'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> use mysql Database changed MariaDB [mysql]> update user set host='%' where user='wordpress_user'; Query OK, 1 row affected (0.001 sec) Rows matched: 1 Changed: 1 Warnings: 0 MariaDB [mysql]> select host,user from user
-> ; +-----------+----------------+ | host | user | +-----------+----------------+ | % | root | | % | wordpress_user | | ::1 | root | | localhost | root | +-----------+----------------+ 4 rows in set (0.000 sec)






 

 

 

navcat連線資料庫

 

愉快的操作資料庫吧