/********************* By garcon1986 *************** * **********************/ error Code is as follows: #1045-Access denied for user 'root' @ 'localhost' (using password: Yes) $ CD/etc/MySQL $ mysql-u root-P Error #1045 try after many
If MySQL is running, killall-term mysqld is first killed.
Start MYSQL: Bin/safe_mysqld -- skip-grant-tables &
You can access MySQL without a password.
Then
> Use MySQL> Update user SET Password = PASSWORD ("new_pass") where user = "root ";>
ArticleDirectory
Method 1
Method 2
Use shell scripts for log analysis. to store the analysis results directly to the MySQL database, execute MySQL statements in the shell script. Method 1
Save the statements to be executed in
1. Show status
Threads_connected current number of connectionsThe number of connections that connections tries to connect to (whether or not) the MySQL server.The maximum number of connections that have been used at the same time after the
Document directory
In versions earlier than Ubuntu 12.04, It is very convenient to configure the MySQL database. You only need to run three commands:
In versions earlier than Ubuntu 12.04, It is very convenient to configure the MySQL database.
Reprinted address: Click to open the link
I am using Sina Sae as a jquery microblog, but the connection to MySQL has always been faulty.
Because the saemysql Class Based on MySQL module provided by Sina Sae is not used
MySQL connection information
We port the MySQL database from one server to another. The operating system is Red Hat Linux.
1. view system status
> Show status
2. view the current process
> Show processlist
There is no other problem, but all the tables are read-only. At
I heard that Linux is case sensitive for a long time. I didn't expect it to be case sensitive in databases this time.
Generally, the development is on Windows platforms and case-insensitive. But in Linux, you need to pay attention to it.
MySQL
MySQL proxy Learning (2) -- status transfer
In the previous section, we have known the listen FD callback function network_mysqld_con_accept. This function is responsible for connecting the accept client to network_socket_accept, and then enters
Flush flush_option [, flush_option]. To execute flush, you must have the reload permission.
The content of flush_option is as follows:
Hosts clears the host cache table. If the host changes the IP address, or the host... isblocked error is reported.
Self-opening place
MySQL has a function to log down and run slow SQL statements. This log is not available by default. To enable this function, modify my. CNF or start MySQL.When adding some parameters.
If you modify it in my. CNF, add the
Forgetting the mysqlroot password is a common problem in mysq usage. However, many friends do not reset the root password. At this time, errors such as login 5-acess denied for user: 'root' @ 'localhost' (usingpassword: Yes) will often occur. The
Original article: http://dev.mysql.com/doc/refman/5.5/en/innodb-default-se.htmlBest Practices for InnoDB TablesIf you have been using InnoDB for a long time, you already know about features like transactions and foreign keys. If not, read about them
The MyISAM engine is a non-transactional engine that provides high-speed storage and retrieval, as well as full-text search capabilities. It is suitable for applications with frequent queries such as data warehouses. In MyISAM, a table is actually
Character Set error SolutionProblems:Mysql> update users-> Set username = 'guan Yu'-> Where userid = 2;ERROR 1366 (HY000): Incorrect string value: '/xB9/xD8/xD3/xF0' for column 'usernAme' at row 1An error occurred while inserting Chinese characters
First, open cmd and find your mysql installation location, so that you can enter the mysql Command Program folder.
Then export the database
Mysqldump is a built-in mysql tool.-uroot (database connection username)-P3306 (p is capital, followed by
The following describes how to install and configure nginx + MySQL + PHP-FPM:
1. Change source, update:
# rpm -Uvh http://centos.alt.ru/repository/centos/6/i386/centalt-release-6-1.noarch.rpm# yum update
2. Install nginx + MySQL + PHP-FPM:
# yum
Method 1:
Log on to the MySQL Server using the MySQL Adminstrator GUI Tool, but the Server returns the error message Host '60-248-32-13.hinet-ip.hinet.net 'is not allowed to connect to this
MySQL server
This is because of permission issues. The
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