1. Download the MySQL installation-free compressed package
Download mysql-5.5.15-win32.zip to local D: \ mysql-5.5.15-win322. modify the configuration file
Copy the my-small.ini, one of which is the my. ini file, the port can be modified3. modify
Concept of databases relationships between database servers, databases, and tables
The so-called Database Server installation only installs a database management program on the machine, which can manage multiple databases.
Generally, developers
Show tables or show tables from database_name;Explanation: displays the names of all tables in the current database.
Show databases;Explanation: displays the names of all databases in MySQL.
Show processlist;Explanation: displays all processes
Thinkphp Backup Database method sharing, thinkphp backup database
Seemingly thinkphp no backup database method, so I wrote a, database connection and transaction processing with PDO, if necessary can contact me, write a mysql or mysqli
Copy CodeThe
PHP implements database backup (high scores for good users) PHP database backup storage database
I want to use PHP to back up the database. the backup can be SQL statements or txt files.
Currently, table structures and data backup can be
Coding in mysql in linux (UTF-8)
Today, I spent one day studying the encoding problem in mysql, and it was not a waste of effort.
At any time, the encoding must be unified, which is a prerequisite for ensuring that the data can be correctly written
MySQL has a lot of basic commands, and the show command is also one of them. In many users, the use of the show command is also prone to confusion. This article summarizes the many usage of the show command.1. Show tables or show tables from
MySQL updates Chinese columns: 1366 Incorrect string value solution, 1366 incorrect
Environment: mysql-5.6.25-winx64, MySQL workbench
Problem: An exception occurred during MySQL update:
Warning (s): 1366 Incorrect string value: '\ xE8 \ x82 \ x96
A. show tables or show tables from database_name;-displays the names of all tables in the current MySQL database.
B. show databases;-displays the names of all databases in MySQL.
C. show columns from table_name from database_name; or show columns
Mysql environment configuration query and Mysql environment Configuration
Mysql environment Query
1. View All engines
A) Show engines or go to information_schama to view the ENGINES table.
2. view the current user
A) Select user () can be used
Mysql reorganizes notes -- woods memo, mysql -- woods================================ SQL memo CRUD queries multi-table events and so on ==== ==================================Example 1. database 1. create database [if not exists] db_name [character
MySQL (I) and mysql (I)1. Start the MySQL service and log on to the MySQL database
1. Start the MySQL Service
1. Click the Start Menu of a single machine. In the displayed menu, select the run command to open the run dialog box.
2. Enter "services.
Show databasesshow tablesinformation_schema
The output of the show tables statement does not contain the temporary table.
View all databases on the server > Show databases: view the create database statement of a given database> show create
Select a database. After the database is selected, you can still use the data tables in other databases. You only need to specify database. data table.
Use db_name Select * From db_name.tbl_name
Show all databases Mysql> select Schema_name from
Directory:
SQL statement... 1
1. Database and table operations... 1
1. Common Database and table operations... 1
2. Operate the database... 2
3. operation table... 3
4. add, delete, modify, and query data in the table... 4
5. Table
{Describe | DESC} table_name[Col_name -- supports wildcard % _]: Show columns from; this statement is provided to be compatible with Oracle.
Explain table_name: Describe table_name | show columns from table_name.
Explain[Extended |
Modify the database character set:
ALTER DATABASE db_name DEFAULT CHARACTER SET character_name [COLLATE ...];
Change the default character set and all character columns (char, varchar, text) of the table to the new character set:
Alter table
MySQL causes Chinese garbled characters for the following reasons:1. Problems with server settings, such as staying at Latin12. Table language setup problems (including character and collation)3. Connection language settings for client programs
MySQL causes Chinese garbled characters for the following reasons:1. Problems with server settings, such as staying at Latin12. Table language setup problems (including character and collation)3. Connection language settings for client programs
MySQL has many basic commands, and the show command is also one of them. In many users, the use of the show command is also prone to confusion,This article brings together the many usage of the show command. 1. show tables or show tables from
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.