10/10/2018, 10:45
Lỗi về server localhost trên easyphp
Tình hình là thế này, tôi đang viết 1 trang web để chạy trên localhost nhưng không biết vì sao khi khởi động easyphp chạy trang web thì không thể khởi động được website và hiện ra thông báo lỗi thế này:
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in E:LTWebweb project l3codeIndex.php on line 16
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in E:LTWebweb project l3codeIndex.php on line 16
Không biết có ai đã bị thế này, chỉ tôi cách khắc phục với.
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in E:LTWebweb project l3codeIndex.php on line 16
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in E:LTWebweb project l3codeIndex.php on line 16
Không biết có ai đã bị thế này, chỉ tôi cách khắc phục với.
Bài liên quan
Cấu hình hệ thống của bạn? Phiên bản Windows nào?
100917 23:01:40 [Note] Plugin 'FEDERATED' is disabled.
100917 23:01:40 InnoDB: Started; log sequence number 0 44233
100917 23:01:41 [Note] Event Scheduler: Loaded 0 events
100917 23:01:41 [Note] C:\PROGRA~1\EASYPH~1.3\MySql\bin\mysqld.exe: ready for connections.
Version: '5.1.49-community-log' socket: '' port: 3306 MySQL Community Server (GPL)
Tình hình là thế này các bạn ạ: cách đây hơn 1 tuần tôi vẫn chạy bình thường những trang tôi viết có sử dụng kết nối đến csdl trên localhost bằng easyphp, nhưng không hiểu vì sao mấy hôm nay tự nhiên lại bị thế. Đã thử ghost lại máy, cài bản easyphp khác nhưng không thay đổi gì.
Hiện tôi đang xài Win 7 home
thanks all
bạn thử edit cái file my.cnf bằng cách uncomment (xóa bỏ đi dấu #) của dòng skip-innodb (hoặc chưa có thì thêm dòng này vào)
nhằm cho process mysqld.exe chiếm ít dung lượng bộ nhớ lại xem còn bị lỗi ko nhé