⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log_tables.result

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 RESULT
字号:
use mysql;truncate table general_log;select * from general_log;event_time	user_host	thread_id	server_id	command_type	argumentTIMESTAMP	root[root] @ localhost []	1	1	Query	select * from general_logtruncate table slow_log;select * from slow_log;start_time	user_host	query_time	lock_time	rows_sent	rows_examined	db	last_insert_id	insert_id	server_id	sql_texttruncate table general_log;select * from general_log where argument like '%general_log%';event_time	user_host	thread_id	server_id	command_type	argumentTIMESTAMP	root[root] @ localhost []	1	1	Query	select * from general_log where argument like '%general_log%'create table join_test (verbose_comment varchar (80), command_type varchar(64));insert into join_test values ("User performed a usual SQL query", "Query");insert into join_test values ("New DB connection was registered", "Connect");insert into join_test values ("Get the table info", "Field List");select verbose_comment, user_host, argumentfrom  mysql.general_log join join_teston (mysql.general_log.command_type = join_test.command_type);verbose_comment	user_host	argumentUser performed a usual SQL query	root[root] @ localhost []	select * from general_log where argument like '%general_log%'User performed a usual SQL query	root[root] @ localhost []	create table join_test (verbose_comment varchar (80), command_type varchar(64))User performed a usual SQL query	root[root] @ localhost []	insert into join_test values ("User performed a usual SQL query", "Query")User performed a usual SQL query	root[root] @ localhost []	insert into join_test values ("New DB connection was registered", "Connect")User performed a usual SQL query	root[root] @ localhost []	insert into join_test values ("Get the table info", "Field List")User performed a usual SQL query	root[root] @ localhost []	select verbose_comment, user_host, argumentfrom  mysql.general_log join join_teston (mysql.general_log.command_type = join_test.command_type)drop table join_test;flush logs;lock tables mysql.general_log WRITE;ERROR HY000: You can't write-lock a log table. Only read access is possible.lock tables mysql.slow_log WRITE;ERROR HY000: You can't write-lock a log table. Only read access is possible.lock tables mysql.general_log READ;ERROR HY000: You can't use usual read lock with log tables. Try READ LOCAL instead.lock tables mysql.slow_log READ;ERROR HY000: You can't use usual read lock with log tables. Try READ LOCAL instead.lock tables mysql.slow_log READ LOCAL, mysql.general_log READ LOCAL;unlock tables;lock tables mysql.general_log READ LOCAL; flush logs;unlock tables;select "Mark that we woke up from flush logs in the test"       as "test passed";test passedMark that we woke up from flush logs in the testlock tables mysql.general_log READ LOCAL; truncate mysql.general_log;unlock tables;select "Mark that we woke up from TRUNCATE in the test"       as "test passed";test passedMark that we woke up from TRUNCATE in the test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -