shitou@shitou:~$ sudo mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.46-0ubuntu0.24.04.3 (Ubuntu)
Copyright (c) 2000, 2026, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use wgcloud;
ERROR 1049 (42000): Unknown database 'wgcloud'
mysql> CREATE DATABASE wgcloud DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
--------------
CREATE DATABASE wgcloud DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
--------------
Query OK, 1 row affected (0.04 sec)
mysql> CREATE USER 'wgcloud'@'%' IDENTIFIED BY 'shitou123456';
--------------
CREATE USER 'wgcloud'@'%' IDENTIFIED BY 'shitou123456'
--------------
Query OK, 0 rows affected (0.06 sec)
mysql> use wgcloud;
Database changed
mysql> source /home/shitou/wgcloud-v3.6.8/sql/wgcloud-MySQL.sql;
--------------
SET FOREIGN_KEY_CHECKS=0
--------------
Query OK, 0 rows affected (0.00 sec)
安装数据库,后这么操作,创建数据库,设置数据库名字,导入数据库,
数据库版本,还有那些需要的操作,要不然会启动失败的,记得看报错,