Chinese garbled characters often occur when PHP connects to the database. Generally, you only need to check whether the encoding is uniform to solve the garbled problem.
1. character encoding of the database:
You can set all encodings to UTF-8
1. Download sitescope
2. Install sitescope
It can be installed by default. The license number can be blank first. If it is blank, it indicates a trial. If it is available, you can enter the license number after installation. After installation
Tip: Error 1044 (42000): Access denied for user ''@ 'localhost' to database 'mysql '. This problem also occurred two days ago. I found a popular method on the Internet (see method 1. I tried this again today, but I was not sure. After searching for
Green version of MySQL. After the system is reinstalled, start MySQL.
Blog type:
MySQL
Green version of MySQL. After the system is reinstalled, start MySQL.
1. Install the MySQL ServiceEnter the directory F: \ MS-DOS \ bin
Refer to this article
Local Environment: ubuntu12.04, fedora-17
MySQL version: 5.5.28
Cmake version: 2.8.9
1. download the latest cmake version, decompress it, compile and install it.
sudo ./configure --prefix=/usr/local/etc/cmake-2.8.9sudo
1. MySQL Common commands
Show databases; list all databases
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;
Recently, many problems have been encountered with the use of MySQL. Who asked the old man to have a bunch of DBAs? I didn't care about it. I just used gepi myself. Please advise.
1. Potholes repair
For online machines, the configuration should be
MySQL replication is a simple and common database load balancing method.
Here we record the specific process of Environment setup:
Environment: Two Ubuntu instances, one master instance and one slave instance.
MASTER: ubuntub (192.168.1.101)
SLAVE:
According to a lot of information on the Internet, replacing glibc's malloc with tcmalloc in Google-perftools can greatly improve the performance of MySQL in high concurrency. As mentioned in these documents, there are two ways to make tcmalloc take
Is your webapp system using a MySQL database system? Does your customer always complain that the page results are very slow? Is the load of your MySQL system always in a very high state? This article will provide you with a method to share the load
The following example uses the specified value starting from 1000.
1. Set it when creating a table:
Create Table 'test '(
'Id' int (11) not null auto_increment,
'Class' varchar (2) not null,
'Name' varchar (50) not null,
'Sex 'varchar (2) not
It is very important to specify the encoding when creating a MySQL database. Many developers use the default encoding, but from my experience, coding databases can avoid garbled characters caused by import and export.The standard we follow is that
For example, the question is still worrying. There are also a lot of answers on the internet, varied, and I don't know who is right or who is wrong. I personally think there are several articles to solve this problem well. The following is a summary:
The MySQL stored procedure can directly return the result set with the out parameter.For example:Stored Procedure:
Create procedure 'test' (in _ login varchar (32), In _ psw varchar (32 ), out _ ret integer (10), out _ id INTEGER (10), out _
The default database for the JBOSS-3.2.3 uses hypersonic. For engineering use, we need to switch the database to a database with high performance such as MySQL and Oracle. What files need to be modified?
The following uses the MySQL database as an
The configuration in Tomcat, which was previously used, can be found:
factory
org. Apache. commons. DBCP. basicperformancefactory
driverclassname
org. gjt. Mm. MySQL. Driver
The autoreconnect = true argument to
The default encoding of MySQL is Latin1, which does not support Chinese characters. You need to change the default encoding of the database to GBK or utf8 at noon.
1. You need to log in as the root user to view the database encoding method (the
We need to sort out some script programs near the end of the year. If we find a MySQL database backup script, we can share with you the idea that the environment is ubuntu10.04server.
Obtain the names of all databases on the MySQL server and
If you have any questions, check:
Delimiter |
Create procedure sorttable ()BeginDeclare Val int;Set val = 1;Declare curtable cursor for select * From t_ruanko_ke_answer order by qid ASC;/* Capture and set the loop when a cursor exception occurs.
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