Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 2141 to 2150 of 15691 « Previous | Next »
4.8. 函数

函数会返回数据,调用函数使用 select fun(),不能使用call调用,否则提示 mysql> call myfun(); ERROR 1305 (42000): PROCEDURE test.

【mysql】  【函数】  【SQL】  【Create】  【timestamp】  【Security】   点击查看原文>

4.3. Partitioning

mysql> SHOW VARIABLES LIKE '%partition%';

+-------------------+-------+ | Variable_name | Value | +-------------------+-------+ | have_partiti...

【mysql】  【BY】  【HASH】  【Create】  【varchar】  【myisam】   点击查看原文>

https://yq.aliyun.com/articles/337538

目录 4.1. 数据库管理(Database) 4.1.1. create 4.1.2. drop 4.1.3. Alter 4.1.4. Rename 4.1.5. CHARACTER 4.1.6.

【mysql】  【数据库】  【aliyun】  【Create】  【database】  【存储过程】  【存储】  【数据类型】   …

[获取更多]
第 4 章 DDL - Data Definition Language

目录 4.1. 数据库管理(Database) 4.1.1. create 4.1.2. drop 4.1.3. Alter 4.1.4. Rename 4.1.5. CHARACTER 4.1.6.

【mysql】  【数据库】  【Create】  【database】  【存储过程】  【存储】  【数据类型】  【utf-8】   …

[获取更多]
4.2. 表管理(Table)

4.2.1. 数据类型

4.2.1.1. SET 集合类型

SET 集合类型,此类型适合用于多项选择场景,例如保存表单中的checkbox。 CREATE TABLE `QA` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCRE...

【mysql】  【innodb】  【test】  【Create】  【timestamp】  【varchar】  【csv】   …

[获取更多]
3.5. Backup and Recovery

3.5.1. Import / Export

3.5.1.1. Export(Backup)

mysqldump -hlocalhost -proot -p**** mydb > mydb.

【mysql】  【innodb】  【SQL】  【path】  【yum】  【xml】  【database】  【source】   …

[获取更多]
3.2. Access Privilege System

global privileges OR (database privileges AND host privileges) OR table privileges OR column privileges OR routine privileges Table 12.

【mysql】  【events】  【Server】  【grant】  【revoke】  【replication】  【Create】  【Access】   …

[获取更多]
2.8. mysql log

/etc/my.cnf 配置文件 在服务器上的/etc/my.cnf中的[client]加入 tee =/tmp/mysql_history.log即可. 查看log设置 show VARIABLES like '%log%'; 命令行 mysql -uroot --tee=/tmp/mysql_history.

【服务器】  【mysql】  【LOG】  【配置】  【variables】  【file】   点击查看原文>

第 3 章 Database Administration

目录 3.1. User Account Management 3.1.1. Create User 3.1.2. Drop User 3.1.3. Rename User 3.1.4. SET PASSWORD

3.

【mysql】  【数据库】  【BY】  【grant】  【Create】  【database】  【account】   点击查看原文>

2.7. mysqldumpslow - Parse and summarize the MySQL slow query log.

开启记录日志,修改my.cnf加入下面几行 --log-slow-queries[=file_name] long_query_time = 10 log-slow-queries = long_query_time 是指执行超过10秒的sql会被记录下来。

【mysql】  【日志】  【LOG】  【排序】  【主机】  【lock】  【parse】   点击查看原文>