MySQL study Note 1 bitsCN.com
1. Data in relational databases is stored as tables, so the storage engine can also be called the table type (that is, the type of the storage and operation table ). Query supported storage engines in MySQL: show
Introduction to the MySQLSHOW command bitsCN. comSHOW TABLES or show tables from database;
Explanation: displays the names of all tables in the current database.
Show databases;
Explanation: displays the names of all databases in MYSQL.
Show
Usage of the MySQLshow command bitsCN. comshow tables or show tables from database_name; // display the names of all tables in the current database
Show databases; // display the names of all databases in mysql
Show columns from table_name from
The following is a brief description of the general process of installing software for non-root users under Linux:1. Get the source code, usually the wget way, Ubuntu can use apt-get source to get the code.2. Extract the source code, general use TAR-
Mysql Chinese garbled characters are a common problem for php jsp beginners. There are many solutions. The following describes how to configure mysql in my. cnf.
Symptom:
A similar error occurs when you insert a Chinese character to mysql tutorial 5.
During my project, I have made some adjustments and Optimizations to MySQL system configuration parameters, such as connection timeout disconnection, SQL exceeding the buffer length limit, and memory table size adjustment, here we will sort out the
After about a month of software development, I thought it would be made a J2EE-related component, which was taken the wrong path by the graduation design mentor of make (the name of this person is hidden here, it can even be developed into a
MySQL command line Common commands
First, start and stop the MySQL ServiceNet stop MySQLNet start MySQLSecond, log on to MySQLSyntax: mysql-u user name-P User PasswordEnter the mysql-uroot-p command, press enter and prompt you to enter the password,
Problems FoundThe top command checks the server load and finds that mysql often has more than 90% CPUs. The cause of this high Mysql load is probably mainly caused by index problems and some abnormal SQL statements.Troubleshooting1. determine the
Mysql saves the result to a file and executes SQL statements from the file to record the operation process (using the tee command), sqltee
1. Sometimes we may need to record our mysql operation process. In this case, we can use the mysql tee command.
An error occurred while installing Mysql,
The driver was updated, causing a problem with the wireless Nic. However, even if the driver is downloaded from the official website, it cannot be done well, and it is particularly difficult. However, you
Mysql optimization tips and mysql tips
A comprehensive technology for mysql optimization, mainly including
A: Table Design rationalization (in line with 3NF)
B: add an appropriate index. [four types: general index, primary key index, unique index
Summary of common mysql commands and summary of common mysql commands# Modifying Field TypesAlter table 'table _ name' modify column ip varchar (50 );# Adding fieldsAlter table 'table _ name' add ip varchar (50 );# Add a primary key (primary key
Record mysql commands and scripts that are frequently used in development for backup. I haven't written SQL for a while recently, and it's a little unfamiliar.
(The following code is developed in winxp. Open a command prompt ).
First, start and stop
MYSQL command:Mysql-h host address-u user name-p password to connect to MYSQL; If MYSQL is just installed, the Super User root has no password.(For example, mysql-h 110.110.110.110-Uroot-P123456)Note: u and root do not need to add spaces. The same
Cross-database migration of wordpress databases and cross-database migration of wordpress Databases
Background:
When Wordpress is installed, the database is incorrectly specified, causing data on the website to be stored in the mysql system library.
MySQL engine, index and optimization (li), mysqlli
I. Storage Engine
Storage engine, MySQL data is stored in files (or memory) using different technologies. Each of these technologies uses different storage mechanisms, indexing techniques, locking
When using mysql (show tables), you sometimes need to view the table and field information (whether the table and a field exist .)~~ PHP provides such related functions, such as mysql_list_dbs () and mysql_list_fields (), but the mysql_list_fields ()
Linux basic commands and linux basic notes
Today, we are building a Linux production environment. This is a complex task that has to be done. Although I have done it many times, there are still many steps and commands that I don't remember. Every
The cause of this problem is probably the encoding of the database.
1. Enter the command line in MySQL:
Show variables like 'character _ SET _ % ';
You can see your encoding settings:
2. You can see which one
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.