Common MySQL Functions

The mysql_connect () function locally creates a connection to the MySQL server/*/$link = mysql_connect (' localhost ', ' root ', ') or Die (' cannot connect to the database server!) The database may not be started. or the user name password is wrong!

CentOS 6.5 Under compile install MySQL 5.6.14

Install MySQL1. Uninstall the old versionUse the following command to check if MySQL Server is installed we found the result:[[email protected] ~]# rpm -qa | grep mysqlmysql-libs-5.1.73-7.el6.x86_64Some words are unloaded by the following commandrpm

Remove Binlog from MySQL

Recently, using the latest version of MySQL, 8.0.11 found that the default value of MySQL's log_bin parameter changed to ON. At first, the change was not noticed, resulting in the use of a lot of bin logs, which consumed a lot of disk space.So you

When MySQL inserts data, it removes duplicate data;

1. Use the insert ignore into statement to re-Mysql> INSERTIGNORE intoperson_tbl (last_name, first_name) - VALUES('J','T'); Query OK,1Row affected (0.00sec) MySQL> INSERTIGNORE intoperson_tbl (last_name, first_name) - VALUES('J','T'); Query OK,0Rows

MySQL Case 05:cpu load optimization

Recently there is a system database weekend always alarm, CPU utilization of more than 90%, started by the development side to follow up processing, I also did not participate, later found no progress on the login to see the next, and then a partial

MySQL Log configuration

MySQL will use the log when troubleshooting, optimizationError log, query log, slow query log, binary logFind log files First, Linux generally in/ETC/MY.CNFOpen to seelog-error=/webserver/logs/mysql/error.log#log=/webserver/logs/mysql/mysql.loglog-

MySQL function query sub-organization

DROP FUNCTION IF EXISTS querychildorglist;CREATE FUNCTION querychildorglist (id VARCHAR (20))RETURNS VARCHAR (2000)BEGINDECLARE stemp VARCHAR (+) DEFAULT ';DECLARE displayids VARCHAR (+) DEFAULT ';DECLARE currparentids VARCHAR (+) DEFAULT ';SET

Mysql Setting up remote connections

First, the problem analysisSometimes using the database Remote Connection tool when connecting to MySQL is always not connected, confirmed that the account password is correct, port Telnet port is also a pass.Navicat Premium error is as follows:1130-

Install MySQL under Linux (2) and solve common problems

The previous article on the basic installation, this is counted as the advanced barLink Linux install MySQL (1)1. Prepare the MySQL RPM installation package2. Unzip and enter Usr/local/mysql3. Execute useradd MySQL First (create a MySQL user who

Use MySQL purge to manually clear the binary log

For a MySQL database with a large number of accesses, the increment of the binary log is usually very fast, which is likely to surprise you. Like a racetrack, most of your disks will be filled with logs.Problems always need to be solved, and there

MySQL Authorized root

1. Change the table method.It may be that your account is not allowed to log on remotely, only on localhost. This time, as long as the computer on the localhost, log in to MySQL, change the "MySQL" Database in the "User" table "host", from

MySQL Daily optimization details

# SQL statement Optimization>1) Limit the amount of data that is queried once2) Link query instead of subquery3) Try not to use SELECT * To list the fields you need to find4) If the amount of data is particularly large, try to split a complex SQL

High availability analysis of MySQL database

MySQL database is currently the largest open source application of relational database, there are a huge number of applications to store data in the MySQL database. The security and reliability of storing data is the focus of the production database.

Import and export MySQL data using commands

1. Export all databasesUse Mysqldump's-all-databases parameter to export all the databases under your database root to a SQL file in one breath. Then, after reloading the system, use the source command to rewind back in a breath.You need to

MySQL Insert data will change to Chinese

db.url=jdbc:mysql://192.168.0.149:3306/pack_platform_dev?useunicode=true&characterencoding=utf-8& Zerodatetimebehavior=converttonull&transformedbitisboolean=true&usessl=falseURL input in db Config file? The following stringMySQL Insert data will

MySQL (1)---Index

Tag: Equals condition database design shows Ash SQ nbsp execution InfoIndexBasic concepts of indexingYou can understand the index as a special kind of directory, its existence is convenient for us to quickly query data.I. Classification of the index

Install MySQL in CentOS and change Passoword

Install mysqlinstalling MySQL wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm Md5sum mysql57-community-release-el7-9.noarch.rpm RPM-IVH mysql57-community-release-el7-9.noarch.rpm Yum Install

MySQL table partitioning advantages and classification analysis MySQL DBA learning

table Partitioning is the partitioning of a table's data according to a certain level of rulesintodifferent logical blocks, and physically stored separately, this rule is called partition function,can have different partition rules. through

MySQL must know---data filtering

Combine a WHERE clause1.1 AND operator1.2 Or operator1.3 Calculation Order In operator Not operator 1.1 AND operatorMariaDB [test]> Select Id,age,province-From user-Where age +----+------+----------+| ID | Age | Province |+----+----

MySQL Essay series-1

MySQL database managementMySQL database version of my experiment: 5.5.56-MARIADB MariaDB Server operating system: centos7.51. Create a databaseMariaDB [(None)]> CREATE database test1;2. View all databasesMariaDB [(None)]> show Databases;    +--------

Total Pages: 3233 1 .... 2111 2112 2113 2114 2115 .... 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.