数据库
InsCode 内置了数据库服务,目前支持 MySQL
数据库。
点击顶栏的环境状态工具栏,然后点击 MySQL,再点击启动就可以了。启动过 MySQL 服务后,下次进入 IDE 会自动启动服务,无需每次点击。
进入 MySQL
启动 MySQL 服务后,在终端输入启动 MySQL 命令和密码,进入 MySQL:
bash
mysql -u root -p
# 输入密码,默认是 inscode
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.42 MySQL Community Server (GPL)
Copyright (c) 2000, 2023, 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.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>