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

📄 system_mysql_db_fix30020.test

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 TEST
字号:
# Embedded server doesn't support external clients--source include/not_embedded.inc# Don't run this test if $MYSQL_FIX_SYSTEM_TABLES isn't set# to the location of mysql_fix_privilege_tables.sqlif (`SELECT LENGTH("$MYSQL_FIX_SYSTEM_TABLES") <= 0`){  skip Test need MYSQL_FIX_SYSTEM_TABLES;}## This is the test for mysql_fix_privilege_tables# It checks that a system tables from mysql 3.20# can be upgraded to current system table format## Note: If this test fails, don't be confused about the errors reported# by mysql-test-run This shows warnings generated by# mysql_fix_system_tables which should be ignored.# Instead, concentrate on the errors in r/system_mysql_db.reject--disable_warningsdrop table if exists t1,t1aa,t2aa;--enable_warnings-- disable_result_log-- disable_query_loguse test;# create system tables as in mysql-3.20--disable_warningsCREATE TABLE db (  Host char(60) binary DEFAULT '' NOT NULL,  Db char(32) binary DEFAULT '' NOT NULL,  User char(16) binary DEFAULT '' NOT NULL,  Select_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Insert_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Update_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Delete_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Create_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Drop_priv enum('N','Y') DEFAULT 'N' NOT NULL,  PRIMARY KEY Host (Host,Db,User),  KEY User (User))type=ISAM;--enable_warningsINSERT INTO db VALUES ('%','test',   '','Y','Y','Y','Y','Y','Y');INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y');--disable_warningsCREATE TABLE host (  Host char(60) binary DEFAULT '' NOT NULL,  Db char(32) binary DEFAULT '' NOT NULL,  Select_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Insert_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Update_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Delete_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Create_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Drop_priv enum('N','Y') DEFAULT 'N' NOT NULL,  PRIMARY KEY Host (Host,Db))type=ISAM;--enable_warnings--disable_warningsCREATE TABLE user (  Host char(60) binary DEFAULT '' NOT NULL,  User char(16) binary DEFAULT '' NOT NULL,  Password char(16),  Select_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Insert_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Update_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Delete_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Create_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Drop_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Reload_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Shutdown_priv enum('N','Y') DEFAULT 'N' NOT NULL,  Process_priv enum('N','Y') DEFAULT 'N' NOT NULL,  PRIMARY KEY Host (Host,User))type=ISAM;--enable_warningsINSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y');INSERT INTO user VALUES ('localhost','',    '','N','N','N','N','N','N','N','N','N');# Call the "shell script" $MYSQL_FIX_SYSTEM_TABLES using system-- system $MYSQL_FIX_SYSTEM_TABLES --database=test > $MYSQLTEST_VARDIR/log/system_mysql_db_fix30020.log 2>&1-- enable_query_log-- enable_result_log-- source include/system_db_struct.inc-- disable_query_logDROP TABLE db, host, user, func, tables_priv, columns_priv, procs_priv, help_category, help_keyword, help_relation, help_topic, proc, time_zone, time_zone_leap_second, time_zone_name, time_zone_transition, time_zone_transition_type;-- enable_query_log# check that we dropped all system tablesshow tables;# End of 4.1 tests

⌨️ 快捷键说明

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