Tree output
function Get_array ($user _id, $top =0) {Global $mysql, $_g;$sql = "Select user_id as name from ' {spreads_users} ' where p1.spreads_userid= ' {$user _id} '";$rows = $mysql->db_fetch_arrays ($sql);if ($top ==1) {$arr [0][' name ']=
Using Php+mysql encountered a character disorder problem, the solution:
After mysql_connect add a set NAMES UTF8, you can make the UTF8 database to eliminate garbled, for the GBK database uses set NAMES GBK, the code is as follows:
The
The cause of the event is the online log found on the MySQL slow query. 1 million data volume standards, the joint query all Go index case, it is more than 600 milliseconds. Puzzled, but the data was raised 30 times times after the index column was
Write a MySQL backup script, let's see what's wrong with the place.
This is the first shell script I wrote, so let's see,
I can send it to whoever needs it.
You can put this script into the crontab, perform it once every morning, and automatically
In the forum to see a lot of people encounter the data into the database when the display of garbled and read data from the database on the page displayed as garbled problem, in order to be able to facilitate users in the first time to solve the
?/* Store the table structure of the posts------------------------------------------------------
The code is as follows
Copy Code
CREATE TABLE Bbsrow (bbsrow_id Int (6) NOT NULL auto_increment,//posting ID
Environment: CentOS 6.0_x64
Open port: Edit/etc/sysconfig/iptables Add the following record and restart the firewall after saving
-A input-m state--state new-m tcp-p TCP--dport 3306-j ACCEPT
One, method one: Yum installs
1. Install # yum-y
MySQL version: Mysql-4.1.21-win32.exeApache Version: Apache_1.3.37-win32-x86-no_src.msiOperating system: WinXP + SP2PHP Version: Php-4.4.3-win32.zipMy site is currently supported in both Chinese and English and will need to support other languages
1. User creation, permission, and deletion1. Connect to MySqlConnection: mysql-h host address-u user name-p user password (note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (press enter)Open cmd and
1. BasicsMemcache is a high-performance distributed memory object cache system. It maintains a unified huge hash table in the memory and can be used to store Sessio. When the system needs to read data from the memory, this greatly improves the
Since I have been in school for so many years, I have come to the conclusion that learning from an example is the fastest and most effective, and can cultivate a strong practical ability. This is a good way to learn. Try not to access. For example,
As the company's website traffic grows, MySQL naturally becomes a bottleneck. Therefore, I have been studying MySQL optimization recently. The first step is to naturally think of MySQL system parameter optimization, as a database system for a
In the ASP era, if we want to build a database-driven web site, then you can choose a Microsoft SQL SERVER database with a lot of money or choose to spend a lot of time looking for an ACCESS database that achieves unified performance and stability,
This is the latest vulnerability. Please install official patches in time.Vulnerability version:MySQL AB MySQLVulnerability description:Bugtraq id: 58511CVE (CAN) ID: CVE-2013-1861Oracle MySQL Server is a small relational database management system.
In php, the default session storage method is hard disk, and php can also change the default storage method.The session_set_save_handler method is used. The following describes how to save the session to the MySql database.1. Create a session table
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