In-depth analysis of mysql. sock missing problems bitsCN.com
I have read a lot of questions about mysql. sock on the internet before, but I didn't pay attention to the significance of this issue until I encountered the same problem in my mysql. It's
Summary of JDBC database use operations bitsCN.com
JDBC is a group of APIs that can execute SQL statements.
Traditional database operations require programmers to master the APIs of different databases, which is extremely inconvenient.
Therefore,
Use the Xtrabackup tool to back up and restore (a required tool for MySQLDBA) bitsCN.com
Xtrabackup------ Necessary tools for MySQL DBA
Note:
1) documents reference http://www.percona.com/docs/wiki/percona-xtrabackup:start
2) mysql version 5.1.50 or
Mysql User password modification graphic introduction bitsCN.com Directory
Mysqladmin command
UPDATE user statement
Set password statement
Root Password loss (to be verified)
Mysqladmin command
(Back to directory)
The format is as follows (USER is
The mysql function split function is used to implement bitsCN.com. set global log_bin_trust_function_creators = 1;
1. function func_splitStringTotal: splits the string according to the specified method and calculates the total number of units.
In-depth analysis of Mysql character set settings bitsCN.com
Basic concepts
• Character refers to the smallest semantic symbol in human language. For example, 'A' and 'B;
• Given a series of characters, each character is assigned a value, which
MySQL cannot be started and cannot be stopped (this may occur after security settings) bitsCN.com MySQL on Windows 2003 has been unable to connect to the database for many times during normal operation, it is also impossible to stop MySQL or restart
MySQL database server slows down analysis and solution sharing bitsCN.com
1. check the system status
Check the status of the system by using some operating system tools, such as CPU, memory, swap, and disk utilization. based on experience or
Use an SQL statement to extract the char in blob and convert it to a number and save it to another field bitsCN.com.
This requires a table structure, designed
But now we need to save the data in the 17, 18, and 19 fields in blob as numbers to
Mysql allows bitsCN. com1 code for a scheduled job in a stored procedure. create a database test1 in mysql.
Statement: create database test1
2. create a table examinfo
Create table examinfo (
Id int auto_increment not null,
Endtime
The php backend often prompts that the connection to mysql cannot be refreshed and then accessible. bitsCN.com provides two methods on the Internet:
First:Uninstall the KB967723 patch.Log on to the server and go to Control Panel-add and delete
The timeout processing method for PHP access to MySQL Query: bitsCN.com currently, you can set the timeout option for the extension library connection between the two clients, for example, mysqli:
// Create an object
$ Mysqli = mysqli_init ();
//
How to make MySQL Query case sensitive: bitsCN.com
1. you can set collation for a table or row to binary or case sensitive. In MySQL, the naming conventions for Column Collate are as follows:* _ Bin: binary case sensitive collation, that is, case
For queries under the mysql date and time function bitsCN.com, select all records whose date_col values are within the last 30 days.
Mysql> SELECT something FROM tbl_name
WHERE TO_DAYS (NOW ()-TO_DAYS (date_col) DAYOFWEEK (date)
Returns the week
Mysql date and time format conversion implementation statement bitsCN.com here is an example of using the date function. The following query selects all records. The value of date_col is within the last 30 days:
Mysql> SELECT something FROM
MySQL does not support InnoDB solution bitsCN. comG. the solution is as follows:
In the/var/lib/mysql Directory, delete ibdata1, ib_logfile1, and ib_logfile0, and restart MySql to recreate the above files:
Mysqladmin-uroot-p shutdown
Sudo
Two methods for MySQL client to directly connect to the database without entering the user name and password bitsCN.com
There are 2 methods1. you can modify the configuration parameters of my. ini (my. cnf in linux );[Quote] [client]Port =
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