"MySQL Learning note" DDL, DML, DCL differences

DDL (data definition Language), which is used primarily to alter the structure of tables, data types, links between tables, and constraints, are used to build tables. The main orders are create,alter,drop.DML (data manipulation Language)

After you change the MySQL data path (datadir) under Windows, service startup 1067 resolves that the MySQL database storage location cannot be changed

After installing MySQL at night (System: Deepin WINXPSP2, MySQL version: 5.1.32), the default data storage path is configured with MySQL's own configuration tool: C:/Documents and Settings/all users/ Application Data/mysql/mysql Server 5.1/data/.

MySQL Two-level package installation for RedHat Linux Enterprise6.4

Download MySQL and upload to the server1. Download MySQL binary installation package on MySQL websiteHttps://edelivery.oracle.com/osdc/faces/SearchSoftware?_afrLoop=2326871189822158&_afrWindowMode=0&_ Adf.ctrl-state=hqkzyoa95_92. Upload to the

How to modify MySQL character encoding

How to modify MySQL character encodingDescription: MySQL character encoding modification there are several ways to modify the configuration file directly, or through the way of the command, here only to modify the configuration file method. I.

Monitor MySQL master-slave synchronization

Script Monitoring Database Master-Slave synchronizationSource: http://oldboy.blog.51cto.com/2561410/1632876Source:(production case): monitor MySQL master-slave synchronization is abnormal, if abnormal, send sms or mail to the administrator. Note: If

MySQL Basic operations-view

A view is a virtual table exported by one or more tables in a database, so that the user can only care about the data that is useful to them and the security of the database system without seeing the data in the whole database table. The database

Triggers in the MySQL database

ord

--Trigger is a special kind of monitor and delete operation, and produce corresponding operation--1, monitor who 2, monitor action 3, monitor time (before or after) 4, trigger event--simple syntax of triggerCreate TRIGGER Trigger name

MySQL Reset password

Stop MySQL service under Windows:1. Open the Windows command prompt:2. Go to the bin location of MySQL installationnet stop MySQLSimilarly, open: net start MySQL (where MySQL is the service name)If there is no system serviceThen mysqladmin shutdown

MySQL import CSV data [go]

Transferred from: http://blog.chinaunix.net/uid-23284114-id-3196638.htmlThe MYSQL LOAD Data infile command can import a CSV flat file into a database.Under Linux: LOAD DATA INFILE '/home/test/dump/ip_location.csv ' Into TABLE

MySQL Optimization (memcache)

MySQL tuning (mamcache) Architecture Web+memcache [192.168.5.14]Memcached [192.168.5.16]Mysql [192.168.5.15] Building lamp Architecture [5.14] Yum Install http* php* mysql*-yAdd a Web site/ETC/INIT.D/HTTPD startModify Web

MySQL Repeating index discussion (continuous update in ...)

Information reference: Http://xiezhenye.com/2015/01/%E6%89%BE%E5%88%B0-mysql-%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%AD%E7%9A%84%E4%B8 %8d%e8%89%af%e7%b4%a2%e5%bc%95.html Create a ' problematic ' table1. Create a table test1CREATE TABLE test1 (id int

MySQL This database cannot be China's approach

1. Change the My.ini file for the MySQL installation folder (C:\Program files\mysql\mysql Server 5.5)Settings: Default-character-set=utf8Character-set-server=utf8Then restart the MySQL service. MySQL does not have to restart the command, to stop

MYSQL query last 7 days in a week

During the week:SELECT * FROM Wap_content where week (created_at) = Week (now)Query Day:SELECT * FROM table where to_days (column_time) = To_days (now ()), select * FROM table where date (column_time) = Curdate ();Query 7 days:SELECT * FROM table

MySQL keepalived Practice

1. Extract the source code package (unzip to/usr/src/)tar zxvf keepalived-1.2.18.tar.gz-c/usr/src/2. Source code installation (under Unzip directory)(1)./configure(2) make(3) make install3. Generating RPM packages with source code packages(1)

Backup and restore of MySQL under Linux

backup and restore of MySQL under Linux2.1 Backup[[email protected] ~]# cd/var/lib/mysql (go to MySQL library directory, adjust the directory according to your MySQL installation situation)[[email protected] mysql]# mysqldump-u root-p

Ant+dbunit Guide XML to MySQL

1. Add your own data directory and XML file2.lib Dependency Commons-logging-1.1.1.jar Dbunit-2.4.8.jar Junit-4.9b2.jar Mysql-connector-java-3.1.12-bin.jar Slf4j-api-1.6.1.jar Slf4j-jcl-1.6.1.jar 3.ant file as

High-availability parallel MySQL data synchronization and distribution

First talk about MySQL data distribution, the most commonly used is replication (replication) technology. There are many middle architectures based on this technique, and the classification is summed up as follows:1, tree structure

MySQL Basic operation

MySQL Basic operationTo display the currently existing database:show databases;DatabaseInformation_schemaMysqlPerformance_schemaCreate a databaseCreate database user;Note: Under UNIX, the database name is case-sensitive (unlike the SQL keyword), so

keepalived + MySQL master/slave

MySQL High-Availability service deploymentMySQL master-slave setup is complete, (MySQL master-slave deployment please see MySQL master-slave replication now has a problem, if the master server down, how to quickly restore service? We have two sets

How to quickly copy a database from MySQL

Sometimes, for example, to build a test environment, or to clone a Web site, you need to copy an existing MySQL database. It can be implemented very simply by using the following methods. Suppose the database name already exists is called DB1, want

Total Pages: 3233 1 .... 1644 1645 1646 1647 1648 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.