Respect for personal work. If the record is reprinted, indicate the source. Iihero @ csdn
Some of my friends asked me what is the difference between this non-installed version and the installed version (of course, it is a Windows platform)
When I used MySQL today, I accidentally killed the root user, and then I was unable to log on to the database. Baidu found the root user.Solution:
Stop MySQL #/etc/init. d/mysqld stop safe mode to enter MySQL #/usr/sbin // mysqld_safe --
We need to make an urgent request today,Algorithm4 million of the data is calculated (only Nick is included), and a customized database needs to be imported.
32 databases on MySQL (icluster_1 to icluster_32, calculate the remainder Based on
Encountered sqlexception: Access denied for @ 'localhost' (using password: No)
Solution: grant all privileges on *. * to Joe @ localhost identified by '1 ';
Flush privileges;
Log in with Joe 1
Appendix:
Mysql> grant permission 1,
If you install the SDK according to the default configuration, you only need to follow the steps below.
1. CP/usr/local/MySQL/support-files/MySQL. Server/etc/init. d/MySQL copy the service file to init. d and rename it to MySQL.
2,Chmod +
Prompt. /The mysql-bin.index cannot be found (because MySQL has enabled the bin log function), to the database root directory to view the file is there, may be a file permission problem, the permission for viewing the root directory of the database
Document directory
1. Download the MySQL 5.5 Deb installation package
2. Install the Deb package
3. Enabling MySQL
1. Download the MySQL 5.5 Deb installation package
CD/usr/local/src
Sudo wget-O mysql-5.5.22-debian6.0-i686.deb
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.
2. Try to avoid null value determination on the field in the WHERE clause. Otherwise, the engine will discard
I am using rhel5.1, which is a higher version of RedHat Enterprise Edition (higher I have seen 5.3 ). In rhel5.x and later versions, Red Hat has enhanced copyright control, mainly because the GUI manager of the software package is not used at will,
The following is an example of MySQL installation. It is installed using an executable file!
1. Open the mysqlinstallation file mysql-5.0.27-win32.zip, decompress the file, and run “setup.exe. The following interface is displayed:
Start the MySQL
I don't think you are familiar with it, so it is best to take a look at it and help me to correct the mistakes.
Implement MySQL ReplicationAfter MySQL 3.23.15, MySQL provides the database replication function to synchronize two databases in real
MySQL server support# End of the row,-- The row endsAnd/* The middle of a row or multiple rows */Comment box:
Mysql> select 1 + 1; # This comment ends until the end of the row mysql> select 1 + 1; -- This annotation ends until the end of the row.
When MySQL is started, add the -- log-Slow-queries parameter to record the SQL statements whose execution time exceeds long_query_time seconds:
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=
When running a JSP system, the following error is always reported:
HTTP status 500-
TypeException report
Message
Description The server encountered an internal error () that prevented it from fulfilling this request.
Exception
There are two possible reasons for the garbled MySQL database:
1. MySQL database encoding problem (set during database creation ).
2. url encoding settings for connecting to the MySQL database.
For the first problem, the current personal discovery
StartMysqld
LoginMysql-u username-P Password
StopMysqladmin-u username Shutdown
View Current Character Set settingsShow variables like 'character/_ set/_ % ';
Set Character SetSet character_set_results = GBK;Set the character set of client,
PHP + MySQL authentication method
Author: Wutong
Date: 2001/8/29
Recently, when I made an ICP filing for a school, I needed identity verification. After comparison, I decided to use PHP + MySQL for identity verification. We have previously
After installing MySQL, you will receive the following prompt:
[Root @ localhost desktop] # rpm-IVH MySQL-server-5.5.28-1.rhel5.i386.rpmPreparing... ######################################## ### [100%]1: mysql-server #################################
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