更多>>PHP程序设计 Blog
来源:一度好 时间:2013-09-25 阅读:2464
PHP使用命令行对MySQL数据库的基本操作
一、创建数据库
01、使用命令 net start mysql 启动 MySQL 数据库,
02、使用命令 mysql -h127.0.0.1 -uroot -proot 连接 MySQL 数据库,
03、创建一个新的 MySQL 数据库,语法如下:create database 数据库名;
示例:create database xhy;
二、查看数据库
查看 MySQL 数据库中已经存在的数据库,语法如下:show databases;
三、使用数据库
选择一个数据库,使其成为当前默认数据库,语法如下:use 数据库名;
示例:use xhy;
四、删除数据库
删除指定的数据库,语法如下:drop database 数据库名;
示例:drop database xhy;
评论列表 |
![]() Binance 来自江苏省
BTC may be the latest or last chance to get rich in this era. It will reach $200000 next year or the next year.
BTC has increased 20 times in the last year, and other coins have increased 800 times!!!
Think about only $2 a few years ago. Come to the world's largest and safest virtual currency exchange Binance to Get free rewards. Don't miss the most important opportunity in life!!!
https://hi.switchy.io/91xl
2022-07-26 11:04:31 |
发表评论