柚子快報激活碼778899分享:mariadb設置遠程訪問
SHEIN風尚出海者綜合2025-05-07180
柚子快報激活碼778899分享:mariadb設置遠程訪問
編輯 /etc/mysql/my.cnf文件,添加以下代碼
[mysqld]
bind-address = 0.0.0.0
在mariadb中添加一個用于遠程訪問的新用戶
先進入mariadb
mysql -u root -p
創(chuàng)建用戶
// 創(chuàng)建用戶
create user 'remote_user'@'%' identified by 'password';
// 給遠程訪問權限
grant all privileges on *.* to 'remote_user'@'%' with grant option;
重啟服務
sudo systemctl restart mariadb
搞定
柚子快報激活碼778899分享:mariadb設置遠程訪問
本文內容根據(jù)網(wǎng)絡資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉載請注明,如有侵權,聯(lián)系刪除。