A. 怎麼從網站源碼中查找網站資料庫

你的意思是找到資料庫的名字和密碼是不,如果是的話,那麼找到資料庫的連接字元串,裡面會有。

B. 怎樣查找網站資料庫名和密碼安裝網頁源碼時需要用到

你從空間商那裡登陸你的ID 後台有 空間管理、資料庫管理 點擊管理會有資料庫的名稱 密碼等信息

C. 如何查看資料庫中表的源代碼

右鍵單擊該資料庫,任務,生成腳本,一直選下一步,然後遇見勾選的都全選,最後完成就行了
我用的是SQL2005

D. 怎麼查看網站源代碼

網站一般分為三部分:

  1. 前台界面,就是你在瀏覽器上看到的界面

  2. 後台代碼,一般位於網站提供內方的伺服器上

  3. 資料庫,存儲網站的部分數據,同樣位於網站提供方的伺服器上


我們一般能在瀏覽器上看到的只有前台界面;前台界面一般又分為:

  1. HTML,表示界面上有些什麼東西(按鈕,文本框,圖片框)

  2. javascript,你與界面怎麼交互(點擊時、右鍵時瀏覽器做什麼)

  3. css,界面元素(HTML)如何排版,圖片放哪兒,字體多大,字間距多大等

你打開一個頁面後容按F12可以在source中可以直接看到HTML和javascript,css一般在其它路徑下,需要在頁面中查看引用的css位置

所以如果你想要看網站的完整代碼是不可能的,除非有人提供源碼

一般你只能看到前端的這些代碼,只能知道它的形;裡面的數據具體怎麼來的你是不知道的

E. 如何找到網站源碼中的資料庫

網站環境不同,不同程序有不同的資料庫配置位置以discuz為例,其他的隨機應變:

  1. Discuz論壇的資料庫在程序中有設置文件對應查詢賬號密碼,目錄位置:

    /config/config_global.php

    /uc_server/data/config.inc.php

    /config/config_ucenter.php

  2. 文件都含有Discuz論壇資料庫的登錄賬號密碼信息,可以參考查詢資料庫信息。

  3. 網站本身的資料庫是和程序分開的,大部分主機都是儲存在兩個空間。小型虛擬主機,沒有許可權查看資料庫文件,但是會提供在線管理的工具,一般在空間後台有提供鏈接。

  4. 雲主機,快雲VPS,雲伺服器,以及獨立主機,都有遠程伺服器管理許可權的,直接登錄遠程,就可以查看資料庫位置。

  5. 目前的情況看,快雲VPS都自帶雲資料庫,也有管理平台,可以後台直接打開,登錄管理資料庫。

F. 神奇的網友,你有php+ MySQL網站資料庫搜索的源代碼嗎在頁面搜索欄里敲進幾個字,然後資料庫

用sql語句查詢資料庫,
ms sql server
1、查詢所有表
select [id], [name] from [sysobjects] where [type] = 'u' order by [name]
2、查詢所有資料庫
3、select [name] from [sysdatabases] order by [name]
查詢表中欄位
select [name] from [syscolumns] where [name] = 'tableXXX'order by [colid]
oracle
1、查找表的所有索引(包括索引名,類型,構成列):
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and t.table_name = i.table_name and t.table_name = 要查詢的表
2、查找表的主鍵(包括名稱,構成列):
select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' and au.table_name = 要查詢的表
3、查找表的唯一性約束(包括名稱,構成列):
select column_name from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'U' and au.table_name = 要查詢的表
4、查找表的外鍵(包括名稱,引用表的表名和對應的鍵名,下面是分成多步查詢):
select * from user_constraints c where c.constraint_type = 'R' and c.table_name = 要查詢的表
查詢外鍵約束的列名:
select * from user_cons_columns cl where cl.constraint_name = 外鍵名稱
查詢引用表的鍵的列名:
select * from user_cons_columns cl where cl.constraint_name = 外鍵引用表的鍵名
5、查詢表的所有列及其屬性
select t.*,c.COMMENTS from user_tab_columns t,user_col_comments c where t.table_name = c.table_name and t.column_name = c.column_name and t.table_name = 要查詢的表
6、查詢所有表
select* from tabs

G. 急求一份實現資料庫查詢功能的java源代碼,要求是能運行

// 本類只用於資料庫連接及關閉操作
package com.ultrapower.project.nmr.shxdownload.sqlBean;
import java.sql.* ;

