Whether in a small, free database space or a large e-commerce site, a reasonable design of the table structure, the full use of space is very necessary. This requires us to have a good understanding of the common data types of database systems.
The code is as follows
Copy Code
Categories Directory tree $globals ["id"] = 1; The ID number used to track the Drop-down menu$layer = 1; The series used to track the current menuConnecting to a database$con =mysql_connect
MySQL usage guide (ON)
Author: King Kong
Many friends have installed MySQL but do not know how to use it. In this article we will learn some common MySQL commands by connecting MySQL, modifying passwords, and adding users.
One, the connection MySQL.
Author: Wang Mei (HeartIcy@163.com)
The loss of the password is very distressing things, especially the root password lost: (. Install yourself
Play lost also lost, but in the event of a production server hanging trouble can be big!
Now assume that
The MySQL replication maintains master and slave data in the same way that the master SQL is executed on the slave, primarily by copying the binary logs.
Benefits Needless to say, the first master-slave structure to achieve read-write separation,
Subqueries are most commonly used in the WHERE clause of the Select-sql command.A subquery is a SELECT statement that is nested within a SELECT, select ... INTO statement, INSERT ... INTO statement, DELETE statement, or UPDATE statement or nested in
The implementation of the Web site article on the previous and the next one of the SQL statement writing.
The ID of the current article is $article _id, and the ID of the current article corresponds to the $cat_id, so the previous article should be:
Originally do not want to tell you, because the collection of other people's website is not a glorious thing, but feel that this technique is strong enough, if this short line of code, I am not exhausted. Is this, collected some other people's
[Root@cch rpm]# RPM-IVH mysql-server-5.5.29-1.rhel5.x86_64.rpm
error:failed dependencies:libaio.so.1 () (64bit) is needed by mysql-server-5.5.29-1.rhel5.x86_64Libaio.so.1 (libaio_0.1) (64bit) is needed by mysql-server-5.5.29-1.rhel5.x86_64Libaio.so.
First, install MySQL. This should not be said much.
Then confirm that My.ini,linux is my.cnf. There is no skip-networking in the document, or the sentence is annotated. Now it seems to be installed after the default is not. (if modified, restart
MySQL server has gone awayThe most common cause of gone away errors for MySQL server has is that the server timed out and closed the connection. By default, if nothing happens, the server closes the connection after 8 hours. You can change the time
CONCAT () is a string concatenation functionReplace () is a string substitution function
CONCAT (parameter 1, parameter 2,...)
CONCAT (String, FROM_STR,TO_STR)Returns the string str, where all occurrences of the string from_str are replaced by
Under Windows:
Open the Command Line window to stop the MySQL service:
The code is as follows
Copy Code
Net stop MySQL
Start MySQL, general to MySQL installation path, find Mysqld-nt.exe (or
1. What are stored procedures and functions
mysql tutorial stored procedures and functions are in advance, edited and stored in the database tutorial a set of SQL, call stored procedures and functions can simplify the work of application developers,
Show tables or show tables from database_name; Displays the names of all tables in the current database tutorial
show databases; Displays the names of all the databases in the MySQL tutorial
Show columns from table_name to database_name; or show
Textarea always has a lot of space issues to solveProblem description:There is always a lot of space at the end of the header when php reads mysql data to textarea. There is no space in viewing data in the data table.Cause:The content should be
To solve the problem of garbled characters inserted into the Chinese database:Most of the problems are caused by converting Chinese into UTF-8. The code is as follows:Copy code $ Str = iconv ('gbk', 'utf-8', $ str ); If not, check whether the
My operating system is: win2000 Server1, to download on SUN: j2sdk-1_3_1_01-win.exe, click automatically installed2. Download jakarta-tomcat-4.0.zip to apache, and release it in the c: omcat directory.3. Download mysql-3.23.42-win.zip to mysqland
During website construction, you often need to import and export some data. In Mysql databases, there are generally two ways to process data export:1. Use select * from table_name into outfile "file_name ";2. Use the mysqldump utilityThe following
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