MySQL Foundation-Basic database operations

1. Delete the database name of the drop databases database;mysql> drop database test;That is, delete the database schema2 . Create DATABASE Database namemysql> CREATE DATABASE test;In Windows and Linux the processing of database names and table

MySQL queries the most repeated occurrences of the record

MySQL queries the most repeated occurrences of the recordHttp://database.51cto.com/art/201011/235139.htm2010-11-25 14:40 Anonymous Internetfont Size:T | T For MySQL database, query is always the most important function, the following will teach you

[MySQL] primary and subordinate data inconsistency problem solving process

Previous: master-slave replacement of IP after re-establish synchronizationSituation when such aLast night Active 2 machines are migrated, and then the active reconnect today, but the offset from the library is from today's current moment, that is,

Summary of the PHP link MySQL database

The statement that links the database:$conn = @ mysql_connect ("localhost", "root", "") or Die ("Database link error");mysql_select_db ("Laok", $conn);mysql_query ("Set names ' GBK '"); Use GBK Chinese code;Before the first sentence, add @ at

Linux,apache,php,mysql Common ways to view version information

1. View Linux kernel version, System Information, commonly used in three ways:uname-a; more/etc/issue; Cat/proc/version;650) this.width=650; "src=" http://img1.51cto.com/attachment/201107/174938626.jpg "alt=" 174938626.jpg "border=" 0 " Width= "650"/

Simple selection of MySQL data types

Select the appropriate data type:Char and varchar:+---------+------------+| char (6) | varchar (6) |+---------+------------+| | | | str | str | | str123 | str123 | | str123 | str123 |+---------+------------+4

Java link to MySQL

Original from http://qq163230530.blog.163.com/blog/static/4289250620081186262719/Eclipse Download after installationCreate a new Web project first configure the serverConfigure server-server-tomcat-tomcat7.0 Select Enable to select the path to the

MySQL Master-slave replication

I. Conditions of preparationTwo MySQL servers:MASTERSERVER:REDHAT6.3-64-bit system, ip:192.168.136.11SLAVESERVER:REDHAT6.3-64-bit system, ip:192.168.136.12Second, configure the Masterserver server1, log in to master server, edit the/etc/my.cnf file,

Java Access database MySQL

I. OverviewThis paper mainly introduces the basic methods and steps of Java database, and gives a brief description of several key points.Second, the database access stepsThere are several main steps to accessing a database in Java: Load

MySQL is injected after the LIMIT condition

from:https://rateip.com/blog/sql-injections-in-mysql-limit-clause/This method is suitable for use in MySQL 5.x, which is injected after the limit statementFor example: SELECT [All | DISTINCT | Distinctrow] [High_priority] [Straight_join]

How to connect MySQL in Nodejs

How to connect MySQL in Nodejs, here is a small demo.The first step is to install the MySQL moduleNPM install MySQLThe second step is to import the MySQL modulevar mysql = require (' mysql ');Third step to connect MySQL databasevar connection =

MySQL Database operations

1. Displays the list of databases.show databases;Just started with two databases: MySQL and test. MySQL Library is very important it has the MySQL system information, we change the password and the new user, is actually using this library to operate.

MySQL Aggregation functions and grouping

1. The contents of SC table are as follows:Mysql> SELECT * FROM SC ORDER by SID ASC;+----+-------+-----+-------+| ID | SID | CID | Score |+----+-------+-----+-------+| 1 | 10001 | 101 | 70 || 2 | 10001 | 102 | 80 || 4 | 10001 | 103 | 90 || 3 | 10008

MySQL Large data size averaging

Requirements are: For a device, the average of every hour of the day, the average of one months per day, the more general requirement is, from the start time to the end time, every time, to find an average.The current solution is to process in the

MySQL batch kills MySQL thread

mysql> SELECT concat (' KILL ', id, '; ') From information_schema.processlist WHERE user= ' root '; +------------------------+| Concat (' KILL ', id, '; ') |+------------------------+| KILL 21107; | +------------------------+1 row in Set (

MySQL optimization on Linux

Now most of the environment that MySQL runs is on Linux, how to optimize on the Linux operating system according to MySQL, we give some general simple strategy here. These methods help improve the performance of MySQL.Gossip less, get to the point.

Failure case: MySQL problem may be caused by insufficient disk space

Earlier in the work, because the customer's disk space alarm did not pay much attention to the lack of space caused by the following possible MySQL problem1 MySQL process does not come up2 MySQL does not shut down properly and must be kill-93 MySQL

MySQL Replication principle

1. Master receives write operation, writes Binlog2. Slave on Io_thread Connection master, request the change log3. Io_thread received log request after writing to Relay-log4. Slave on Sql_thread read Relay-log, execute the SQL inside, synchronize

Some understanding of MySQL lock

Innodb The storage engine supports row-level locks, and table-level locks are supported, but row-level locks are used by defaultInnodb The biggest difference with MyISAM is two points, one is to support transactions, the other is to use row-level

How to view the isolation level of MySQL

[Email protected] Oct 14:48:10 14:48:10 [(none)]>[email protected] @global. tx_isolation,@ @tx_isolation;+-----------------------+----------------+|@ @global. Tx_isolation | @ @tx_isolation |+-----------------------+----------------+| read-committed

Total Pages: 3233 1 .... 2883 2884 2885 2886 2887 .... 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.