Http://blog.csdn.net/hzcyclone/archive/2010/08/18/5821370.aspxThe MySQL configuration file is/etc/my.cnf, which is configured by modifying it to configure MySQL./etc/my.cnf from the following files:If your memory is ≤64m, copy/usr/share/doc/mysql/my-
——————————————————————————————————————————————————————————First, start and exit1. Go to MySQL: start MySQL Command line Client (MySQL dos interface) and enter the installation password directly. At this point the prompt is:mysql>2. Exit
MySQL is a relational database management system, because of its small size, fast, low total cost of ownership, especially the open source of this feature, the general development of small and medium-sized web sites have chosen MySQL as a Web site
25.2.3.26.mysql _ get_character_set_info () voidmysql_get_character_set_info (MYSQL * mysql, MY_CHARSET_INFO * cs) describes the functions that provide information about the Default Client character set. You can use the mysql_set_character_set ()
MySQL learning footprint record 01-SOURCE, SHOW 1. Import Data
command: SOURCE ; eg: mysql> source ~/MyDoc/create.sql;
2. the shortcut for show columns from is DESCRIBE
eg: mysql> SHOW COLUMNS FROM orders;+------------+----------+-----
1. Start and exit1. Enter MySQL:Start MySQL Command Line Client (MySQL DOS Interface) and enter the password for installation. The prompt is: mysql>Or open the terminal and enter the SQL statement:Mysql-uroot-p123
2. Exit MySQL:Quit or exit
Ii.
This article mainly introduces the actual usage of the Mysqlshow command under the Mysql database. If you are interested in the specific application of the Mysqlshow command, you can click the following article to learn more about its actual
Showinnodbstatus: display the status of the innoDB Storage engine showlogs; Explanation: display the logs of the BDB storage engine showwarnings; Explanation: display the last execution
Show innodb status; Description: displays the status of the
1. Add a userGrant all privileges on *. * To 'root' @ '%' identified by 'Password' with grant option;Flush privileges;
2. remote connectionUse MySQL;Update user set host = '%' where user = 'root ';
3.
Mysql-u root MySQL
Mysql> Update
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
Continued: If you click to delete an entry then you will be redirected to del.php (as the current mainstream development language)
Del.php (as the current mainstream development language)
Deleting an entry from the database
Delete an entry
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
Show databases;
Show tables from db_name;
Show columns from table_name from db_name;
Show index from talbe_name [from db_name];
Show status;
Show variables;
Show [full] processlist;
Show table status [from db_name];
Show grants for user;
In
1. Connect to Mysql
Command: mysql-u -p
1. Connect to MYSQL on the local machine.
First, open the DOS window, enter the mysql \ bin directory, and then enter the mysql-u User Name)-p password). Press enter and you will be prompted to enter the
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
Document directory
1.1 connect to MySQL
1.2 change New Password
1.3 new users added
1.4 Start and Stop MySQL
2.1 database operations
2.2 table operations
3.1 export database files from a database
3.2 importing data from external files to
1. Start and exit
1. Enter MYSQL:
Start MySQL command line client (MySQL dos Interface) and enter the password for installation. The prompt is: mysql>
Or open the terminal and enter the SQL statement:
Mysql-uroot-p123
2. Exit MYSQL:Quit or exit
Ii.
A. show tables or show tables from database_name; -- display the names of all tables in the current databaseB. show databases; -- display the names of all databases in mysqlC. show columns from table_name from database_name; or show columns from
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
MySQL learning footprint record 01-SOURCE, SHOW bitsCN.com
MySQL learning footprint record 01-SOURCE, SHOW
1. import data
command: SOURCE
; eg: mysql> source ~/MyDoc/create.sql;
2. SHOW COLUMNS FROM
The shortcut is
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.