国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 網(wǎng)絡(luò)知識 > 網(wǎng)絡(luò)技術(shù) >

    IIS數(shù)據(jù)庫連接失敗是什么原因

    時間: 加城1195 分享

      有網(wǎng)友遇到IIS數(shù)據(jù)庫連接失敗情況,不知道怎么解決,網(wǎng)絡(luò)連接沒問題可以排除,那么是什么原因呢?下面一起看看IIS數(shù)據(jù)庫連接失敗問題的解決方法!

      方法步驟:

      @echo off

      echo 正在清除系統(tǒng)垃圾文件,請稍等......

      del /f /s /q %systemdrive%\*.tmp

      del /f /s /q %systemdrive%\*._mp

      del /f /s /q %systemdrive%\*.log

      del /f /s /q %systemdrive%\*.gid

      del /f /s /q %systemdrive%\*.chk

      del /f /s /q %systemdrive%\*.old

      del /f /s /q %systemdrive%\recycled\*.*

      del /f /s /q %windir%\*.bak

      del /f /s /q %windir%\prefetch\*.*

      rd /s /q %windir%\temp & md %windir%\temp

      del /f /q %userprofile%\cookies\*.*

      del /f /q %userprofile%\recent\*.*

      del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

      del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

      del /f /s /q "%userprofile%\recent\*.*"

      echo 清除系統(tǒng)垃圾文件完成!

      echo. & pause

      以上批處理中有一句是rd /s /q %windir%\temp & md %windir%\temp

      將temp文件夾用RD命令刪除,再用MD創(chuàng)建,這樣會導(dǎo)致權(quán)限問題!

      懷疑原因可能出在IIS設(shè)置上,仔細檢查數(shù)遍,兼網(wǎng)站目錄權(quán)限,未發(fā)現(xiàn)問題。

      再在互聯(lián)網(wǎng)上搜索,發(fā)現(xiàn)一案例,因使用批處理命令刪除臨時文件夾,出現(xiàn)相同癥狀,恍然大悟,一定是臨時文件夾權(quán)限問題。

      在NTFS格式下,temp目錄的權(quán)限肯定會改變,由于數(shù)據(jù)庫操作時需要使用temp目錄作緩存進行數(shù)據(jù)交換,當權(quán)限不足時就出現(xiàn):“數(shù)據(jù)庫連接出錯,請檢查連接字串。”的錯誤提示。 修正temp權(quán)限后再試,ok了

      找到temp目錄:C:\WINDOWS\這里即可找到。 給temp文件夾加上guests組的權(quán)限就OK了,我IIS用戶是屬于GUESTS組的,所以加GUESTS 加上以后,測試,OK.系統(tǒng)之家問題解決完畢。你試試

      補充:MySQL 數(shù)據(jù)庫常用命令

      create database name; 創(chuàng)建數(shù)據(jù)庫

      use databasename; 進入數(shù)據(jù)庫

      drop database name 直接刪除數(shù)據(jù)庫,不提醒

      show tables; 顯示表

      describe tablename; 查看表的結(jié)構(gòu)

      select 中加上distinct去除重復(fù)字段

      mysqladmin drop databasename 刪除數(shù)據(jù)庫前,有提示。

      顯示當前mysql版本和當前日期

      select version(),current_date;

      數(shù)據(jù)庫維護方法

      在MySQL使用的過程中,在系統(tǒng)運行一段時間后,可能會產(chǎn)生碎片,造成空間的浪費,所以有必要定期的對MySQL進行碎片整理。

      當刪除id=2的記錄時候,發(fā)生的現(xiàn)象

      這個時候發(fā)現(xiàn)磁盤的空間并沒有減少。這種現(xiàn)象就叫做碎片化(有一部分的磁盤空間在數(shù)據(jù)刪除以后(空),還是無法被操作系統(tǒng)所使用。)

      常見的優(yōu)化:

      # alter table xxx engine myisam;

      # optimize table t1;

      注意: 在實際開發(fā)的過程中,上面兩個語句盡量少使用,因為在使用的過程中,MySQL的表的結(jié)構(gòu)會整體全部重新整理,需要消耗很多的資源,建議在凌晨兩三點鐘的時候執(zhí)行。(在linux下有定時器腳本可以執(zhí)行,crontab)


    IIS數(shù)據(jù)庫相關(guān)文章:

    1.Linux系統(tǒng)如何設(shè)置.net IIS元數(shù)據(jù)庫的讀訪問權(quán)

    2.教你如何配置自己的網(wǎng)站服務(wù)器

    3.windows server2008apache服務(wù)器安裝jdk教程

    4.企業(yè)網(wǎng)站建設(shè)的做自助建

    5.企業(yè)網(wǎng)站建設(shè)流程

    4015147