The connection object is used to establish a connection channel with the data source.
First, let's look at an instance:
Using system;Using system. Data;Using system. Data. sqlclient;// SQL Server Data SourceProgram
Namespace consoleapplication1
Imports systemimports system. dataimports system. data. sqlclientnamespace howto. samples. adonetpublic class updatingdatapublic shared sub main () dim myupdatingdata as updatingdatamyupdatingdata = new updatingdata () myupdatingdata. run () end
When running Oracle, It is very resource-consuming and affects the speed of the machine. Therefore, I usually stop its services when I don't need oracle, but what services do we need to start and what do we do? The following is a brief introduction.
1. Start and exit
1. Enter MYSQL:
Start MySQL command line client (MySQL dos Interface) and enter the password for installation. The prompt is: mysql>
Or open the terminal and enter the SQL statement:
Mysql-uroot-p123
2. Exit MYSQL:Quit or exit
Ii.
Steps:1. MySQL Command Line Mode settings:Desktop> my computer> Properties> environment variables> New> Path = "; Path/MySQL/bin;" path indicates the installation path of MySQL.2. How to access MySQL through the command line:1. c: \> mysql-H
MySQL Import and Export Database
Blog type:
Database
MySQL data structure The basic import/export commands for SQL linux windows databases are mysqldump and Source
In Linux, you can directly use the command line operation. In Windows, there
MySQL mysqldump is used for export. The basic usage is as follows:Shell> mysqldump [OPTIONS] database [tables]If you do not specify any tables, the entire database will be exported.Run mysqldump -- help to obtain the option table supported by your
Connection: mysql-h host address-u user name-p User Password (Note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (Press ENTER)
Create authorization: grant select on database. * to username @ login host
Document directory
Attachment
The usage of log4net can be summarized as follows:L add class library reference
Add the log4net class library to the program reference.L specify the configuration name. 2. Specify the file name.
[Assembly: log4net.
Cainiao database (6)-enabling and disabling Oracle services conveniently and quickly
Background:
As a programmer, in daily work, our computer often needs to run many programs at the same time, such as Eclipse, browsers, and instant messaging
Start Oracle11g service, oracle11g Service
When running oracle, It is very resource-consuming and affects the speed of the machine. Therefore, I usually stop its services when I don't need oracle, but what services do we need to start and what do we
Mysqldump backup and recovery database in CentOSBack up the database firstUseMysqldump-uroot-plvtao database>/home/bak. SQLRestore the backup database.Common source commands for Database ImportGo to the mysql Database Console,For example,
Linux: CentOS6.5 _ X64IP address: 192.168.1.12 objective: to install and configure a MongoDB Database: 1. Disable SElinux, configure firewall, and vi
Linux: CentOS6.5 _ X64IP address: 192.168.1.12 objective: to install and configure a MongoDB
Security
Set the password to be used before other settings are made after the client connects.
Warning because redis is quite fast, an external user can try a K password in one second on a better server, this means you need to specify a very
Mysql database backup and recovery command mysqldump, source usage, you can refer.
Mysql database backup and recovery command mysqldump, source usage, you can refer.
Restore A Database: mysql-h localhost-u root-p123456 www
Back up a database:
In daily work, mysql is used simply, so the Common commands are summarized as follows:
In daily work, mysql is used simply, so the Common commands are summarized as follows:
1. Start and exit
1. Go to MySQL: Start MySQL Command Line Client
Mysql import. SQL file-General Linux technology-Linux programming and kernel information. The following is a detailed description. Run the following command on the console:
Mysql-u username-p databasename use database_name
Run the following
MySQL import and export. the SQL file steps are as follows: 1. mySQL Command Line Mode settings: desktop-gt; my computer-gt; properties-gt; Environment Variable-gt; New-gt; PATHld
MySQL import and export. the SQL file steps are as follows: 1. mySQL
1. Export the entire database mysqldump-u user name-p database name gt; export the file name mysqldump-uwcnc-psmgp_apps_wcncg
1. Export the entire database mysqldump-u user name-p database name gt; export the file name mysqldump-u wcnc-p
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.