随笔分类 -  MySQL

摘要:1.导出MySQL某个数据库中的表到指定目录格式为.xls [root@centos ~]# mysql -u root -p123456 -e "select * from share2;" class1 > /root/mysql.xls #mysql连接数据库 #-u root用户 #-p r 阅读全文
posted @ 2021-08-15 18:29 孙博吖! 阅读(87) 评论(0) 推荐(0)
摘要:MySQL数据表 1.创建表 mysql> create table share(name char (5),gender char (10),hobby char (15)); Query OK, 0 rows affected (0.13 sec) 2.查看表结构 mysql> desc sha 阅读全文
posted @ 2021-08-11 19:21 孙博吖! 阅读(86) 评论(0) 推荐(0)
摘要:数据库的操作 show databases; ##查看MySQL中的所有数据库! mysql> show databases; + + | Database | + + | information_schema | | mysql | | performance_schema | | sys | + 阅读全文
posted @ 2021-08-07 17:35 孙博吖! 阅读(110) 评论(0) 推荐(0)
摘要:1.下载MySQL的RPM包安装 谨慎考虑安装版本,最新版本可能小白鼠,这里是采用5.7.17的包 wget https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.17-1.el7.x86_64.rpm-bundle.tar 2.解压MySQL软件 t 阅读全文
posted @ 2021-08-05 01:25 孙博吖! 阅读(43) 评论(0) 推荐(0)