
나는 하나를 샀다자이셀 NAS 326이제 로컬 호스트가 아닌 컴퓨터에서 MySQL에 액세스하는 데 문제가 있습니다.
MySQL은 php-mysql-phpmyadmin APP(MySQL이 있는 유일한 앱)를 통해 설치되었으며 액세스 바인딩을 위해 MySQL 구성을 변경하는 방법을 모르겠습니다.
SSH에서 my.cnf 파일을 찾을 수 없습니다.
MySQL의 구성을 어떻게 수정합니까?
답변1
다음 4개 파일을 "127.0.0.1"에서 "0.0.0.0"으로 변경해야 합니다.
/usr/local/mysql/bin/reset_zyadmin - 라인:25:./bin/mysqld_safe --skip-grant-table --bind-address=127.0.0.1 &
/usr/local/mysql/bin/reset_zyadmin - 라인:65:./bin/mysqld_safe --user=mysql --bind-address=127.0.0.1 &
/usr/local/mysql/bin/reset - 라인:38:./bin/mysqld_safe --user=mysql --bind-address=127.0.0.1 &
/usr/local/mysql/bin/init - 라인:13:./bin/mysqld_safe --skip-grant-table --bind-address=127.0.0.1 &
그런 다음 zyxel 관리 페이지에 로그인하여 PHP-MySQL-phpMyAdmin 앱을 선택하고 "MySQL 데이터베이스 비밀번호 재설정"을 누르세요. 참고: 비밀번호를 기본값으로 재설정하면 바인드 주소 값이 "0.0.0.0"으로 생성됩니다. 이제 로그인할 수 있습니다. MySQL을 원격으로(참고: MySQL 사용자도 호스트로 설정해야 합니다) 즐기세요 :)
답변2
게다가Ek의 솔루션에서 mysql 원격 액세스를 영구적으로 사용할 수 있는 Zyxel 부팅을 만드는 모드를 찾았습니다. https://homeforum.zyxel.com/discussion/1926/the-mysql-server-of-the-nas326-app-runs-only-on-localhost-how-do-i-make-it-lan-reachable "nintendoeats"는 다음을 알아냈습니다. "SSH를 NAS에 연결하고 vi를 사용하여 다음 파일을 편집합니다: /i-data/longAlphanumeric/.PKG/PHP-MySQL-phpMyAdmin/etc/init.d/PHP-MySQL-phpMyAdmin
다음 2가지를 변경해야 합니다.
ln the chckmd5sum() function, change return 2 to continue (this bypasses the md5 check). This is at line 31.
In the enable() function, find the line with --bind-address=127.0.0.1 and change it to the NAS'es static IP. This is at line 61.
저장하고 NAS를 다시 시작하고 파티를 열어보세요." 물론 모두는 고정 IP 대신 0.0.0.0을 선호합니다.