Troubleshoot problems encountered when using MySQL

Problems encountered when using MySQL: 1 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql. sock '(2) MySQL not started problem 2 ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password:

Mysql time processing functions

Mysql time processing function DAYOFWEEK (date) returns the index of the week of the date (1 = Sunday, 2 = Monday ,... 7 = Saturday ). These index values correspond to the ODBC standard. Mysql> select DAYOFWEEK ('1970-02-03 ');-> 3 WEEKDAY (date)

MySql official manual Study Notes 3-MySql Stored Procedure Introduction

MySql official manual Study Notes 3-MySql Stored Procedure introduction link: MySql official manual Study Notes 1-MySql easy to use http://www.bkjia.com/database/201210/159522.html MySql official manual Study Notes 2-MySql fuzzy query and Regular

Mysql operations (5)

Mysql those things (5) operation time I. Time Command: SELECT CURDATE (); function: return today's date value in 'yyyy-MM-DD 'format. Command: select curtime (); function: return time in 'hh: MM: ss' format. Command: select now (); function: return

Add slave database for mysql database

Mysql database addition slave database mysql Master/Slave configuration has been applied in a lot of businesses. Although I know about the mechanism, I have never processed it. For more information, I have performed Master/Slave configuration on

Mysql queries data from one day, one week, and the other day

Mysql queries data for one day, one week, and the other day -- queries data for one day select * from tbl_order where date (tbor_create_time) = curdate (); select * from tbl_order where to_days (tbor_create_time) = to_days (now (); -- query a weekly

Use of the mysql function IF and GROUP_CONCAT

In mysql, IF and GROUP_CONCAT use the recently used functions in mysql, and record www.2cto.com 1 and IF (expr1, expr2, expr3) are similar to common three-object operations. Expr1 is an expression. If TRUE, expr2 is returned; otherwise, the

Differences between Mysql stored procedures and functions

Differences between Mysql stored procedures and functions stored procedures are a collection of user-defined SQL statements involving tasks of specific tables or other objects. You can call stored procedures, A function is usually a database-defined

Modify the root user password in mysql

When mysql modifies the ROOT user password and forgets the ROOT password, www.2cto.com 1. Edit the mysql configuration file: % mysql_installdir % \ my in windows. ini // generally, my is in the MYSQL installation directory. ini is the MYSQL

Analysis on mysql database formatting

About mysql database formatting analysis DATE_FORMA T (date, format) according to the format string format or date and Time Value date, return the result string. Www.2cto.com can use DATE_FORMAT () to format the DATE or DATETIME value to obtain the

Mysql is sorted by Chinese name

Mysql sorts the SQL code www.2cto.com/* Navicat MySQL Data Transfer Source Server: local Source Server Version: 50022 Source Host: localhost: 3306 Source Database: test Target Server Type: MYSQL Target Server Version: 50022 File Encoding: 65001 Date:

Mysql .csv format data file

Mysql .csv format data file for yourself to back up, experts please ignore. The data on www.2cto.com is too big. You can use the database client software to directly import the plug-in, or directly execute SQL. 1. Specify the file path. 2. fields

Mysql deletes some data from a large table.

Mysql has not written a blog for a long time to delete some data from a large table. The latest project is coming online. I have to stay with my mom after work. There is really no time to update. Someone raised a question today. A table on

Mysql locally exports data from a remote database

Mysql local data import from remote database written in front: recently started to use Ubuntu system, there is really no good mysql interface program, so... can only operate on the terminal. Www.2cto.com operation process: open [terminal], enter the

Scheduling Priority and change of mysql statements

The scheduling priority of mysql statements and the default scheduling policy for changing MySQL can be summarized as follows: · write operations take precedence over read operations. · Write operations on a data table can only occur once at a time

Mysql random acquisition records

Mysql random acquisition record MYSQL random extraction implementation method. For example, to randomly extract a record FROM the tablename table, the general syntax is: SELECT * FROM tablename order by rand () LIMIT 1. However, later, I checked the

MySQL system optimization and problem search

MySQL system optimization and problem search performance optimization related STATUS parameters show status like 'value '; connections uptime start time show_queries slow Query Count com_select query operation count com_insert insert operation count

Mysql database backup and restoration command memo

Command mysqldump-hhostname-uusername-ppassword databasename> backupfile to back up MySQL database. the SQL backup MySQL database is in the format of a table with deletion. the MySQL database is in the format of a table with deletion. This allows

Solve the Problem of MySQL reinstallation

 I recently encountered a problem of MySQL reinstallation at work. Today I will record my solution process. First of all, for some reason, I Have To uninstall mysql and then reinstall mysql. No matter how I use the control panel to uninstall and

Mysql uses median to temporarily store values

Mysql uses the median to temporarily store the value. When querying data, mysql sometimes uses the following statement to find a value. At this time, you may consider how to store this value, there are two methods to achieve the goal: 1. Use custom

Total Pages: 3233 1 .... 2948 2949 2950 2951 2952 .... 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.