文章分类 -  MySQL

摘要:备份数据库 mysqldump 数据库名 >数据库备份名 mysqldump -A -u用户名 -p密码 数据库名>数据库备份名 mysqldump -d -A --add-drop-table -uroot -p >xxx.sql 导出结构不导出数据:mysqldump -d 数据库名 -uroo 阅读全文
posted @ 2021-11-11 10:51 西江月明 阅读(47) 评论(0) 推荐(0) 编辑
摘要:MySQL添加注释有三种方式: 方法一:单行注释,#注释内容 方法二:单行注释,-- 注释内容(--与注释内容之间必须有空格) 方法三:多行注释,/*注释内容*/ #只检索需要的列select fnumber from T_employee;-- 检索一列select fnumber,fage fr 阅读全文
posted @ 2021-07-23 11:45 西江月明 阅读(2114) 评论(0) 推荐(0) 编辑
摘要:输入:set password for userName@localhost = password('newPassword'); 提示:mac mysql error You must reset your password using ALTER USER statement before ex 阅读全文
posted @ 2020-09-15 15:32 西江月明 阅读(173) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示