数据库连接字符串

GEO芯片数据下载和探针ID转换(保姆级教程) R语言安装、GEO芯片数据下载、探针ID转换 阅读详情

 

记得自己每学习一门语言的时候,总是学了没有多久就在想如何连接数据库,好像觉得只有连接到了数据库,才有更多学习的意义,呵呵

前段时间搞一个 .NET 的程序,为了连接到SQLServer,调试了半天ConnectionString,这还只是SQLServer,还有什么oracle、informix啊

正好今天看到下面这个网站上把几乎所有的数据库ConnectionString作了一个总结,基本上是全了吧,以后调试程序的时候也有个参考了

http://www.connectionstrings.com/

看这个URL也知道这个网站是干什么的了,哈哈

 

 

还是把文章内容拷出来吧,免得哪天这个网站上不去了

  • ?SQL Server
      • ?ODBC

        • Standard Security:
          "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"


        • ?Trusted connection:
          "Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"


        • ?Prompt for username and password:
          oConn.Properties("Prompt") = adPromptAlways
          oConn.Open "Driver={SQL Server};Server=Aron1;DataBase=pubs;"


      • ?OLE DB, OleDbConnection (.NET)

        • ?Standard Security:
          "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"


        • ?Trusted Connection:
          "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
          (use serverName/instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
        • ?Prompt for username and password:
          oConn.Provider = "sqloledb"
          oConn.Properties("Prompt") = adPromptAlways
          oConn.Open "Data Source=Aron1;Initial Catalog=pubs;"


        • ?Connect via an IP address:
          "Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
          (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;User Id=sa;Password=asdasd;"
          ???-?or?-
          "Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False"
          ???(booth connection strings produces the same result)


        • ?Trusted Connection:
          "Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
          ???-?or?-
          "Server=Aron1;Database=pubs;Trusted_Connection=True;"
          ???(booth connection strings produces the same result)
          (use serverName/instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
        • ?Connect via an IP address:
          "Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
          (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
        • ?Declare the SqlConnection:
          C#:
          using System.Data.SqlClient;
          SqlConnection oSQLConn = new SqlConnection();
          oSQLConn.ConnectionString="my connectionstring";
          oSQLConn.Open();


          VB.NET:
          Imports System.Data.SqlClient
          Dim oSQLConn As SqlConnection = New SqlConnection()
          oSQLConn.ConnectionString="my connectionstring"
          oSQLConn.Open()


      • ?Data Shape

        • ?MS Data Shape
          "Provider=MSDataShape;Data Provider=SQLOLEDB;Data Source=Aron1;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
          Want to learn data shaping? Check out 4GuyfFromRolla's great article about Data Shaping >>
      • ?Read more

          • ?How to define wich network protocol to use

            • Example:
              "Provider=sqloledb;Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"

              NameNetwork library
              dbnmpntwWin32 Named Pipes
              dbmssocnWin32 Winsock TCP/IP
              dbmsspxnWin32 SPX/IPX
              dbmsvinnWin32 Banyan Vines
              dbmsrpcnWin32 Multi-Protocol (Windows RPC)


              Important note!
              When connecting through the SQLOLEDB provider use the syntax Network Library=dbmssocn
              and when connecting through MSDASQL provider use the syntax Network=dbmssocn

          • ?All SqlConnection connectionstring properties

            • This table shows all connectionstring properties for the ADO.NET SqlConnection object. Most of the properties are also used in ADO. All properties and descriptions is from msdn.

              NameDefaultDescription
              Application Name?The name of the application, or '.Net SqlClient Data Provider' if no application name is provided.
              AttachDBFilename
              -or-
              extended?properties
              -or-
              Initial File Name
              ?The name of the primary file, including the full path name, of an attachable database. The database name must be specified with the keyword 'database'.
              Connect Timeout
              -or-
              Connection Timeout
              15The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
              Connection Lifetime0When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by connection lifetime. Useful in clustered configurations to force load balancing between a running server and a server just brought on-line.
              Connection Reset'true'Determines whether the database connection is reset when being removed from the pool. Setting to 'false' avoids making an additional server round-trip 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 Source
              -or-
              Server
              -or-
              Address
              -or-
              Addr
              -or-
              Network Address
              ?The name or network address of the instance of SQL Server to which to connect.
              Enlist'true'When true, the pooler automatically enlists the connection in the creation thread's current transaction context.
              Initial Catalog
              -or-
              Database
              ?The name of the database.
              Integrated Security
              -or-
              Trusted_Connection
              'false'Whether the connection is to be a secure connection or not. Recognized values are 'true', 'false', and 'sspi', which is equivalent to 'true'.
              Max Pool Size100The maximum number of connections allowed in the pool.
              Min Pool Size0The minimum number of connections allowed in the pool.
              Network Library
              -or-
              Net
              'dbmssocn'The network library used to establish a connection to an instance of SQL Server. Supported values include dbnmpntw (Named Pipes), dbmsrpcn (Multiprotocol), dbmsadsn (Apple Talk), dbmsgnet (VIA), dbmsipcn (Shared Memory) and dbmsspxn (IPX/SPX), and dbmssocn (TCP/IP).
              The corresponding network DLL must be installed on the system to which you connect. If you do not specify a network and you use a local server (for example, "." or "(local)"), shared memory is used.
              Packet Size8192Size in bytes of the network packets used to communicate with an instance of SQL Server.
              Password
              -or-
              Pwd
              ?The password for the SQL Server account logging on.
              Persist Security Info'false'When set to 'false', security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state. Resetting the connection string resets all connection string values including the password.
              Pooling'true'When true, the SQLConnection object is drawn from the appropriate pool, or if necessary, is created and added to the appropriate pool.
              User ID?The SQL Server login account.
              Workstation IDthe local computer nameThe name of the workstation connecting to SQL Server.


              Note
              Use ; to separate each property.
              If a name occurs more than once, the value from the last one in the connectionstring will be used.
              If you are building your connectionstring in your app using values from user input fields, make sure the user can't change the connectionstring by inserting an additional property with another value within the user value.
    • ?Access
        • ?ODBC

          • ?Standard Security:
            "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:/mydatabase.mdb;Uid=Admin;Pwd=;"


          • ?Workgroup:
            "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:/mydatabase.mdb;SystemDB=C:/mydatabase.mdw;"


          • ?Exclusive:
            "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:/mydatabase.mdb;Exclusive=1;Uid=admin;Pwd="


        • ?OLE DB, OleDbConnection (.NET)

          • ?Standard security:
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/somepath/mydb.mdb;User Id=admin;Password=;"


          • ?Workgroup (system database):
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/somepath/mydb.mdb;Jet OLEDB:System Database=system.mdw;"


          • ?With password:
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/somepath/mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"


    • ?Oracle
        • ?ODBC

          • ?New version:
            "Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"


          • ?Old version:
            "Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;"


        • ?OLE DB, OleDbConnection (.NET)

          • ?Standard security:
            "Provider=msdaora;Data Source=MyOracleDB;User Id=UserName;Password=asdasd;"
            This one's from Microsoft, the following are from Oracle
          • ?Standard Security:
            "Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=Username;Password=asdasd;"


          • ?Trusted Connection:
            "Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;"


        • ?OracleConnection (.NET)

          • ?Standard:
            "Data Source=Oracle8i;Integrated Security=yes;"
            This one works only with Oracle 8i release 3 or later
          • ?Specifying username and password:
            "Data Source=Oracle8i;User Id=username;Password=passwd;Integrated Security=no;"
            This one works only with Oracle 8i release 3 or later
          • ?Declare the OracleConnection:
            C#:
            using System.Data.OracleClient;
            OracleConnection oOracleConn = new OracleConnection();
            oOracleConn.ConnectionString = "my connectionstring";
            oOracleConn.Open();


            VB.NET:
            Imports System.Data.OracleClient
            Dim oOracleConn As OracleConnection = New OracleConnection()
            oOracleConn.ConnectionString = "my connectionstring"
            oOracleConn.Open()


        • ?Core Labs OraDirect (.NET)

          • ?Standard:
            "User ID=scott; Password=tiger; Host=ora; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0"
            Read more at Core Lab and the product page.
        • ?Data Shape

          • ?MS Data Shape:
            "Provider=MSDataShape.1;Persist Security Info=False;Data Provider=MSDAORA;Data Source=orac;user id=username;password=mypw"
            Want to learn data shaping? Check out 4GuyfFromRolla's great article about Data Shaping >>
    • ?MySQL
        • ?ODBC

          • ?ODBC 2.50 Local database:
            "Driver={mySQL};Server=localhost;Option=16834;Database=mydatabase;"


          • ?ODBC 2.50 Remote database:
            "Driver={mySQL};Server=data.domain.com;Port=3306;Option=131072;Stmt=;Database=my-database;Uid=username;Pwd=password;"


          • ?ODBC 3.51 Local database:
            "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3;"


          • ?ODBC 3.51 Remote database:
            "DRIVER={MySQL ODBC 3.51 Driver};SERVER=data.domain.com;PORT=3306;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3;"


        • ?OLE DB, OleDbConnection (.NET)

          • ?Standard:
            "Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;"
        • ?MySqlConnection (.NET)

          • ?eInfoDesigns.dbProvider:
            "Data Source=server;Database=mydb;User ID=username;Password=pwd;Command Logging=false"
            This one is used with eInfoDesigns dbProvider, an add-on to .NET
          • ?Declare the MySqlConnection:
            C#:
            using eInfoDesigns.dbProvider.MySqlClient;
            MySqlConnection oMySqlConn = new MySqlConnection();
            oMySqlConn.ConnectionString = "my connectionstring";
            oMySqlConn.Open();


            VB.NET:
            Imports eInfoDesigns.dbProvider.MySqlClient
            Dim oMySqlConn As MySqlConnection = New MySqlConnection()
            oMySqlConn.ConnectionString = "my connectionstring"
            oMySqlConn.Open()


        • ?SevenObjects MySqlClient (.NET)

          • ?Standard:
            "Host=server; UserName=myusername; Password=mypassword;Database=mydb;"
            This is a freeware ADO.Net data provider from SevenObjects
        • ?Core Labs MySQLDirect (.NET)

          • ?Standard:
            "User ID=root; Password=pwd; Host=localhost; Port=3306; Database=test;Direct=true; Protocol=TCP; Compress=false; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0"
            Read more at Core Lab and the product page.
    • ?Interbase
        • ?ODBC, Easysoft

          • ?Local computer:
            "Driver={Easysoft IB6 ODBC};Server=localhost;Database=localhost:C:/mydatabase.gdb;Uid=username;Pwd=password"


          • ?Remote Computer:
            "Driver={Easysoft IB6 ODBC};Server=ComputerName;Database=ComputerName:C:/mydatabase.gdb;Uid=username;Pwd=password"
            Read more about this driver: Easysoft ODBC-Interbase driver >>
        • ?ODBC, Intersolv

          • ?Local computer:
            "Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=localhost;Database=localhost:C:/mydatabase.gdb;Uid=username;Pwd=password"


          • ?Remote Computer:
            "Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=ComputerName;Database=ComputerName:C:/mydatabase.gdb;Uid=username;Pwd=password"
            This driver are provided by DataDirect Technologies >> (formerly Intersolv)


        • ?OLE DB, SIBPROvider

          • ?Standard:
            "provider=sibprovider;location=localhost:;data source=c:/databases/gdbs/mygdb.gdb;user id=SYSDBA;password=masterkey"


          • ?Specifying character set:
            "provider=sibprovider;location=localhost:;data source=c:/databases/gdbs/mygdb.gdb;user id=SYSDBA;password=masterkey;character set=ISO8859_1"


          • ?Specifying role:
            "provider=sibprovider;location=localhost:;data source=c:/databases/gdbs/mygdb.gdb;user id=SYSDBA;password=masterkey;role=DIGITADORES"
            Read more about SIBPROvider >>



          Read more about connecting to Interbase in this Borland Developer Network article http://community.borland.com/article/0,1410,27152,00.html

    • ?IBM DB2
        • ?OLE DB, OleDbConnection (.NET) from ms

          • ?TCP/IP:
            "Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=XXX.XXX.XXX.XXX;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;User ID=MyUser;Password=MyPW"


          • ?APPC:
            "Provider=DB2OLEDB;APPC Local LU Alias=MyAlias;APPC Remote LU Alias=MyRemote;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;User ID=MyUser;Password=MyPW"


        • ?IBM's OLE DB Provider (shipped with IBM DB2 UDB v7 or above)

          • ?TCP/IP:
            Provider=IBMDADB2;Database=sample;HOSTNAME=db2host;PROTOCOL=TCPIP;PORT=50000;uid=myUserName;pwd=myPwd;


        • ?ODBC

          • ?Standard:
            "driver={IBM DB2 ODBC DRIVER};Database=myDbName;hostname=myServerName;port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd"


    • ?Sybase
        • ?ODBC

          • ?Standard Sybase System 12 (or 12.5) Enterprise Open Client:
            "Driver={SYBASE ASE ODBC Driver};Srvr=Aron1;Uid=username;Pwd=password"


          • ?Standard Sybase System 11:
            "Driver={SYBASE SYSTEM 11};Srvr=Aron1;Uid=username;Pwd=password;"
            Do you know a userguide for Sybase System 11, 12, 12.5? E-mail the URL to connectionstrings.com now!! >>
          • ?Intersolv 3.10:
            "Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=Aron1;Uid=username;Pwd=password;"


          • ?Sybase SQL Anywhere (former Watcom SQL ODBC driver):
            "ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:/dbfolder/;Dbf=c:/mydatabase.db;Uid=username;Pwd=password;Dsn="""""
            Note! The two double quota following the DSN parameter at the end are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax. The empty DSN parameter is indeed critical as not including it will result in error 7778.


            Read more in the Sybase SQL Anywhere User Guide >>
        • ?OLE DB

          • ?Adaptive Server Anywhere (ASA):
            "Provider=ASAProv;Data source=myASA"
            Read more in the ASA User Guide >>
          • ?Adaptive Server Enterprise (ASE) with Data Source .IDS file:
            "Provider=Sybase ASE OLE DB Provider; Data source=myASE"
            Note that you must create a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs.
          • ?Adaptive Server Enterprise (ASE):
            "Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000;Catalog=myDBname;User Id=username;Password=password"
            ???- some reports on problem using the above one, try the following as an alternative -

            "Provider=Sybase.ASEOLEDBProvider;Server Name=myASEserver,5000;Initial Catalog=myDBname;User Id=username;Password=password"
            This one works only from Open Client 12.5 where the server port number feature works,燼llowing fully qualified connection strings to be used without defining燼ny .IDS Data Source files.
        • ?AseConnection (.NET)

          • ?Standard:
            "Data Source='myASEserver';Port=5000;Database='myDBname';UID='username';PWD='password';"


          • ?Declare the AseConnection:
            C#:
            using Sybase.Data.AseClient;
            AseConnection oCon = new AseConnection();
            oCon.ConnectionString="my connection string";
            oCon.Open();


            VB.NET:
            Imports System.Data.AseClient
            Dim oCon As AseConnection = New AseConnection()
            oCon.ConnectionString="my connection string"
            oCon.Open()


    • ?Informix
        • ?ODBC

          • ?Informix 3.30:
            "Dsn='';Driver={INFORMIX 3.30 32 BIT};Host=hostname;Server=myserver;Service=service-name;Protocol=olsoctcp;Database=mydb;UID=username;PWD=myPwd


          • ?Informix-CLI 2.5:
            "Driver={Informix-CLI 2.5 (32 Bit)};Server=myserver;Database=mydb;Uid=username;Pwd=myPwd"


        • ?OLE DB

          • ?IBM Informix OLE DB Provider:
            "Provider=Ifxoledbc.2;password=myPw;User ID=myUser;Data Source=dbName@serverName;Persist Security Info=true"


    • ?Ingres
        • ?ODBC

          • DSN-less
            "Provider=MSDASQL.1;DRIVER=Ingres;SRVR=xxxxx;DB=xxxxx;Persist Security Info=False;uid=xxxx;pwd=xxxxx;SELECTLOOPS=N;Extended Properties="""SERVER=xxxxx;DATABASE=xxxxx;SERVERTYPE=INGRES""


    • ?Mimer SQL
        • ?ODBC

          • ?Standard Security:
            "Driver={MIMER};Database=mydb;Uid=myuser;Pwd=mypw;"


          • ?Prompt for username and password:
            "Driver={MIMER};Database=mydb;"


    • ?PostgreSQL
        • ?Core Labs PostgreSQLDirect (.NET)

          • ?Standard:
            "User ID=root; Password=pwd; Host=localhost; Port=5432; Database=testdb;Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0"
            Read more at Core Lab and the product page.


    • ?DSN
        • ?ODBC

          • ?DSN:
            "DSN=myDsn;Uid=username;Pwd=;"


          • ?File DSN:
            "FILEDSN=c:/myData.dsn;Uid=username;Pwd=;"


    • ?Excel
        • ?ODBC

          • ?Standard:
            "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:/MyExcel.xls;DefaultDir=c:/mypath;"


        • ?OLE DB

          • ?Standard:
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/MyExcel.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
            "HDR=Yes;" indicates that the first row contains columnnames, not data
            "IMEX=1;" tells the driver to always read "intermixed" data columns as text
            TIP! SQL syntax: "SELECT * FROM [sheet1$]" - i.e. worksheet name followed by a "$" and wrapped in "[" "]" brackets.
    • ?Text
        • ?ODBC

          • ?Standard:
            "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=c:/txtFilesFolder/;Extensions=asc,csv,tab,txt;"


        • ?OLE DB

          • ?Standard:
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/txtFilesFolder/;Extended Properties=""text;HDR=Yes;FMT=Delimited"""
            "HDR=Yes;" indicates that the first row contains columnnames, not data
    • ?DBF / FoxPro
        • ?ODBC

          • ?standard:
            "Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:/mydbpath;"


        • ?OLE DB, OleDbConnection (.NET)

          • ?standard:
            "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/folder;Extended Properties=dBASE IV;User ID=Admin;Password="


    • ?AS/400
        • ?OLE DB

          • ?IBM Client Access OLE DB provider:
            "PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;Uid=myUserName;Pwd=myPwd"
            Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator
        • ?ODBC

          • ?IBM Client Access ODBC driver:
            "Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUserName;Pwd=myPwd"
    • ?Visual FoxPro
        • ?OLE DB, OleDbConnection (.NET)

          • ?Database container (.DBC):
            "Provider=vfpoledb.1;Data Source=C:/MyDbFolder/MyDbContainer.dbc;Collating Sequence=machine"


          • ?Free table directory:
            "Provider=vfpoledb.1;Data Source=C:/MyDataDirectory/;Collating Sequence=general"


          • ?Force the provider to use an ODBC DSN:
            ""Provider=vfpoledb.1;DSN=MyDSN""
            Read more (Microsoft msdn) >>
        • ?ODBC

          • ?Database container (.DBC):
            "Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:/myvfpdb.dbc;Exclusive=No;NULL=NO;Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO"


          • ?Free Table directory:
            "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=c:/myvfpdbfolder;Exclusive=No;Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO"
            "Collate=Machine" is the default setting, for other settings check the list of supported collating sequences >>

          Microsoft Visual Foxpro site: http://msdn.microsoft.com/vfoxpro

    • ?Pervasive
    • ?UDL
        • ?UDL

          • ?UDL:
            "File Name=c:/myDataLink.udl;"
    【网络安全】SSRF漏洞讲解 SSRF漏洞讲解一、初识SSRF漏洞1.定义2.产生原理3.会导致的危害4.常见产生SSRF的地方5.常见缺失函数二、SSRF漏洞利用1.函数(1) file_get_contents(2)fsockopen()(3) curl_exec()2.协议(1)file协议(2)http协议(3)dict协议(4)gopher协议三、绕过1.绕过方式(1)检查IP是否为内网IP(2)Host获取与DNS绕过(3)通过各种协议(4)利用URL解析器滥用问题四、修复修复方案五、小结 一、初识SSRF漏洞 1.定义 阅读详情

    相关推荐

    从星形到三角形:永磁同步电机FOC+SVPWM控制的相位偏移与扇区重构

    本文深入探讨了将FOC+SVPWM控制方案从星形接法永磁同步电机移植到三角形接法时遇到的核心挑战。文章重点解析了由绕组连接方式差异导致的30度相位偏移问题,并详细阐述了如何为此重构扇区判断逻辑、矢量作用时间计算以及电流采样变换,为工程师提供了从理论到实践的完整移植指南。

    ujm5678901的博客 560

    MySQL数据库之MySQL的binary类型操作

    MySQL数据库之MySQL的binary类型操作 JDBCUtils 本文主要向大家介绍了MySQL数据库之MySQL的binary类型操作 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。 示例数据表: CREATE TABLE test_bin ( bin_id BINARY(16) NOT NULL ) Engine=InnoDB; 插入数据...

    xiangwang2016的博客 2万+

    树莓派CM4 PCIe扩展方案与ASM1184e芯片应用

    PCIe(Peripheral Component Interconnect Express)是计算机硬件中重要的高速串行总线标准,广泛应用于存储、网络等设备连接。其核心原理是通过差分信号实现高带宽传输,PCIe Gen2 x1的理论带宽可达5Gbps。在嵌入式开发中,PCIe扩展技术能有效解决单板计算机接口不足的问题,特别适合树莓派等微型平台。ASMedia ASM1184e作为PCIe交换芯片,可将单个接口扩展为多个,支持热插拔且免驱动,极大提升了工程灵活性。通过PCIe交换机方案,开发者能在树莓派CM

    weixin_42602368的博客 445

    DataBase 数据库连接字符串

     ADO.NET 连接数据库字符串(Oracle、SqlServer、Access、ODBC) ADO.NET连接到 SQL Server SQL Server .NET Framework 数据提供程序支持类似于 OLE DB (ADO) 连接字符串格式的连接字符串格式。using (SqlConnection connection = new SqlConnection(conne

    foodvc的专栏 834

    用Python turtle库 绘制皮卡丘

    Turtle库是Python语言中一个很流行的绘制图像的函数库,想象一个小乌龟,在一个横轴为x、纵轴为y的坐标系原点,(0,0)位置开始,它根据一组函数指令的控制,在这个平面坐标系中移动,从而在它爬行的路径上绘制了图形。 turtle基础知识参考: https://gitchat.blog.csdn.net/article/details/90696190 https://blog.csdn.ne...

    qq_36295856的博客 2万+

    ANSYS接触分析实战:从法兰连接案例看接触刚度与穿透容差的黄金搭配

    本文以法兰连接为实战案例,深入解析了ANSYS接触分析中接触刚度(FKN)与穿透容差(FTOLN)的参数设置策略。通过系统性敏感性分析,揭示了这对关键参数的博弈关系与调优逻辑,旨在帮助工程师在保证计算收敛的同时,获得高精度的有限元分析结果,有效解决工程中的非线性接触难题。

    moon9的博客 325

    mysql dsn连接字符串_数据库连接字符串

    一、SQL ServerODBC标准连接Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;受信的连接Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Trusted_Connection=...

    weixin_31616935的博客 1030

    智能车图像处理2-入门级分析1 ---基础扫线

    PS :入门级文章适合新手,如果已经有基础可以去看进阶篇文章。

    taiyuezyh的博客 7795

    数据库的连接字符串大全

    一、.NET Framework Data Provider for SQL Server 类型:.NET Framework类库使用:System.Data.SqlClient.SqlConnection厂商:Microsoft 1.标准安全连接 Data Source = myServerAddress;Initial Catalog = myDataBase;User I...

    anjujiao1678的博客 1278

    【AI】获取各类AI大模型api-key的快速教程(OpenAI、Gemini、Claude、DeepSeek)

    【AI】获取各类AI大模型api-key的快速教程(OpenAI、Gemini、Claude、DeepSeek)

    funfan的博客 3659

    硬核 | Claude Code 完全入手指南:从零安装到模型配置cc-switch,一篇搞定所有实战场景

    AI 几乎每天都在更新变化,国内外主流大模型也隔三差五的更新版本,每次新版本的到来就意味着部分老版本的淘汰或停用。古法时代如此(java 小伙伴一定经历过,曾经struts+hibernate时代 到后面 的 springmvc 时代再到后来的springboot时代 再后来就是微服务了;而前端童鞋们也肯定经过jquery、angular时代,后面逐渐靠向vue/react等等)。AI 时代亦是如此。

    十年老程序猿,AI 疯狂研究专家,前沿硬核知识分享 1001

    各种方式访问数据库连接字符串

    一、使用数据源访问数据库: 若是系统数据源或用户数据源: sqlText="DSN=数据源名;uid=用户名;pwd=密码;" 若是文件数据源: sqlText="FILEDSN=数据源文件名;uid=用户名;pwd=密码" 说明:   uid和pwd为可选项,分别用于设置访问数据库的用户名和密码,SQL Server和Oracle等数据库,在访问时需要

    2335

    <IBM AIX> 《HACMP 实用手册和命令 HA切换手册》 - 鸿篇巨制,全网最全

    操作命令检查磁盘预留策略要将磁盘预留策略更改为 no_reserve集群状态实用程序查看集群状态是否正常SMIT System Management (C-SPOC)Cluster ServicesShow Cluster Services 面板上的选项或 lssrc 命令查看资源组、资源组对应的VG、资源组对应的APPLICATION SERVER# ./cldispsmit常用命令F3退出F4列表Esc+6或者F6查看命令Esc+7或者F7选择多项检查状态。

    Else 的博客 3375

    asp.net mysql连接字符串_ASP.Net数据库连接字符串

    name="SQLCONNECTIONSTRING" connectionString="data Source=stupidgirl\DD;   database=ChildrenERecord;   user id=child;...

    weixin_34771903的博客 239

    OV9734 DATASHEET,完整规格书

    OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

    IMSL CNL 7.0.0 (x86-64)Crack

    IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

    各数据库的连接字符串

    各数据库的连接字符串SQL Serverworkstation id=192.168.1.110;user id=sa;data source=192.168.1.110;initial catalog=dddOracleuser id=NETOA;Password=NETOA;data source=guy;persist security info=FalseOLE DB

    Cave-House 2031

    假人有限元模型

    假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

    数据库连接字符串大全

    数据库连接字符串大全 很感谢creativepeter(头皮屑)提供的本连接地址(http://www.connectionstrings.com/)     SQL Server  ODBC  Standard Security:"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"

    gauss32的专栏 2402

    使用OLE DB连接各种类型的数据库的连接字符串

    SQL Server 使用 OLE DB 所设置的连接字符串:标准连接方式Provider=sqloledb;Data Source=datasource;Initial Catalog=DbName;User Id=username;Password=pwd;信任连接方式:Provider=sqloledb;Data Source=datasource;Initial Catal

    招财猫_Martin 的专栏 4835

    连接mysql数据库字符串_MySQL数据库中怎么将字符串连接操作

    MySQL数据库中怎么将字符串连接操作发布时间:2020-11-30 09:54:14来源:亿速云阅读:68作者:小新小编给大家分享一下MySQL数据库中怎么将字符串连接操作,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!不管你是做数据分析,还是网络爬虫、Web 开发、亦或是机器学习,你都离不开要和数据库打交道。数据库基本...

    weixin_30769779的博客 1528

    Azure SQL Database连接字符串

    【代码】Azure SQL Database连接字符串。

    sq8706的专栏 445

    数据库连接字符串整理

    MSDN中文版中,阿很多不该翻译的翻译了,或者翻译的有问题。我在参阅英文版MSDN和中文版MSDN基础上,跟据自己的经验,把数据库连接字符串整理了一下,具体如下:英文版可以看以下地址:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSq

    gauss32的专栏 1989

    jet mysql连接字符串,关于jet db的连接字串,以及加密后的字串-数据库专栏,SQL Server...

    关于jetdb的连接字串,以及加密后的字串问题:关于jetdb的连接字串,以及加密后的字串ado连接mdb文件的字串如何写?加密以后如何写?回答:access数据库加密分3种以下以accessxp为例1、工具->安全->加密/解密数据库,打开时无需任何更改2、工具->安全->设置数据库密码,打开密码为1打开时需要使用“provider=microsof...

    weixin_39639518的博客 181

    JDBC数据库URL连接字符串大全

    DB连接信息: 数据库 JDBC Driver JDBC Url Hibernate Dialect MySQL com.mysql.jdbc.Driver jdbc:mysql://localhost/high_performance_java_persistence org.hibernate.dialect.MySQL57Dialect Oracle oracle.jdb...

    天下任我行 2488

    .net的数据库连接字符串

    在MSDN中,.net的数据库连接字符串都有详细的说明,我这里以代码范例的方式罗列一些,具体的每一项代表的意义可以参看MSDN.ADO.net 中数据库连接方式(微软提供)微软提供了以下四种数据库连接方式:System.Data.OleDb.OleDbConnectionSystem.Data.SqlClient.SqlConnectionSystem.Data.Odbc.OdbcConn

    2305

    c mysql 数据库连接字符串_(转载)数据库连接字符串大全(解释版)

    数据库连接字符串的拼写规则的决定条件:连接的数据库的类型:SQL Server,Oracle,MySQL,Acess,MogoDB,Visual FoxPro(dBASE),Excel数据库驱动器:ODBC,OLE DB连接的模式:标准连接(Standard Security),信任连接(Trusted connection)网络协议:TCP/IP,Named Pipes名称 网络协议库dbnmp...

    weixin_36325615的博客 731

    ASP.NET数据库连接字符串总结

    ASP.NET数据库连接字符串总结 一、使用OleDbConnection对象连接OLE DB数据源 1.连接Access 数据库          Access 2000: “provider=Microsoft.Jet.Oledb.3.5;Data Source=Access文件路径”          Access 2003: “provider=Microsoft.J

    一个情绪猿的脖克... 1万+

    使用OLE DB方式连接常用数据库的连接字符串的设置

    SQL Server 使用 OLE DB 所设置的连接字符串: 标准连接方式 Provider=sqloledb;Data Source=datasource;Initial Catalog=DbName;User Id=username;Password=pwd; 信任连接方式: Provider=sqloledb;Data Source=datasource;Initial Catal

    lxl_sports的专栏 2161
    上一篇: 在Blog页面上玩了些花活儿
    下一篇: 2004年Delphi Informant杂志读者选择奖
    binaryge
    博客等级 码龄23年 2粉丝 30原创
    评论
    成就一亿技术人!
    拼手气红包6.0元
    还能输入1000个字符
     
     条评论被折叠 查看
    添加红包

    请填写红包祝福语或标题

    个

    红包个数最小为10个

    元

    红包金额最低5元

    当前余额3.43元 前往充值 >
    需支付:10.00元
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付元
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值
    ⌂ 换网址