群暉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連接數據庫

 

愉快的操作數據庫吧

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM