搜索...
[root@zhifou ~]# mysql -u root -p Enter password:******** ****** Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
[root@zhifou ~]# mysql -h100.45.142.11 -P8030 -uzhifou_r -pzhifou_r
mysql> SHOW DATABASES; +----------+ | Database | +----------+ | mysql | | test | +----------+ 2 rows in set (0.13 sec)
[root@host]# mysqladmin -u root password "new_password";
[root@host]# mysqladmin --version mysqladmin Ver 8.0.19 for macos10.15 on x86_64 (MySQL Community Server - GPL)