Currently, I am studying the development of backend server, so I chose to build it in PHP + Apache + MySQL mode.
In.
So the main content is from: http://www.5idev.com/p-php_install.shtml
My environment is Windows XP, SP3
Php development
I have been learning PHP for this holiday and will inevitably use the MySQL database. I used the stored procedure and encountered a small problem. I did not solve a lot of problems I found on the Internet. Then I discovered this. Alas, beginners
Two Methods for MySQL to insert a date value1) string is used for receiving from the page, and preparedstatement. setstring () is directly used in Dao ();2) Same, the string is used for receiving, and then formatted:Simpledateformat SDF = new
Date_forma T (date, format) format the date or Date and Time Value Based on the format string, and return the result string. You can use date_format () to format the date or datetime value to obtain the expected format. Format the date value in the
Csung connects to mysql install mysql-connector-net-5.0.6.zip and adds the reference connection string: Data Source = 127.0.0.1; user id = root; Pwd =; initial catalog = test; allow zero datetime = trueusing system; using system. collections.
Sometimes you may use a single query to return several results, which is not a problem in PHP.
$ Rows = array (); $ db = new mysqli ('2017. 0.0.1 ', 'root', '123', 'user'); If (mysqli_connect_errno ()) { $ this-> message ('can not connect to
How to restart MySQL on Linux and Windows Platforms
The correct method to restart MySql in Linux:
1. MySQL installed through the RPM package
Service mysqld restart
2. Install MySQL from the source code package
// Linux Command to disable
MySQL stores the HTML of a page, which should be of a long field and be of the Blob type. garbled characters are found after the page is retrieved. The solution is to expand a typehandler.
Public class myblobtypehandler extends basetypehandler {#
2. Modify the character set of databases and tablesAlter database maildb default Character Set utf8; // modify the character set of the databaseAlter table mailtable default Character Set utf8; // modify the character set of the tableIf you want to
Http://indian.blog.163.com/blog/static/108815820056403180/
In MySQL, the value range of tinyint is-128 to 127. The unsigned range is 0 to 255 (see the official MySQL5.1 reference manual
There are two cases,1. Start multiple ports in the same version2Start multiple ports in different versions
It is easy to start multiple ports in the same version./Usr/local/webserver/MySQL/bin/mysqld_safe-- Defaults-file =/var/mysql3306/My. CNF
The Latin character set is used in the MySQL database. Therefore, Chinese characters cannot be normally supported. Chinese characters are garbled "?" in the database. .
To enable MySQL to use Chinese characters normally, especially when using JSP to
MySQL configuration in Debian
1. Modify the MySQL password
Because MySQL does not have a password by default, you must modify your password for security reasons!Let's see if your MySQL has no password:
$ Mysqladmin version
If you can
1. Try to retrieve the desired field. Do not select * from table like this
The more data you get, the more data you transmit over the network, which is a waste of bandwidth and network buffer.
Especially in order, the performance is even worse .,
After using WordPress for such a long time, I occasionally remember to back up the data. The last time I used wp xml, I configured my machine's Environment basically the same as that of the host provider, there was a MySQL database packaging and
1. view the earliest BINLOG file number of MySQL.
mysql> show binlog events limit 10;+------------------+-----+-------------+-----------+-------------+----------------------------------------------------------------------+| Log_name | Pos |
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