mysql -u root -p
启动mysql命令 tinycute@tinycute-virtual-machine:~$ mysql -u root -p Command 'mysql' not found, but can be installed with: sudo apt install mysql-client-core-8.0 # version 8.0.29-0ubuntu0.22.04.2, or sudo apt install mariadb-client-core-10.6 # version 1:10.6.7-2ubuntu1
找不到mysql,按提示安装mysql-client-core-8.0
确认一下mysql是否打开
sudo /opt/lampp/lampp start
tinycute@tinycute-virtual-machine:~$ sudo /opt/lampp/lampp start [sudo] password for tinycute: Starting XAMPP for Linux 8.1.6-0... XAMPP: Starting Apache...already running. XAMPP: Starting MySQL...already running. XAMPP: Starting ProFTPD...al