2013-08-03 4 views
-1

방금 ​​우분투 11.04를 11.10으로 업그레이드했습니다. 업그레이드는 잘 작동했지만 (Apache/Apache-SSLMySQL/PHP) postfix 메일 서버는 작동하지 않습니다. 내가 우분투 12.04로 업그레이 드하기 전에 수정을하고 싶습니다 postfix에 문제가 있습니다.업 그레 이드 우분투 -> 지금 우두머리, 데이터베이스에 연결하지 못했습니다.

MySQL, Postfix 및 Dovecot의 버전이 업그레이드되었습니다.

l server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (110) 
Aug 3 06:53:56 ve postfix/trivial-rewrite[5578]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem 

나는 데이터베이스에 연결할 수 있습니다 : 나를 위해

[email protected]:/etc/dovecot# mysql -u email_admin -p 
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 559 
Server version: 5.1.69-0ubuntu0.11.10.1 (Ubuntu) 


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 


Oracle is a registered trademark of Oracle Corporation and/or its 
affiliates. Other names may be trademarks of their respective 
owners. 


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 


mysql> 

정말 복잡한 지금은이 오류가 있습니다. 누구나 아이디어가 있습니까? MySQL 5의 기본 설치 구성으로 후위 연결을 막을 수 있습니까?

답변

0

더 자세히 로컬 호스트 연결에 대해 설명해 드리겠습니다. 내 로컬 호스트에서 MySQL을 텔넷 할 수 없습니다. MySQL은하고 실행하고 아파치 SSL/PHP/MySQL 서버와 함께 잘 작동하지만 텔넷으로 연결할 수 없습니다 : 로컬 호스트에 대한

telnet 127.0.0.1 3306 
Trying 127.0.0.1... 
telnet: Unable to connect to remote host: Connection timed out 

같은

telnet localhost 3306 
Trying 127.0.0.1... 
Trying ::1... 
telnet: Unable to connect to remote host: Connection timed out 

하면 Netstat는 MySQL이 실행 확인 3306 포트 :

:

netstat -alpent | grep 3306 
tcp  0  0 127.0.0.1:3306   0.0.0.0:*    LISTEN  105  522804419 17231/mysqld 
tcp  0  1 127.0.0.1:39268   127.0.0.1:3306   SYN_SENT 0   522915717 17433/auth 
tcp  0  1 127.0.0.1:39254   127.0.0.1:3306   SYN_SENT 0   522915266 17434/auth 
tcp  0  1 127.0.0.1:39250   127.0.0.1:3306   SYN_SENT 0   522915091 17432/auth 

나는 -h localhost를 연결할 수

하지만 -h 127.0.0.1에 연결할 수 없습니다 :

mysql -h 127.0.0.1 -u root -p 
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (110) 

그리고 아직 내가 넣어 가지고 바인드 주소 127.0.01, VI /etc/mysql/my.cnf : ...

# Instead of skip-networking the default is now to listen only on 
# localhost which is more compatible and is not less secure. 
#bind-address   = localhost 
bind-address   = 127.0.0.1 

그리고 다시 시작 MySQL의 :

의 iptables 규칙은 비어 :

iptables -L 
Chain INPUT (policy ACCEPT) 
target  prot opt source    destination 

Chain FORWARD (policy ACCEPT) 
target  prot opt source    destination 

Chain OUTPUT (policy ACCEPT) 
target  prot opt source    destination 

그래서 나는 무엇을 검사해야할지 모르며 Postfix는 MySQL에 연결할 수 없습니다. 아무도 내가 무엇을 확인해야하는지 안다?

사실, 난 서버에서 모든 서비스에 연결할 수 없습니다 :

telnet 127.0.0.1 80 
Trying 127.0.0.1... 
telnet: Unable to connect to remote host: Connection timed out 

telnet 127.0.0.1 443 
Trying 127.0.0.1... 
telnet: Unable to connect to remote host: Connection timed out 

내/etc/hosts 파일

127.0.0.1  localhost 
127.0.0.1  mail.mydomain.com 
::1    localhost ip6-localhost ip6-loopback 
fe00::0   ip6-localnet 
ff00::0   ip6-mcastprefix 
ff02::1   ip6-allnodes 
ff02::2   ip6-allrouters 

# Auto-generated hostname. Please do not remove this comment. 
205.xxx.yyy.zzz ve.uuuuuu.bbbb.cccc ve 
+0

해결. lo 인터페이스가 다운되었습니다! 'ifconfig lo up'가 수정되었습니다. – defacto

관련 문제