安装好了xampp,
尝试创建简单的数据库,
1.进入数据库
usernamedeMacBook-Pro:~ username$ cd /Applications/XAMPP/xamppfiles/bin (键入)
usernamedeMacBook-Pro:bin username$ ./mysql -u root -p -h localhost(键入)
显示Enter password: (一般默认密码为空,直接空格就好)
显示如下表示成功
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.4.18-MariaDB Source distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> (很多教程显示Mysql> 这个不用管 ,这是正常的)。
2,创建数据库
MariaDB [(none)]> create database testdb3; 创建数据库
MariaDB [(none)]> SHOW DATABASES; 列出数据库就看到你刚创建的数据库了