Server IP : 104.21.38.3 / Your IP : 172.70.143.252 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/ndb/r/ |
Upload File : |
create table t1 ( a int not null, b int not null, unique key t1x1 (b) using hash, primary key using hash (a) ) engine=ndb; create table t2 ( a int not null, b int not null, key t2x1 (b), primary key using hash (a), foreign key t2fk1 (b) references t1 (b) ) engine=ndb; ndb_show_tables completed..... select type,name from ndb_show_tables_results where (type like '%Index%' or type like '%ForeignKey%') and (name like '%t1%' or name like '%t2%') order by name; type name 'ForeignKey' 'XX/XX/t2fk1' 'UniqueHashIndex' 't1x1$unique' 'OrderedIndex' 't2x1' insert into t1 values (1,10),(2,20),(3,30),(4,40),(5,50); insert into t2 values (1,10),(2,10),(3,30),(4,50),(5,50); select * from t1 where b = 10 order by a; a b 1 10 select * from t2 where b = 10 order by a; a b 1 10 2 10 # run restart skip indexes ndb_show_tables completed..... select type,name from ndb_show_tables_results where (type like '%Index%' or type like '%ForeignKey%') and (name like '%t1%' or name like '%t2%') order by name; type name # run backup # create empty schema drop table t2, t1; create table t1 ( a int not null, b int not null, unique key t1x1 (b) using hash, primary key using hash (a) ) engine=ndb; create table t2 ( a int not null, b int not null, key t2x1 (b), primary key using hash (a), foreign key t2fk1 (b) references t1 (b) ) engine=ndb; ndb_show_tables completed..... select type,name from ndb_show_tables_results where (type like '%Index%' or type like '%ForeignKey%') and (name like '%t1%' or name like '%t2%') order by name; type name 'ForeignKey' 'XX/XX/t2fk1' 'UniqueHashIndex' 't1x1$unique' 'OrderedIndex' 't2x1' # run restore select * from t1 where b = 10 order by a; a b 1 10 select * from t2 where b = 10 order by a; a b 1 10 2 10 drop table t2, t1;