First, how to create a new independent account and set permissions
Here I use Navicat as my database management tool to open the navicat.
Select "User"--"New user"
Enter user name, host, password, it should be noted that the host is not write
The method is simple:
Save the following code as test.php and put it into the web directory to execute.
Copy Code code as follows:
/**
* Test PHP connection with MySQL
* Editor: Www.jb51.net
*/
$link =mysql_connect ("localhost",
First stop the MySQL service:
Copy Code code as follows:
root@webserver:/home/webmaster# service MySQL Stop
Then recreate a MySQL service using the Ignore Password Authentication mode:
Copy Code code as follows:
There is a character set translator between the MySQL client and the MySQL server.
Character_set_client =>GBK: The converter knows that the client sent the code in GBK format.
CHARACTER_SET_CONNECTION=>GBK: Converts data transferred from client
(1) Improve the database insert performance Central idea: Try to write data at once to file and reduce the checkpoint operation of the database. The following four configuration entries were modified this time:1) Set the
A bit of a problem occurred today in the process of using the order by, and it was wrong to understand that it was previously understood.
See the use of order by on the W3s Web site before, thinking that the selected data is sorted in ascending or
Mysqldumpcommand-line Export database:1, into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directoryAs I entered the command line: CD C:\Program files\mysql\mysql Server 4.1\bin2, Export database: Mysqldump-u user name-p
1, hardware layer-related optimization
1.1. CPU Related
In the server's BIOS setup, you can adjust the following configurations to maximize CPU performance or avoid classic NUMA issues:
(1), select Performance per Watt optimized (DAPC) mode, play
The describe command is used to view detailed design information for a specific table
For example, to view the design information for the guestbook table, use:
Describe Guestbook
describe Ol_user userid
Second, you can view the
Install the MySQL 5.1.48 or MySQL 5.5.8, configure the last click on the Execute button, but not the Start service step. Check the MySQL system service has been added, but can not start, manual also not. With Event Viewer you can see several errors
MySQL recently on Windows 2003 has many times the normal operation can not connect to the database failure, the phenomenon is unable to connect to the database, and can not stop MySQL or restart MySQL, restart the machine also has no effect, because
MySQL database power-on error:
Innodb:the log sequence number in Ibdata files does not match
Innodb:the log sequence number in the ib_logfiles!
100224 12:24:20 Innodb:database is not shut down normally!
Innodb:starting crash recovery.
innodb:reading
Overview
MySQL Cluster is a highly practical, scalable, high-performance, and highly redundant version of MySQL for distributed computing environments, and its design is designed to meet the toughest application requirements in many industries, and
The concept of null values is a common cause of confusion among novice sql, who often assume that null is the same thing as an empty string. That's not true! For example, the following statements are completely different:
Mysql> INSERT into
The example of this article describes the Zend Framework connection to the MySQL database method. Share to everyone for your reference, specific as follows:
Before you look at these, make sure you load the PDO extension correctly. The procedure is
1.pt-archiverFunction Introduction:Archive records from tables in a MySQL database to another table or fileUsage Introduction:Pt-archiver [OPTION ...]--source DSN--where whereThis tool simply archives old data and does not have much impact on OLTP
We know the way to analyze the query performance of MySQL statements in addition to using the explain output execution plan, you can also let MySQL record queries that exceed a specified time, and we'll call the SQL statement query that exceeds the
Learn how to manage and navigate MySQL databases and tables is one of the first tasks to master, the following content will be mainly on MySQL database and table of some common commands to summarize, some we have to grasp the commands, some of the
When the MySQL client connects to the MySQL server (the process is: mysqld), Mysqld creates a new thread to process the request. The thread first checks whether the host name is in the hostname cache. If not, the thread attempts to resolve the host
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