1. MySQL Common commands Create Database Name; Create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays tables
Describe tablename; Detailed description of the table
Add
My personal practice is: phpMyAdmin exports ABC. SQL in UTF-8 insert mode
Ftp abc. SQL to server
SSH to server
Mysql-u ABC-P use KKK (database name, if not, create database kkk) set names 'utf8' source ABC. SQL
Note: I have seen the set Character
Locate (substr, STR)
Position (substr in Str)
Returns the position of the substring substr that appears for the first time in the STR string. If the substring substr does not exist in STR, the return value is 0:
Mysql> select locate ('bar',
Write it down first, so that you won't be able to remember it again!
When using PHP to operate the database, the data in the database is UTF-8 encoded. when reading the data, all the information displayed is ??????? The question mark is garbled. I
First, describe the configuration environment:
Operating System: Windows 2003 Standard SP2
PHP version: 5.2.5
MySQL version: 5
PhpMyAdmin: 2.11.6
1. First configure IIS and add new Server Extensions
Enter the phpisapi. dll file path and set the
Once the local startup mode is enabled to change the root user password of MySQL, when MySQL can be enabled again, it is revealed that the default storage engine (InnoDB) is not available and MySQL cannot be started, search for the network and learn
I have previously introduced a small MySQL backup PHP script
Program But it is suitable for virtual host users who do not have the MySQL Shell Permission. Here I want to talk about more common backup and restoration methods, and it is suitable for
1
After installing MySQL, change the root password and useNet startmysqlI encountered this problem at startup.C: \ mysql \ bin \ mysqladmin-u root-P ShutdownNet start MySQL does not have this error prompt!
*************2MySQL error 1067
Q: I
The solution is to modify/etc/MySQL/My. CNF and add the following line:
Set-variable = max_connections = 500
Or add the parameter max_connections = 500 to the startup command.It is to modify the maximum number of connections, and then restart
The following
Article This section describes the implementation of simple and practical Optimization Methods for MySQL databases, including how to regularly analyze and check tables and how to optimize tables on a regular basis, the following is a
The following
Article It mainly describes how to correctly install MySQL through the RPM package and configure and uninstall MySQL. The following describes how to configure MySQL and uninstall MySQL (the best combination with PHP) detailed
MySQL databaseManagement is a crucial part for the database. To understand the management of the MySQL database, you must start from the basics. Only the commands used in database management are first known, the actual operation is much easier.
MySQL databases support single-item and asynchronous replication. During the replication process, one server acts as the master server, and the other server acts as the slave server. As shown in. The master server writes the update information to a
I. Major changes from 4.0 to 4.1
If an InnoDB table containing the TIMESTAMP field is created in MySQL from version 4.1.0 to version 4.1.3. You need to recreate the table when upgrading to 4.1.4 and later, because the storage format has
For many new users, using PHP can easily write code with specific functions in just a few hours. However, building a stable and reliable database requires time and related skills. The following lists the 11 most serious MySQL-related errors I have
1. character_set_server and collation_server
These two variables are the server's character set. When the system is started, you can use -- character-set-server and -- collation-server to set them. If not, the system sets the two variables to the
Method 1: Recommended
ERROR Description: After a user is added to Mysql, the ERROR 1045 (28000): Access denied for user may occur during logon.
Cause analysis: the mysql. user table may contain records with empty users, for example:
Mysql> select
The biggest limitation is here-data insertion, so we can only start with the existing functions of the program. In fact, many programs can submit comments, comments, and posts, it depends on how the program inserts variables into the database. In
MySQL is "the most popular open database in the world", at least for MySQL Web sites. However, no matter how popular MySQL is, many companies are resistant to MySQL usage. This phenomenon comes from several reasons, some of which mistakenly think
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