BMS-HOSxP Community
HOSxP => Linux => ข้อความที่เริ่มโดย: Bond_007 ที่ มีนาคม 09, 2010, 20:22:12 PM
-
ผมลงกับ clarkconnect เจอแบบนี้ครับ ลง centos ก็เหมือนกันไม่รู้ต้องแก้ตรงไหนครับ
-
set ในflie config httpd.conf
ตรง AddDefaultCharset ให้เป็น tis620
-
แก้ได้แล้วครับแต่พอทำต่ไปมันขึ้นแบบนี้ครับ
Warning: mysql_connect() [function.mysql-connect]: Host '119.42.122.68' is not allowed to connect to this MySQL server in /var/www/html/eoffice/class/clsConnection.php on line 11
Could not connect : Host '119.42.122.68' is not allowed to connect to this MySQL server
-
แก้ได้แล้วครับแต่พอทำต่ไปมันขึ้นแบบนี้ครับ
Warning: mysql_connect() [function.mysql-connect]: Host '119.42.122.68' is not allowed to connect to this MySQL server in /var/www/html/eoffice/class/clsConnection.php on line 11
Could not connect : Host '119.42.122.68' is not allowed to connect to this MySQL server
grant หรือยังครับ ...
ยกตัวอย่าง
mysql> create database eoffice;
mysql> grant ALL on eoffice.* to eoffice-user@'%' identified by 'eoffice-password';
mysql> flush privileges;
mysql> \q
แล้วลองติดตั้งใหม่ ใช้ user และ password ที่เรา set
-
เค๊า connect dbไม่ได้ครับ เพราะค่าที่คนเขียนตั้งมา
กะ server ของคุณมันคนละตัวกันครับ ต้องไปแก้ที่
clsConnection.php on line 11 ผมคาดว่าน่าจะเป็นคำสั่ง
connect database