CentOS under test pass
View the maximum number of connections to MySQL settings under the current system
The code is as follows
Copy Code
[Root@localhost ~]#/usr/bin/mysqladmin-uroot-p variables |grep max_connections|
6. Bbsd and cq66 server-side transformation
In Bbsd, the module on the user should be better modified, as long as it will be written. The operation of the passwd file is changed to
You can manipulate the member functions of the Usermanage class of
5. Layout module Design
The so-called classification, more is for Telnet server to consider, in cq66 mode, users can press
According to their own wishes to classify, anyway, the final is directly to version as the basic unit of access.
For the
3. Database design
The key or MySQL efficiency problem, reasonable allocation of MySQL memory, especially the table cache
Size. In addition, when the system suddenly lost power? is MySQL robust?
The name of the table is designed with a prefix
1. System Architecture:
Using modular thinking, divided into 3 layers:
A. Data storage layer: Use MySQL to store all the data of BBS, including user information,
Article data, user letters, user messages, System data (?) ), Key issues:
Database
UPDATE data table name SETField name = replace (field name, ' String to replace ', ' replace with ')WHERE the condition is set;
Grammar
The code is as follows
Copy Code
UPDATE wp_posts SETPost_content = replace
A, BACKUP database: (command in DOS Mysqlin directory execution)
The code is as follows
Copy Code
Mysqldump--opt SCHOOL>SCHOOL.BBB
Note: Back up the database school to the school.bbb file, school.bbb is a text
After installing MySQL
Open the primary database my.cnf
mkdir/home/log/
Add toConfiguration Code
The code is as follows
Copy Code
01.######### #同步配置开始 ###################02.server-id=103.log-bin
Wildcard description_ and any single character match% matches a string that contains one or more characters[] matches any single character in a particular range (for example, [a-f]) or in a specific set (for example, [abcdef]).[^] matches any single
Workaround:
The code is as follows
Copy Code
Vim/etc/my.cnf
Add or modify the following two lines under the [MYSQLD] node
The code is as follows
Copy Code
Skip-name-resolve
Bcurrant.com free 100 M/1G/FTP/PHP/MYSQL/CP space Disk space [? ]Bandwidth: 1 GB [? ]CPanel (RVSkin) + Tour GuideRuby on Rails Support-Demo + informationPHP4 and PHP5 supportDomain + sub-SSH access (request, which does not include the default)Any
This is my favorite space provider of three free space for php mysql abroad. If you are interested, you can check it out.Free hosting features:UNLIMITED SPACEUNLIMITED DATA TRANSFERPHP (without MYSQL or CGI)Server Side sorted Ded (SSI)Monthly
Transaction SQL code in mysql stored procedureDelimiter $Use test $Create procedure t_insert_table ()Begin/** Mark whether an error occurs */Declare t_error int default 0;/** If an SQL exception occurs, set t_error to 1 and continue the subsequent
About the creation of stored procedures and events in mysqlThe following stored procedure mainly implements the function of querying the data in the table half a year ago. If yes, it stores the data in the file and then deletes the data. The code
6.4 set synchronizationThe following describes how to quickly setMySQLSynchronization server. Suppose you want to synchronize all the databases, and you have not set them before. You need to disable the master server to complete all the steps.The
Different from 6.5MySQLSynchronization compatibility between versionsThe earliest binary format was developed in MySQL 3.23. Improved in MySQL 4.0, MySQL5.0 improved. The causal relationship between the servers to be upgraded during synchronization
My SQL has an error. In the past, I often used to guess. With this table, I found it as soon as I checked it out. It is much more convenient to share with the public.1005: An error occurred while creating the table.1006: database creation failed1007:
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