10/10/2018, 10:33

Các bạn giúp mình với(đang cần gấp) !

Không kết nối tới cơ sở dữ liệu MySQL từ Dreamweaver 8.0!
Mình cài đặt Apache 2.5.10 đã test chạy trên localhost thành công!
Đăng nhập vào phpmyadmin bằng user root thành công.

Từ Dreamweaver--> Database---> database connection:

Connection name: abc
MySQL server: localhost
username: root
password:
Database:
tại muc Database mình chọn Select thì hiện ra thông báo lỗi sau:
HTTP Error code 404 File Not Found. Here are some possible reason for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the http:.... Verify that the URL prefix maps to the root of the site.

Rất mong trả lời từ các bạn! Xin chân thành cảm ơn.
dokhacluan viết 12:47 ngày 10/10/2018
ketnoi.php

<?php
mysql_connect("localhost","root","");
mysql_select_db("ten co so du lieu");
mysql_query('SET NAMES "UTF8"');
?>
thuyduongcd viết 12:45 ngày 10/10/2018
tạo database chưa ....
xuanhung79 viết 12:39 ngày 10/10/2018
tạo database xong rồi với kết nối
dokhacluan viết 12:43 ngày 10/10/2018
tạo database rồi dùng đoạn code ketnoi.php của mình
honnhienh viết 12:37 ngày 10/10/2018
hình bạn đó không code thì phải mà sử dung Dreamweaver connect với database lên mới có cái thông báo lỗi kia.
vannhothanh viết 12:47 ngày 10/10/2018
bạn tạo database từ phpadmin xong và kêtnoi bằng code như trên là được
thuyduongcd viết 12:37 ngày 10/10/2018
Dùng phpmyAdmin tạo database. Ví dụ DB có tên là mydb
Sửa dòng này:
Code:
mysql_select_db("ten co so du lieu");
Thay cái ten co so du lieu bằng cái tên DB vừa tạo trong phpMyAdmin
Code:
mysql_select_db("mydb");
honnhienh viết 12:34 ngày 10/10/2018
Các bạn giúp mình với(đang cần gấp) !
Please call 911...............
lenggiauit viết 12:38 ngày 10/10/2018
113 mới đúng
Bài liên quan
0