Information A
1, stop the database server, the database MDF files and LDF files copy backup a copy
2, start the database server, delete the suspect database
3, only with the backup of the database MDF file attached to the database
The following error occurred today when attaching a SQL Server 2000 database to SQL Server 2005: The attached database failed for server (MICROSOFT.SQLSERVER.SMO), database test cannot be upgraded because it is read-only, Or have read-only files. Make the database or file writable, and then rerun the recovery operation
Tags: data copy BSP share picture IMA mysq PNG program database Migration data tableDuring the development process, the Python flask framework uses sqlalmysql to connect to the MySQL database.Do not modify the structure of the data table during program connection data volume. For example, in the connection state using the following software to modify the structure of the data table, the software will immediately die, this use stop flask connection, yo
Label:poiinit_idenablemax offsetsnappysumjpg Data type MongoDB 3.x data capacity gb failure type Server power loss causes WIREDTIGER.WT file corruption Start error detected data files in E:\DTLFolder\MongoDB\dat A created by the ' Wiredtiger ' storage engine, so setting the active storage engine to ' Wiredtiger '. 2018-05-08t16:10:09.755 +0800 I STORAGE [initandlisten] Wiredtiger_open config:create,cache_size=18g,session_max=20000,eviction= ( threads_max=4), config_base=false,statistics= (FAST),
Program written on this machine, the database in the company on another computer (sqlserver2008), the machine does not install any database software, the program can connect to the database
Database model (ID-PID): A father has many children, and a child has only one father, such a structure is a tree. In a database table, the ID and PID (parent_id) are designed. A tree is stored by ID and PID.
From the object-oriented design point of view, in the tree node class is not suitable for PID, a node has 1 or 0 fathers, and 0 or children. So the design is as follows: This is an organizational struct
--Create a linked serverexec sp_addlinkedserver ' srv_lnk ', ', ' SQLOLEDB ', ' Remote server name or IP address 'exec sp_addlinkedsrvlogin ' Srv_lnk ', ' false ', NULL, ' username ', ' password 'Go
--query ExampleSELECT * from Srv_lnk. Database name. dbo. Table name
--Import sampleSELECT * into table from Srv_lnk. Database name. dbo. Table name
--Delete a linked server when you no longer use itexec sp_d
The difference between spring transaction and database database transaction
When you do not use a transaction, the method that invokes the hibernatetemplate immediately commits the transaction.
And after using the transaction, after you have configured the method of the class to commit the transaction, if a method of multiple inserts, modifications or deletions at the same time
, will be unified to commi
Oracle's commit is to submit the data, before you commit the previous operation, the update is memory, not updated to the physical file.
So you shut down the database without a commit, and the data in the database is not updated. Commit is submitted against: DMLDML (data manipulation Language) requires submission, which is part of data management operations, such as insert (insert), Update (modify), delete
Obtain data from one database and store it in another database ., Another database
1 insert into 'game _ 2015newterm_user '('uid', 'q1', 'xm', 'ct ', 'by', 'lj', 'xmlq ', 'ctlbq', 'bylbq', 'ljlbq', 'tdate') select uid, '0', '3', '0', '0', '0 ', '0', '0', '0', '0', '2017-03-16 'from game_2015school_user
Obtain the user ID from the game_2015school_userzhong table
copy one from the installed ASA11/12, in the Java subdirectory, or from the ase15\jconnect-6_0\classes subdirectory below. If you don't have these installed versions at hand, you can copy one from the attachment jconn3 http://dl.iteye.com/topics/download/86b782dc-b1e2-314d-8135-f733ef6db518 here.
4. Start adding JDBC Driver Manager, database->driver manager->create new driver
The ASA driver configuration is shown in the following illustration:
The
1, Source library switch Logfile,checkpoint,shutdown;
2, the Source Library startup Restrict;shutdown Immediate;startup Mount;
3, Rman target/backup as copy database;
4, new library restore SPFile, controlfile, catalog backup, startup Mount; switch database to copy; ALTER DATABASE open;
5, the new library rebuilds the control file.
Because the source library
An error occurred while attaching the database to SQL Server. The error message is as follows:
Error 0: Unable to load DLL Microsoft prompts you to operate SQL database at will to avoid unnecessary trouble or the DLL. Open the query analyzer and execute the following statement:
Drop procedure sp_oacreateDrop procedure xp_dirtreeDrop procedure xp_regwriteExec sp_addextendedproc n 'sp_oacreate ', n' odsole7
Problem Description: SQL Server Authentication Mode login, CREATE DATABASE error: "Master" rejected the Create DB permission issue.
Solution: First, re-login with Windows mode, click "Security-> Login", and then there will be a drop-down list of login names,
Then, double click on the sign-in name that you last failed, and the following interface appears:
Select "Server Role", then appear the following interface, all tick on the top (PS: Nov
where id>= (select IDs from news limit 490000,1) limit 10; 0.18 sec//Obviously, this is the way to win.
Mysql> SELECT * FROM news limit 490000,10//0.22 sec;
*/
The following article mainly describes the MySQL paging the actual operation of the scheme, in fact, the simplest way to achieve MySQL paging is to use the MySQL database LIMIT function, LIMIT [offset,] Rows can retrieve n records from the first m record in the MySQL
Attachment database, the old problem, and later found a solution on the internet, recorded.
The following is reproduced from the network:
After consulting the data, found that is not a file read-only problem, strictly speaking should be a "permission" problem, the current SQL Server login account does not have to attach files to write permission, there will be the above "read-only" hint, the solution has the following several ways:
1. Copy th
1. Choose a good installation version based on RDS
2 Uninstall the original database
Rpm-qa | grep MySQL
Run the command on the next line based on the results of the above query
Rpm-ev--nodeps XXXXX
Yum Remove Mysql-server mysql-devel rm–rf/usr/my.cnf
Rm-rf/root/.mysql_sercret
Rm-rf/etc/my.cnf
Rm-rf/var/lib/mysql 3 Download installation package
wget http://dev.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.21-1.rhel5.x86_64.rpm
wget http://dev.mysql.c
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.