Optimization notes for Mysql Databases in Linux

(Linux parameters) Open the/etc/my. cnf file and modify the following settings. If not, add it manually. When adjusting the settings, please do your best, which depends on the configuration of your server, especially the memory size. The following

Develop MySQL database applications in C/C ++ in Linux

I. Mount the optical drive in Linux: Mount-t iso9660/dev/cdrom/mnt/cdrom Unmount the optical drive umount/dev/cdrom The drive eject is displayed. Push drive eject-t 2. Install MySQL

Select * for update lock table in MySQL

I have previously introduced the usage of SELECT... FOR UPDATE, but the locking data is a distinction. Because InnoDB defaults to Row-Level Lock, MySQL will only execute Row lock (only Lock the selected data example) If a specified Primary Key is

Oracle 10g programming Art

"Think" (Think ). When Mr. Thomas J. Watson joined IBM in 1914 and became an IBM company, he came up with such a simple motto. Later, this became the term of instruction for every IBM employee, no matter what role they took, as long as they needed

Methods for changing the MySQL user name and password

Method 1:Under/usr/local/mysql/bin:./Mysqladmin-u root password 'new _ password'This method is usually used for installation. Method 2:In mysql:Mysql> UPDATE user SET password = PASSWORD ('new _ password') WHERE user = 'root ';Mysql> flush

Troubleshooting of two MySQL problems in RedHat Linux AS4

Problem 1: An error occurred while logging on to mysql.ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql. sock' (2)Solution:1) The default mysql. sock file is in the/tmp directory.2) Establish a soft connection,

Notes for MySQL Master/Slave

Notes for MySQL Master/Slave 1. Try not to use stored procedures and triggers. Stored procedures can behave strangely with statement based replication 2. Try not to use temporary tables. For example, a memory table. Some programs prefer to

Oracle concatenates values of different columns into a string

Oracle concatenates values of different columns into a string -- Concatenates values of different columns into a string using the concatenation operator "|" or CONCAT ('',''). -- Method 1: RecommendedSelect s. TEAM | '**' | S. NAME | '**' | S. JOB_

Linux MySQL password Modification

1) if you have not forgotten the password, you can use UPDATE to directly edit the user table to change the password: Enter mysql-u rootMysql> use mysql;Mysql> UPDATE user SET Password = PASSWORD ('newpass') WHERE user = 'root ';Mysql> flush

Extent management in Oracle Database

Extent indicates the range. In Oracle databases, extent management provides extent management local (local management) and extent management dictionary (data dictionary management) The default value is local. There are two ways to increase the size

Oracle 10g 10.2.0.1 32-bit migration upgrade to 10g 10.2.0.5 64-bit

Note:It is officially recommended to migrate to the same version, for example, 10.2.0.1 (32) to 10.2.0.1 (64 ).Upgrade to 10.2.0.5 (64 ). I. Environment IntroductionSource databaseOperating system version: OEL5.8 32bitDatabase Version: 10.2.0.1

Explore Oracle 11g elastic uard

1. What is Alibaba uard? DataGuard is a high-availability technology specifically designed for Oracle databases launched by oracle. It was called Standby Dtabase before 8i and officially changed its name from 9i to DataGuard. Generally, there are at

Oracle 11g parallel DML

Oracle 11g parallel DML (PDML) Parallel DML applications have significant scalability and performance when accessing large objects in the demo-support system DSS environment. PDML cannot be used as a feature to speed up OLTP applications. PDML is

Troubleshooting of ORA-01152 errors after recovery from different machines

1. symptom: An error is reported when the database is opened in the last step after the recovery of the data files from different hosts is successful. For example: SQL> alter database open resetlogs; Error: ORA-01152: file 1 was not restored from a

Basic Oracle Tutorial: Setting the SGA command in the global zone of the system

Today, we will briefly introduce how to set up SGA. 1. sga_target ParameterAlter system set sga_target = 40000 m scope = both;Features:1). ASMM automatic shared memory managementA: ASMM (automatic shared memory management) is a new feature of Oracle.

Simple query of multiple Oracle tables

1. Oracle multi-Table query Multi-Table query refers to queries based on two or more tables or views. Question: Display employee name, employee salary, and department name [Cartesian set ]? Select t. ename, t. sal, t1.dnamefrom emp t, dept t1where t.

Oracle expdp filtering and Parallelism

Preface: We know there are three ways to call the Data Pump. Here, I will never use the command line but the first script method. The reasons for dropping the command line are as follows: ① Operating system restrictions on the number of CLI

Mysqldump missing-q Parameter causes MySQL to be killed by oom

One day early morning, I received a db Fault Warning and went to the machine for check. mysql was restarted by the myqld daemon. Check/var/log/messages and the recent dmesg and find that the mysql process is killed by oom. The following is an

Compare the analysis results of PL/SQL profiler

Using PL/SQL profiler to analyze PL/SQL code is the most effective way to quickly locate PL/SQL code segments. In the previous article, using PL/SQL profiler to locate the PL/SQL bottleneck Code describes how to install PROFILER and provides

Solve the problem that autotrace does not display Predicate Information

With autotrace, you can see the Predicate Information in some databases. Sometimes you cannot see it because the plan_table version is old. The solution is as follows: SQL> set autotrace traceonly SQL> select u. name2 from user u3 where u.

Total Pages: 1013 1 .... 997 998 999 1000 1001 .... 1013 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.