How to use PHP to automate. sql files. In fact, it is very simple to get the contents of the SQL file and then execute each sentence of SQL statement at once.This is the codeRead file contents $_sql = file_get_contents (' Test.sql '); $_arr =
How to use PHP to automate. sql files. In fact, it is very simple to get the contents of the SQL file and then execute each sentence of SQL statement at once.This is the codeRead file contents $_sql = file_get_contents (' Test.sql '); $_arr =
Start/stop/restart MySQL:===========================On Linux start/stop/restart from the command line:/etc/init.d/mysqld start/etc/init.d/mysqld stop/etc/init.d/mysqld restartSome Linux flavours offer the service command tooService mysqld
1. Delete: Delete rows from the datasheet (you can delete a row or delete all rows without deleting the data table)Delete a row: Delete from data table name where column name = value;Delete all rows: Delete*from data table name2. Drop: Delete a
Nonsense not much to say, directly on the code, clean up after the log file is 1M[SQL]View Plaincopyprint?
Use [master]
GO
ALTER Database [db name] SET RECOVERY simple with no_wait
GO
ALTER Database [db name] SET RECOVERY Simple
GO
I do not use the database graphics operating software, with the terminal directly manipulate databases and tables.First, the database :
Login database system: mysql-h hostname-u user name-P, press "enter" to display "Enter Password", enter
Database Control is backed up after Oracle DB 11.2 releaseReference from:Database Control to being desupported in DB releases after 11.2 (Doc ID 1484775.1)Suitable for:Oracle server-enterprise EditionInformation in this document applies to any
Method One:Use database nameSelect Name,size from Sys.database_filesALTER database name SET RECOVERY simple with no_waitALTER database name SET RECOVERY simpleUse database nameDBCC shrinkfile (N ' log filename ', 0,truncateonly)ALTER database name
The square brackets represent an object name (view, stored procedure, table, etc.), column name;Normal use, add the same, but if the object name is reserved words, such as cascade, it must be added, but it is recommended not to keep the word as the
One: Problem description
Sometimes, initialize the data, the number of command bar too much, directly copy INSERT statements, paste into the command line to execute, very slow (time spent on the paste above), so the statements are placed in the
Trigger
A Brief introduction
A trigger is a procedure written by pl/sql or Java [procedure] that is triggered when a table or view is modified or a user action is made or the database system action is run [fire].
Trigger [Trigger] is triggered to
JvmThe correct use of the JVM parameter configuration parameters running in the Jee container is directly related to the performance and processing capability of the whole system, and the tuning of the JVM is mainly for the tuning of memory
This article describes all the common MySQL commands some data import Export command, as long as we hold these commands can be a quick way to backup our database restore the
MySQL data to import export 500MB data
Problem: 500M of the library table
Export the Mysqldump tool that you want to use with MySQL, basic usage:
Copy Code code as follows:
Shell> mysqldump [OPTIONS] database [tables]
If you do not give any tables, the entire database will be exported.
By executing
Apply to:
Microsoft SQL Server Edition Express
Microsoft Visual Studio 2005
Summary: SQL Server Express Edition is a free product based on SQL Server 2005 technology, including unique application XCopy capabilities and networks and security that
List all Users
Copy Code code as follows:
Mongo
Use admin
Db.system.users.find ()
Disabling authentication Mode
Copy Code code as follows:
/etc/mongod.conf
Noauth = True
Auth = False
Create a
1, to save the execution of SQL in a file, here is 20110224.sql.2. Create a new batch file with an extension. bat, enter the following command and save, double-click the. bat file, and the system will automatically execute the 20110224.SQL statement:
Gbk:create database test2 DEFAULT CHARACTER SET GBK COLLATE gbk_chinese_ci;Utf8:create DATABASE ' test2 ' DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ciReprint AddressHttp://www.linuxidc.com/Linux/2015-08/121676.htmIn the MySQL database, when
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.