public class downloadSqlBean
{
// 屬性
// 定義資料庫操作的常量、對象
// 資料庫驅動程序
private final String DBDRIVER = "oracle.jdbc.driver.OracleDriver" ;
// 資料庫連接地址
private final String DBURL = "jdbc:oracle:thin:@192.168.99.78:1521:ultranms" ;
// 資料庫用戶名
private final String DBUSER = "ultranms" ;
// 資料庫連接密碼
private final String DBPASSWORD = "ultranms" ;
// 聲明一個資料庫連接對象
private Connection conn = null ;
// 在構造方法之中連接資料庫
public downloadSqlBean()
{
try
{
// 載入驅動程序
Class.forName(DBDRIVER) ;
// 連接資料庫
conn = DriverManager.getConnection(DBURL,DBUSER,DBPASSWORD) ;
conn.commit();
}
catch (Exception e)
{
try {
conn.rollback();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
System.out.println(e) ;
}
}

// 返回一個資料庫連接
public Connection getConnection()
{
/// 返回連接對象
return this.conn ;
}

// 關閉資料庫連接
public void close()
{
try
{
this.conn.close() ;
}
catch (Exception e)
{
}
}
};

public class putDbUtils {
// 查詢方法
public ResultSet putDbUtils(String sql) {
PreparedStatement pstm = null;
ResultSet rs = null;
downloadSqlBean bean = new downloadSqlBean();
try {
pstm = bean.getConnection().prepareStatement(sql);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
rs = pstm.executeQuery();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return rs;
}

//action,得到resultset結果集.以後存儲到map,之後set到list里.返回給jsp.在jsp遍歷list獲得到值就可以了
//SQL部分我用的是拼串.僅供參考.正好是我正在寫的項目. 就直接粘上了
public List getAllDownloadFile(int stapage, int courpage) {
ResultSet rs = null;
String sql = null;
List list = new ArrayList();
int startpage = (stapage - 1) * courpage + 1;
int endpage = (stapage - 1) * courpage + courpage;
String sqlhead = "select * from (select A.*,rownum rn from(select filename,title,downloadway,ftpip,fileurl from nmr_download_file where 1=1";
String sqlpage = ") A where rownum <=" + endpage + ")where rn>="
+ startpage;
sql = sqlhead + sqlpage;
putDbUtils db = new putDbUtils();
rs = db.putDbUtils(sql);
try {
while (rs.next()) {
int conter = rs.getRow();
HashMap map = new HashMap();
map.put("filename", rs.getString("ftpname"));
map.put("title", rs.getString("ftpip"));
map.put("downloadway", rs.getString("ftpurl"));
map.put("ftpip", rs.getString("ftpuser"));
map.put("fileurl", rs.getString("ftppass"));
map.put("conter", conter);
list.add(map);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return list;
}

H. 求用ASP頁面在oracle資料庫中用語句查詢並顯示結果的網頁源碼。

你說的東西不難 分幾個東西
1、一個資料庫連接的配置頁
Oracle 連接方法:
set adocon=Server.Createobject("adodb.connection")
adocon.open"Driver={microsoft odbc for oracle};server=oraclesever.world;uid=用戶;pwd=密碼;"
Oracle OLE DB 連接方法:
set adocon=Server.Createobject("adodb.connection")
adocon.open"Provider=OraOLEDB.Oracle;data source=dbname;user id=用戶;password=密碼;"
另外ORACLE不是用IP連接,要在客戶機裝客戶端,然後配置連接名稱的。
2、查詢顯示頁
這個很簡單 和SQL資料庫沒什麼區別。建立集合,然後顯示相應的列,因為不知道你這資料庫結構,沒法幫你寫。

I. 資料庫文件,一般在網站源碼哪裡

1、看是什麼資料庫;
2、acess就放在DB或者database裡面;
3、MYSQL或者MSSQL就是在單獨的資料庫文件裡面的;

J. 網站查詢SQL資料庫,基於編號或者姓名查詢資料庫中對應信息,登錄後可以修改,網站源代碼如何寫

首先,你得確定你使用什麼樣的環境,如是用asp呢,還是用asp.net?當然你也可選擇使用php!

如果確定了,代碼就很簡單了,網上隨便打一個入門級的源碼即可。這里既然不知道你的環境,就不給出代碼了。