⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
t
/
View File Name :
mysqladmin.test
# Embedded server doesn't support external clients --source include/not_embedded.inc # # Test "mysqladmin ping" # --exec $MYSQLADMIN --no-defaults --default-character-set=latin1 -S $MASTER_MYSOCK -P $MASTER_MYPORT -u root --password= ping 2>&1 # # Bug#10608 mysqladmin breaks on "database" variable in my.cnf # # When mysqladmin finds database in .cnf file it shall fail --write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf [client] database=db1 EOF --replace_regex /.*mysqladmin.*: unknown/mysqladmin: unknown/ --error 7 --exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf --default-character-set=latin1 -S $MASTER_MYSOCK -P $MASTER_MYPORT -u root --password= ping 2>&1 remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf; # When mysqladmin finds "loose-database" in .cnf file it shall print # a warning and continue --write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf [client] loose-database=db2 EOF --replace_regex /Warning: .*mysqladmin.*: unknown/Warning: mysqladmin: unknown/ --exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf --default-character-set=latin1 -S $MASTER_MYSOCK -P $MASTER_MYPORT -u root --password= ping 2>&1 remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf; # # WL#3126 TCP address binding for mysql client library; # - running mysqladmin --protcol=tcp --bind-address=127.0.0.1 # --exec $MYSQLADMIN --no-defaults --protocol=tcp --bind-address=127.0.0.1 --host=127.0.0.1 -P $MASTER_MYPORT -u root ping 2>&1 --echo # --echo # Bug#58221 : mysqladmin --sleep=x --count=x keeps looping --echo # --echo # Executing mysqladmin with --sleep=1 and --count=2. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT --sleep=1 --count=2 ping > $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp --echo # Done. --echo # Displaying the output : --cat_file $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp --remove_file $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp --echo # --echo # BUG#11766184 - 59234: cmdline clients crash --defaults-extra-file --echo # with no .cnf or .ini extension. --echo # --echo # Creating an empty file 'cnf_file' --write_file $MYSQLTEST_VARDIR/tmp/cnf_file EOF --echo # Using --defaults-extra-file option with 'cnf_file'. --exec $MYSQLADMIN --defaults-extra-file=$MYSQLTEST_VARDIR/tmp/cnf_file -uroot -h localhost --password="" -S $MASTER_MYSOCK -P $MASTER_MYPORT ping 2>&1 --remove_file $MYSQLTEST_VARDIR/tmp/cnf_file --echo # --echo # Bug#12688860 : SECURITY RECOMMENDATION: PASSWORDS ON CLI --echo # --exec $MYSQLADMIN --no-defaults -uroot --password="" -S $MASTER_MYSOCK -P $MASTER_MYPORT ping 2>&1 --echo # --echo # Bug#21796658: OLD-PASSWORD SUBCOMMAND IS STILL IN MYSQLADMIN --HELP IN 5.7 --echo # --let $admin_outfile=$MYSQLTEST_VARDIR/tmp/bug21796658.output --echo # execute mysqladmin --help # Returns 1 on normal execution --error 1 --exec $MYSQLADMIN --help 2>&1 > $admin_outfile --echo # check the output of mysqladmin for old-password --let $assert_text= check the output of mysqladmin for old-password --let $assert_file= $admin_outfile --let $assert_select=old-password --let $assert_count=0 --source include/assert_grep.inc --echo # cleanup --remove_file $admin_outfile --echo End of tests