【正文】
Feb 27 20:07 share drwxrwxrx 7 root root 4096 Feb 27 20:07 sqlbench drwx 4 mysql mysql 4096 Feb 27 20:07 var shellls l /usr/local/mysql/var total 8 drwx 2 mysql mysql 4096 Feb 27 20:08 mysql drwx 2 mysql mysql 4096 Feb 27 20:08 test shellls l /usr/local/mysql/var/mysql total 104 rw 1 mysql mysql 0 Feb 27 20:08 rw 1 mysql mysql 1024 Feb 27 20:08 rw 1 mysql mysql 8778 Feb 27 20:08 rw 1 mysql mysql 302 Feb 27 20:08 rw 1 mysql mysql 3072 Feb 27 20:08 rw 1 mysql mysql 8982 Feb 27 20:08 rw 1 mysql mysql 0 Feb 27 20:08 rw 1 mysql mysql 1024 Feb 27 20:08 rw 1 mysql mysql 8641 Feb 27 20:08 rw 1 mysql mysql 0 Feb 27 20:08 rw 1 mysql mysql 1024 Feb 27 20:08 rw 1 mysql mysql 8958 Feb 27 20:08 rw 1 mysql mysql 0 Feb 27 20:08 rw 1 mysql mysql 1024 Feb 27 20:08 rw 1 mysql mysql 8877 Feb 27 20:08 rw 1 mysql mysql 428 Feb 27 20:08 rw 1 mysql mysql 2048 Feb 27 20:08 rw 1 mysql mysql 9148 Feb 27 20:08 如果這些文件的屬主及屬性不是這樣,請用以下兩個命令修正之: shellchown R /usr/local/mysql/var shellchmod R gorwx /usr/local/mysql/var 用root用戶啟動遠程服務一直是安全大忌,因為如果服務程序出現(xiàn)問題,遠程攻擊者極有可能獲得主機的完全控制權(quán)。 ++++++ | Host | User | Password | Select_priv | Grant_priv | ++++++ | localhost | root | | Y | Y | | % | root | | Y | Y | | localhost | | | Y | Y | | % | | | N | N | ++++++ 4 rows in set ( sec) 我們先來看Unix平臺的user表?! ∥覀冞€看到user為空的匿名用戶,雖然它在Unix平臺下沒什么權(quán)限,但為了安全起見我們應該刪除它: mysql delete from user where user=39。key_buffer_size是用于索引塊的緩沖區(qū)大小,增加它可得到更好處理的索引(對所有讀和多重寫),到你 能負擔得起那樣多?! £P鍵參數(shù)八:thread_cache_size 可以復用的保存在中的線程的數(shù)量。這 兩個sql特征 可以在我們具體在實際開發(fā)靈活應用,也許可以改變一下我們過去一些不合理的數(shù)據(jù)庫操作,可以使我們寫的程序更加的合理,更加的易于維護。 看完之后,我還是覺得使用sp_depends相對靠譜。) 代碼 using System。 string password = 3 ? args[3] : 。 [4, 0].Value = Name。 AddObjects(connection, 39。 = 。 [Index, 0].Style = itemStyle。 foreach (KeyValuePairstring, string item in allItems) { Index++。 if (pare == 0) return (, )。 另外第二個題外話,我發(fā)現(xiàn)印度程序員的確能做事的,對要做的事情很熟悉,譬如那個資深系統(tǒng)分析員,對新業(yè)務的分析是很快捷準確的。Data Source=Aron1。 (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default)) SqlConnection (.NET) Standard Security:Data Source=Aron1。Initial Catalog=pubs。Network Library=DBMSSOCN。false39。true39。Server=Aron1。Trusted_Connection=Yes。Database=pubs。 (use |DataDirectory| when your database file resides in the data directory)Why is the Database parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection).Download the SQL Native Client here (the package contains booth the ODBC driver and the OLE DB provider)Using SQL Server 2005 Express? Don39。Network Library=DBMSSOCN。 (use |DataDirectory| when your database file resides in the data directory) Why is the Database parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection). Using User Instance on a local SQL Server Express instance:Data Source=.\SQLExpress。 or Server=.\SQLExpress。 or Server=Aron1。Server=.\SQLExpress。Server=Aron1。 or Driver={SQL Native Client}。 EquivalentsIntegrated Security=SSPI equals Trusted_Connection=yes Prompt for username and password:(Prompt) = adPromptAlways Driver={SQL Native Client}。false39。 avoids making an additional server roundtrip when obtaining a connection, but the programmer must be aware that the connection state is not being reset. Current Language The SQL Server Language record name. Data SourceorServerorAddressorAddrorNetwork Address The name or network address of the instance of SQL Server to which to connect. Enlist 39。Password=asdasd。Database=pubs。Network Library=DBMSSOCN。 PRompt for username and passWord:(Prompt) = adPromptAlways Driver={SQL Server}。 譬如讓我研究給那個巨大的數(shù)據(jù)表分區(qū),我辛苦寫了詳細的計劃,步驟,相關的SQL,注意事項等等等,最后我問起來,一句話答復:我不會應用的。 public string Status { get { return status。 if (!(itemName)) (itemName, new KeyValuePairstring, string(itemName, [j][type].ToString()))。 for (int i = 0。 (path)。 int index = 5。 ()。 args[3] = passWord。 以下代碼沒有什么特別的,都是循環(huán)所有存儲過程,然后循環(huán)每個存儲過程的依賴對象,然后排序輸出(先按照類型,然后按照名稱)。首先我發(fā)現(xiàn)這個:。例如:創(chuàng)建視圖,然后通過視圖來查詢。 關鍵參數(shù)七:table_cache 為所有線程打開表的數(shù)量。 關鍵參數(shù)二:interactive_timeout 服務器在關閉它前在一個交互連接上等待行動的秒數(shù)。root39?!⊥獠烤W(wǎng)絡安全 MySQL數(shù)據(jù)庫安裝好以后,Unix平臺的user表是這樣的: mysql use mysql。其次就是數(shù)據(jù)目錄和數(shù)據(jù)文件的安全性,也就是權(quán)限設置問題。它具有功能強、使用簡便、管理方便、運行速度快、安全可靠性強等優(yōu)點,用戶可利用許多語言編寫訪問MySQL 數(shù)據(jù)庫的程序,特別是與php更是黃金組合,運用十分廣泛。默認安裝后服務要用mysql用戶來啟動,不允許root用戶啟動。其中redhat只是我試驗機的機器名,所以實際上Unix平臺的MySQL默認只允許本機才能連接數(shù)據(jù)庫。39。如果你使它太大,系統(tǒng)將開始換頁并且真的變慢了。如果有,新的線程從緩存中取得,當斷開連接的時候如果有空間,客戶的線置在緩存中。 資料引用:自動輸出SQL Server對象依賴列表到EXCEL文件前言類似的軟件很多年前寫過,不過現(xiàn)在在新國家,新環(huán)境,印度佬(我囧)資深系統(tǒng)分析員要求我:給現(xiàn)有的數(shù)據(jù)庫的所有存儲過程分別列舉所有依賴的對象。我服了,寫代碼的風格千差萬別,一些是[Foo],一些是Foo,而且不同的存儲過程名稱可能存在完全給另外一個包含,譬如Foo Foo1 AFoo等。 代碼(讓你容易找點。 string user = 2 ? args[2] : 。 [0, 0].Value = ({0} database dictionary, Database)。, Stored Pr