As the WWW transmission protocol, HTTP is very simple: the client establishes a connection with the remote server, then sends a request, the server processes the request, returns response, and closes the connection.
However, this simple process
Let IE write the server program as the client:
[Java]Package net. csdn. web;Import java. io. IOException;Import java. io. PrintWriter;Import java.net. ServerSocket;Import java.net. Socket;Public class ServerDemo {/*** @ Param args* @ Throws IOException*/Public static void main (String [] args) throws IOException {// TODO Auto-generated method stubServerSocket ss = new ServerSocket (9009 );Socket s = ss. accept ();System. out. println (s. getInetAddress (). getHostAddress () + "......
the name of the JDBC driver to be loaded to it. During runtime, the Class Loader locates and loads the JDBC driver class from the classpath environment variable. After the driver class is loaded, an instance of the driver class will be registered.
Establish a connection to the database
We do not need to directly access the driver class implementing the driver interface in the program, but the driver Manager manages these drivers. The driver interface provides a connect () method to establish a
.
Create an integration services project and name it ssistutorial when creating the project. Rename the default package. dtsx to lesson1.dtsx.
Right-click conection managers at the bottom of the workspace, and choose new flat file connection from the context menu"
In the flat file Connection Manager Editor, name the Connection Manager name.Sample flat file source data. Single-click browerand select the samplecurrencydata.txt file i
.
First, go back to the company to find the installation of SQL Server 2000Program, Cannot be found, so search on the Internet, find it, download it, during installation, because there is a default instance for installing SQL Server 2005, change to the name instance for installing SQL Server 2000, after the installation is successful, enter sql2k \ Dev in system management. The program reports an error. The reason is that the SQL connection string we wrote is as follows:
Server = sql2k \ dev;
#-*-Coding: cp936-*-import socketprint "Creating socket connecting... ", s = socket. socket (socket. AF_INET, socket. SOCK_STREAM) # convert the network service name (such as http, ftp, email) and Protocol name (such as TCP, UDP, IPX/SPX) # To the port number corresponding to the service name. If the protocol name is specified, it must be TCP or UDP # Otherwise it will match other protocol port = socket. getservbyname ("http", "tcp") print "conection
back to the command line prompt, note that the two commands are paired , the port after the data is sent to receive the data is closed port, if you do not open the listening port for the second time, continue to send PS data will appear connection access denied. # (PS aux;ps AUXEWW;LOSF) | NC 192.168.150.109 10005–w 3(UNKNOWN) [192.168.150.109] 10005 (?): Conection refused in the above command, some commands produce long output results, and some prod
Check a lot of information, ASP and MySQL connection currently has two ways: one is the use of components, more famous is MYSQLX, but a pity to 99 dollars. Two is to use MYODBC to connect, let's look at the second way.
Platform for testing:
MySQL 4.0 for Radhat Linux (you can also use for Windows)
Windows 2003 Standard Edition Windows XP 中文版
I. Installation of MYODBC
1. Visit the website www.mysql.com and download MYODBC, we are using the 3.51 version.
2. Install MYODBC to Windows
Run download b
connection Word (conection String).
Add a "System DSN"
Select the System DSN column in the dialog box and press the Add button on the right. This will allow you to select a data source. Choose MySQL ODBC 3.51 Driver. Press "End".
A configuration dialog box pops up:
The data source name DataSource name: The identifier of the DSN used in the program, which can be arbitrarily named.
Host/server name (or IP) host/server name (or IP address), if this is t
not support MySQL database, had to use Access database, but used to php+mysql,php+access database programming has not really done.
Thank the party, thanks to CCTV, thanks to the search engine, this does not find a good article, special turned around and share.
There are 3 ways to connect to access in PHP.
(1) Create the system data source, with the ODBC function provided by PHP.
(2) You can also use PHP's ODBC functions, but do not create a data source.
Open Datebase
Package TSZ1;Import java.sql.*; public class Rushenzhou {Connection con;Statement STA;ResultSet rs;String driver;String URL;String user;String pwd;Public Rushenzhou (){Driver = "Com.microsoft.jdbc.sqlserver.SQLServerDriver";url = "Jdbc:microsoft:sqlserver://localhost:1433;databasename =xiongying";Test is the database nameuser = "SA";PWD = "Chenxue";Please change the appropriate user and password for youInit ();}public void Init (){try{Class.forName (driver);System.out.println ("Driver is OK");co
* LIMIT {0} OFFSET {1}";//Set Paging algorithmMysqlprovider.identityquery = "Select last_insert_id ()";/set to get the function that just inserted the record ID
3:ole Connection:There is no official support at the moment.
In vs2005, you can refer directly to the for. net2.0 version of the DLL. As for the commercial version, it's going to take some work, a license file (drag a conection component onto the form to automatically create the license)
atta
can be executed successfully
Redis-cli-h 127.0.0.1-p 6379-a 123456The login is successful, and you can use the command
6. Modify Login Password
Config set Requirepass my_password
OK
7. In the management Tools Redis Desktop Manager, connect the Redis service, click Connect to Redis Server, in the popup window name is the custom string, host fills in the localhost local server, Port is 6379 local Redis service ports, Auth is the password we just set up in the redis.conf, click Test
Tags: als mysql database test into print res Alibaba PAC LangI. Reference LibraryMaven Library: mysql:mysql-connector-java:6.0.6Second, the SDK environmentJAVA JDK10Third, the test code PackageCom.mysql.mysqlconnector;ImportJava.sql.*; Public classDbmain { Public Static voidMain (string[] args)throwsclassnotfoundexception {System.out.println ("Data Base connection test:"); Connection Connection; var driver= "Com.mysql.cj.jdbc.Driver"; var URL= "jdbc:mysql://127.0.0.1:3306/testdb?charact
the newly generated logical connection object is valid. When the associated pooledconnection.getconnection is called, any previously existing connection objects are automatically closed. The Listener (Connection pool manager) is not notified of the event.
A connection pool manager shuts down physical connections by calling the Pooledconnection.close method. This method is typically only called in a specific environment: when the application server encounters a normal shutdown when the con
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.