DBにつながらない現象に遭遇
テストのためこんなソースを書いてみました
<?php
$link = mysql_connect('localhost', ''user, 'password');
if (!$link) {
print(mysql_error());
}
?>
これは繋がる
<?php
$link = mysql_connect('127.0.0.1', ''user, 'password');
if (!$link) {
print(mysql_error());
}
?>
これだと繋がらない
エラーメッセージはこんな感じ
Can't connect to MySQL server on '127.0.0.1' (13)
格闘すること2時間、SELinuxを切ったらなおりました。
ブーストの成果計測用で作る機会がありました。
SDK組み込めばよかったんですが、アプリのアップデートが必要なのでアプリ内ブラウザで表示す部分で対応できないかと格闘しました。
初回起動の時のみ以下を出力。
<script language="JavaScript" type="text/javascript">
window.onload = function() {
window.location.href = 'http://www.yahoo.co.jp/';
}
</script>
意外とアッサリです。
昨日までメールのやり取りをしていたお客さんに急にメールが送れなくなった。
エラーメッセージを見るとこんな感じ。
----------------------
This is the mail system at host smtp2.gmoserver.jp.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
****@***.com: host ***.com[157.112.***.***] said: 554 5.7.1 Service unavailable; Client host [210.172.***.***] blocked using xbl.spamhaus.org;
http://www.spamhaus.org/query/bl?ip=210.172.***.*** (in reply to RCPT TO command)
---------------------------------
リンクがあったので踏んでみるとこんなページが表示された。
更にリンクがあったので踏んでみるとこんな感じ。
どうやらここで解除できる雰囲気。
これをクリックするとこんな画面に。
待つこと数分、アッサリ解除できちゃいました。