Description
Operating system: CentOS 5.X
Server IP Address: 192.168.21.127
Web environment: Nginx+php+mysql
Site root directory:/usr/local/nginx/html
Objective: Install Coreseek Chinese search engine, configure MySQL database access interface,
Configure master-Slave synchronization of MySQL database (one master and one slave)
First, the main library to open Binlog, Server-id
[Root@master-mysql ~]# grep-e "Server-id|log-bin"/etc/my.cnfLog-bin =/usr/local/mysql/data/mysql-binServer-id =
1. Note Update cache (in the background)
2. If it is under *nix, please set the Admin/cache directory and all the files below to 777 (cache directory generated files I have deleted, if you reflect the error, you can consider the provision of a
Native support Zlib component library, GD Library and. htaccess pseudo static, etc., to ensure that most PHP programs run normally. Home virtual host mainly provided to Emer to build personal blog or to carry out related matters. The following is
Please accedi or Registraprova Kim Jong Il's nuovo host free di Hosting99:-MB Spazio company website-1 FTP accounts-1 db MySQL (SENZA limiti)-1 Email accounts-20GB Dibandayazi-Enterprise Post Office-Gestione con's cpanel-Key Mount *
Caratteristiche
40G Extra Large capacity free PHP space
The free php space size is: 40GB;
Monthly flow limit of: 1000GB;
Single file maximum limit is: 2MB;
Support Ftp/web way to upload and manage filesMoving Address: http://www.40gigs.com/
free 20GB Extra
Creating triggers
Create a trigger with only one execution statementCREATE TRIGGER Trigger Name before| After Trigger eventOn table name for each ROW executes the statement where the trigger name parameter refers to the name of the trigger to be
MySQL ORDER BY syntax
The code is as follows
Copy Code
SELECT column_name (s) from table_name ORDER BY column_name
NOTE: The SQL statement is a "letter case insensitive" statement (it does not distinguish
1 Get current date + time (date + times) 1.1 function: Now ()
Related functions: Current_timestamp (), localtime (), Localtimestamp ()
2. Get Current date
Function: Curdate ()
Related functions: Current_date (), current_date
3. Get current time
Scripts are placed in the/home/user/mysql tutorial _backup.sh
Crontab
# crontab-l
# m H Dom Mon Dow command
* * */home/user/mysql_backup.sh
The script is as follows
#!/bin/sh
# mysql_backup.sh:backup MySQL databases and keep newest 5 days
MySQL tutorial limit usage and MySQL limit optimization/*MySQL limit usage November 08, 2007 14:291. SELECT * FROM tablename limit 100,15
Start with 100 records after 15 (the actual fetch is 第101-115条 data)
2. Select * FROM tablename limit 100,-1
These two days reinstall under the Mac system under the NGINX+PHP+MYSQL environment, today to clean up the installation steps:
1. Installation Homebrew
Ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"As simple as that, a
Modify the configuration file of Discuz. FindInstall/config/config_global.php and/uc_server/data/config. inc. php.OK. No error is returned. However, whether you click Register or log on, an "internal error is returned and this content cannot be
Problem scenariosStart a mysql container locally using docker and map the local port 33067 to mysql 3306 in the container. Assume that the container's ip address is 172.17.0.2, use the local mysql client to try to connect to the mysql service in the
DetailsIn a test, I encountered an SQL injection problem. I did not find a solution on the Internet. At that time, the injection point was after the limit keyword, and the database was MySQL5.x, the SQL statement is similar to the following:SELECT
Cobar is a distributed processing system for relational data developed by Alibaba. It is a middleware that provides distributed services for relational databases (MySQL). This product successfully replaces the original Oracle-based data storage
1. Permanent free filing is requiredWEB space: 500 M + MySQL database: 50 MNumber of IIS connections: 100 | support for PHP/MySQL and common componentsSupports custom pages such as 404 | supports pseudo-static rewriteIndependent control panel |
By default, log files are enabled for MySQL/MariaDB installed in the one-click LNMP installation package. If data operations are frequent, a large number of logs are generated, generate a mysql-bin.0000 * similar file
Experimental system: CentOS 6.6 _ x86_64Prerequisites: most software is compiled and installed. Prepare the compiling environment in advance, and disable firewall and selinux.Experimental Software: nginx-1.9.3 mariadb-10.0.20 php-5.6.11 memcache-2.2.
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