When we enter regardless of the case can be queried data, such as: Enter AAA or AAA, AAA can query the same results, stating that the query condition is not sensitive to case.
Solution One:
So the question of MySQL is suspected. Do an experiment:
First, software preparation:
Apache_2.2.14-win32-x86-no_ssl.msi
Php-5.2.11-win32.zip
Mysql-5.0.45-win32.exe
Phpmyadmin-3.2.3-all-languages.zip
Second, install and set up environment variables:Install apache_2.2.14 to C:\apache
Extract PHP5.2.11
First, environmental installation1. Install Apache2sudo apt-get install apache2Open in Browser after installation: http://localhost/or http://127.0.0.1If the IT works! proves the Apache installation is successful.2. Install PHPsudo apt-get install
1, view the MySQL version
Method one: status;Method Two: Select version ();
2, MySQL start, stop, restart common commands
A, starting mode1. Start with service:[root@localhost/]# Service mysqld Start (version 5.0 is mysqld)[root@szxdb etc]#
0. Create a personal Folder
# use Yum to install Tomcat and MySQL
# Create folders
cd/usr/local
1. Install Rzsz
# 1. Install Rzsz
Yum list lrzsz*
2. Installation Jdk,path and so on has been automatically set up
The content of this section:Monitor MySQL master copy of shell script.
DescriptionMonitoring scripts are tested properly under RHEL5, and other versions of Linux systems are tested on their own, and some of the preparation needed to view this
Recently, I took time to change into syntaxhighlighter. Because the start tag for the Coolcode plugin is
or [Coolcode] like this, and Syntaxhighlighter is
[Code lang= "PHP"]
such as (or other). So we can only find ways to transform the old format
Collect the Compare full MySQL date and MySQL time function
Date_format (Date,format)
Formats the date value based on the format string. The following modifiers can be used in the format string:%m month name (January ...). December)
%w Week name
First, Binlog Introduction
The server's binary log records all of the database's operations log (provided that Binlog is opened on its own server) and the execution time of these operations. In order to display these binary content, we can use the
In the afternoon finally realized the JSP connection MySQL to perform the insert Operation function. Enter data on the INDEX.JSP page and submit to the mysql--insert.jsp page for the Insert database operation.
The index.jsp page code is as follows:
First look at the architecture, as shown in the following figure:
Deployment
1. Modify the Hosts
Perform the same operation on all servers.
Vim/etc/hosts
192.168.137.10 Master
192.168.137.20 backup
192.168.137.30 slave
192.168.137.40
As shown in the following table:
Use the Str_to_date function first, convert its varchar type to date type, and then sort from small to large
Syntax: Select Str_to_date (class_time, '%y%m%d%h:%i:%s ') A from an order by a desc;
Next, let's
1, account security-related characteristics
1.1: Create User
The 5.7 version of the user table Mysql.user requires the plugin field to be non-null and the default value is the Mysql_native_password authentication plug-in and no longer supports the
Recently a period of time in the mantis found that always connect MySQL error, it is readily modified root permissions, resulting in no login.
Let's share the easiest way to restore root permissions and change the root password.
1: Install MySQL
Copy Code code as follows:
INSERT table (auto_id, Auto_name) VALUES (1, ' yourname ') on DUPLICATE KEY UPDATE auto_name= ' yourname '
using on DUPLICATE KEY updateIf you specify on DUPLICATE key update and the insert row causes
Three ways to solve this problem:
1, Change Table method. Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "
Using mysqldump for backup and restoreUsing Mysqldump for backup
Mysqladmin stop-slave-uroot-p
mysqldump--all-databases > Fulldb.dump
mysqladmin
tar-czf/tmp/dbdump.tar.gz./fulldb.dump./mysql-relay-log.info
In addition to backing up
This paper mainly introduces the use of embedded MySQL in Java, for some applications, to provide installation version of the mysql,oracle is necessary work. But sometimes, if it is a small tool, it can be installed or portable software is
BLOB (Binary large object), binary large objects, is a container in which binary files can be stored. In the computer, a blob is often the type of field used in a database to store a binary file, a blob is a large file, a typical blob is a picture
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