当前位置:Gxlcms > 数据库问题 > 常用sql命令

常用sql命令

时间:2021-07-01 10:21:17 帮助过:19人阅读

1.net start/stop mysql  启动停止mysql

   mysqladmin -uroot -p shutdown  停止mysql

2.show create database/table xxx  查看表/库详情

3.show variables like ‘%character%‘  查看各部字符集

4.show databases/tables  查看所有库/表

5.mysql -uroot -p/mysql --user root --password  连接Mysql服务器

   mysql --host localhost --user root --password/mysql -hhost -uroot -pmysql -uroot -p  连接Mysql服务器

6.quit/exit  退出mysql

常用sql命令

标签:nbsp   char   tar   字符集   local   character   mysql   ble   shutdown   

人气教程排行