Recently used cicada known CMS station than more, feel pretty handy, but in the installation of customers will appear installation error, the reason is very simpleLooking at their Install.sql file, the default value for some time fields is 0000-00-00
1. Tomcat Boot upMethod One, modify the system files (already tried, can)1. Modify/etc/rc.d/rc.localVi/etc/rc.d/rc.local2. Add the following two lines of script, remember the two lines, only the second line is not, you must add the first row. At the
When logging into the database using Mysql-uroot-p-h172.16.1.51, use the TCP protocol, which is viewed with the status command:mysql> status;--------------MySQL Ver 14.14 distrib 5.6.38, for Linux (x86_64) using Editline WrapperConnection
Isolation level of the transaction: READ UNCOMMITTED (UNCOMMITTED)At this level, the changes in the transaction, even if not committed, are visible to other transactions, and the transaction can read uncommitted data. Read COMMITTED (submit
1. Create a databaseCREATE DATABASE []db_name[ [DEFAULT]CHARACTERSET [=] [DEFAULT] [= ] collation_name];[] means you can omitExample:CREATE DATABASE IF not EXISTSDb1DEFAULT CHARACTER SETUTF8;CREATE DATABASE IF not EXISTSDb2DEFAULT CHARACTER
MySQL comes with the IP conversion statement
Inet_aton: Convert IP address to digital type
Inet_ntoa: Converting a digital type to an IP address
//Use the Inet_aton function to convert a string IP to an integer type; MySQL>
1, the query when the timestamp format display:SELECT from_unixtime (1234567890, '%y-%m-%d%h:%i:%s ') from table_name2. The most efficient method of deleting duplicate records (because of the use of rowID) Example:DELETE from emp E where E.rowid >
The test is as follows:Add a reference first: MySql.Data.dllLink: http://pan.baidu.com/s/1dEQgLpf Password: bnyu① creating a MySQL database link1 //build a MySQL database link2 Publicmysqlconnection getmysqlconn ()3 {4
Today, the development of a two-way program to insert data into a library normal, into another library inside the data is garbled. The first reaction is that two databases have different configurations for character sets.See the parameters in two
2mysqldump Multiple command parameters production standard backup combatMysqldump-uroot-p ' oldboy123 '-B d-name|gzip >/tmp/mysql.sql.gz-B Add a statement to build a database tableBack up multiple databases at the same time-A Back up all
Environment: WIN10 + Mysql-5.7.19-win32.msi
Installation path: C:\Program Files (x86) \mysql\mysql Server 5.7\bin
Configure the environment. Reference online.
After installing MySQL, use MySQL to flash back, open cmd, switch to the MySQL
For the convenience of installation now there are many green version of the MySQL installation package, downloaded after the decompression can be used, but MySQL download directly run or a little problem, you need to register MySQL as a system
Conn.commit () operation required after inserting, updating, deleting execution Conn.execute ()Cursor.fetchone (): will take only the top first result, return a single tuple such as (' id ', ' title '), and then use Cursor.fetchone () multiple times
Some basic operations on tables are described in previous MySQL contact articles today, let's delve into some of the operations on tables:General Data class complete constraintsCommon data typesThe storage engine determines the type of table, and
MySQL Data Security systemHttp://www.yunweipai.com/archives/23036.htmlNext I will introduce to you from four aspects, how the database through some configuration to achieve data security.
Stand-alone security
Cluster security
Backup
First, prefaceWe often see a warning when we log in to MySQL:Warning:using a password on the command line interface can is insecure.It's uncomfortable to look at, and it's even more uncomfortable when writing a script that warns the output to the
Queries whether all tables in the specified database contain specified fields and database fields.
Today, we encountered a problem: to update the values of a field in the database in batches, we need to first find the tables that contain this field,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service